From 737045c1eac87ab78f0042340f0311d3679158b0 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 22 Dec 2019 11:11:10 +0800 Subject: Use name instead of ident for macro 2.0 sytnax --- crates/ra_parser/src/grammar/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_parser') 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) { // macro m($i:ident) {} fn macro_def(p: &mut Parser, m: Marker) { p.expect(T![macro]); - p.expect(IDENT); + name_r(p, ITEM_RECOVERY_SET); if p.at(T!['{']) { token_tree(p); } else if !p.at(T!['(']) { -- cgit v1.2.3