aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-22 08:05:02 +0000
committerGitHub <[email protected]>2019-12-22 08:05:02 +0000
commit436df298bac711e0a666e9bad1a32afe3ce0c358 (patch)
treee078f8a24afd6413afce96c90a85c6577ffc8662 /crates/ra_parser/src
parentd33493d779ba573403804b8d78e9b72fcf98f894 (diff)
parent737045c1eac87ab78f0042340f0311d3679158b0 (diff)
Merge #2642
2642: Use name instead of ident in parser for macro 2.0 syntax r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_parser/src')
-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!['(']) {