diff options
author | Aleksey Kladov <[email protected]> | 2019-02-11 16:23:13 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-11 16:24:13 +0000 |
commit | 2efdf41bdb178ebf1ff0f8e3b335f491c84d7fa3 (patch) | |
tree | 477852488ac98984574e11e068e911cc8d7aabd2 /crates/ra_syntax/src/grammar | |
parent | e7b370226c9b3d045a805dae5b93231a0869bbca (diff) |
make macro a NameOwner
Diffstat (limited to 'crates/ra_syntax/src/grammar')
-rw-r--r-- | crates/ra_syntax/src/grammar/items.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar/items.rs b/crates/ra_syntax/src/grammar/items.rs index a61f260cf..4b962c1f3 100644 --- a/crates/ra_syntax/src/grammar/items.rs +++ b/crates/ra_syntax/src/grammar/items.rs | |||
@@ -347,7 +347,9 @@ fn macro_call(p: &mut Parser) -> BlockLike { | |||
347 | 347 | ||
348 | pub(super) fn macro_call_after_excl(p: &mut Parser) -> BlockLike { | 348 | pub(super) fn macro_call_after_excl(p: &mut Parser) -> BlockLike { |
349 | p.expect(EXCL); | 349 | p.expect(EXCL); |
350 | p.eat(IDENT); | 350 | if p.at(IDENT) { |
351 | name(p); | ||
352 | } | ||
351 | match p.current() { | 353 | match p.current() { |
352 | L_CURLY => { | 354 | L_CURLY => { |
353 | token_tree(p); | 355 | token_tree(p); |