aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-12-22 03:11:10 +0000
committerEdwin Cheng <[email protected]>2019-12-22 03:11:10 +0000
commit737045c1eac87ab78f0042340f0311d3679158b0 (patch)
tree09c746fd60a8a1f6a950465ca37eacd6c2aa424a /crates/ra_parser
parent90ef070db3dce0a7acb9cd11d0b0d72de13c9d79 (diff)
Use name instead of ident for macro 2.0 sytnax
Diffstat (limited to 'crates/ra_parser')
-rw-r--r--crates/ra_parser/src/grammar/items.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar/items.rs b/crates/ra_parser/src/grammar/items.rs
index 3c717e5f9..6e23d9b72 100644
--- a/crates/ra_parser/src/grammar/items.rs
+++ b/crates/ra_parser/src/grammar/items.rs
@@ -389,7 +389,7 @@ pub(crate) fn mod_item_list(p: &mut Parser) {
389// macro m($i:ident) {} 389// macro m($i:ident) {}
390fn macro_def(p: &mut Parser, m: Marker) { 390fn macro_def(p: &mut Parser, m: Marker) {
391 p.expect(T![macro]); 391 p.expect(T![macro]);
392 p.expect(IDENT); 392 name_r(p, ITEM_RECOVERY_SET);
393 if p.at(T!['{']) { 393 if p.at(T!['{']) {
394 token_tree(p); 394 token_tree(p);
395 } else if !p.at(T!['(']) { 395 } else if !p.at(T!['(']) {