aboutsummaryrefslogtreecommitdiff
path: root/src/grammar/items/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/items/mod.rs')
-rw-r--r--src/grammar/items/mod.rs6
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
280enum MacroFlavor { 280pub(super) enum MacroFlavor {
281 Curly, 281 Curly,
282 NonCurly, 282 NonCurly,
283} 283}
@@ -285,6 +285,10 @@ enum MacroFlavor {
285fn macro_call(p: &mut Parser) -> MacroFlavor { 285fn 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
291pub(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() {