Skip to content

Commit

Permalink
Merge #16
Browse files Browse the repository at this point in the history
16: Add `MacroDef` for "Macros 2.0" r=matklad a=jonas-schievink



Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
  • Loading branch information
bors[bot] and jonas-schievink authored Dec 16, 2020
2 parents 143cc52 + 7282477 commit e250a93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust.ungram
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Item =
| Impl
| MacroCall
| MacroRules
| MacroDef
| Module
| Static
| Struct
Expand All @@ -103,6 +104,11 @@ MacroRules =
'macro_rules' '!' Name
TokenTree

MacroDef =
Attr* Visibility?
'macro' Name args:TokenTree?
body:TokenTree

Module =
Attr* Visibility?
'mod' Name
Expand Down

0 comments on commit e250a93

Please sign in to comment.