Skip to content

Commit 6c5834d

Browse files
committed
Auto merge of #26137 - steveklabnik:gh25623, r=alexcrichton
Fixes #25623 I am bad with BNF, so I may have messed this up, but that's what review is for!
2 parents e954031 + 6bddfc9 commit 6c5834d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/grammar.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ type_path_tail : '<' type_expr [ ',' type_expr ] + '>'
281281
## Macros
282282

283283
```antlr
284-
expr_macro_rules : "macro_rules" '!' ident '(' macro_rule * ')' ;
284+
expr_macro_rules : "macro_rules" '!' ident '(' macro_rule * ')' ';'
285+
| "macro_rules" '!' ident '{' macro_rule * '}' ;
285286
macro_rule : '(' matcher * ')' "=>" '(' transcriber * ')' ';' ;
286287
matcher : '(' matcher * ')' | '[' matcher * ']'
287288
| '{' matcher * '}' | '$' ident ':' ident

0 commit comments

Comments
 (0)