Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/ungrammar/rust.ungram')
-rw-r--r--lib/ungrammar/rust.ungram5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ungrammar/rust.ungram b/lib/ungrammar/rust.ungram
index 3d2e189edf..9a332398b2 100644
--- a/lib/ungrammar/rust.ungram
+++ b/lib/ungrammar/rust.ungram
@@ -90,7 +90,7 @@ Item =
| ExternCrate
| Fn
| Impl
-| MacroCall
+| MacroItem
| MacroRules
| MacroDef
| Module
@@ -101,6 +101,9 @@ Item =
| Union
| Use
+MacroItem =
+ MacroCall
+
MacroRules =
Attr* Visibility?
'macro_rules' '!' Name