diff options
Diffstat (limited to 'src/grammar/items/mod.rs')
-rw-r--r-- | src/grammar/items/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/grammar/items/mod.rs b/src/grammar/items/mod.rs index 8f766901e..657078765 100644 --- a/src/grammar/items/mod.rs +++ b/src/grammar/items/mod.rs | |||
@@ -277,7 +277,7 @@ fn mod_item(p: &mut Parser) { | |||
277 | } | 277 | } |
278 | } | 278 | } |
279 | 279 | ||
280 | enum MacroFlavor { | 280 | pub(super) enum MacroFlavor { |
281 | Curly, | 281 | Curly, |
282 | NonCurly, | 282 | NonCurly, |
283 | } | 283 | } |
@@ -285,6 +285,10 @@ enum MacroFlavor { | |||
285 | fn macro_call(p: &mut Parser) -> MacroFlavor { | 285 | fn macro_call(p: &mut Parser) -> MacroFlavor { |
286 | assert!(paths::is_path_start(p)); | 286 | assert!(paths::is_path_start(p)); |
287 | paths::use_path(p); | 287 | paths::use_path(p); |
288 | macro_call_after_excl(p) | ||
289 | } | ||
290 | |||
291 | pub(super) fn macro_call_after_excl(p: &mut Parser) -> MacroFlavor { | ||
288 | p.expect(EXCL); | 292 | p.expect(EXCL); |
289 | p.eat(IDENT); | 293 | p.eat(IDENT); |
290 | let flavor = match p.current() { | 294 | let flavor = match p.current() { |