1
Fork 0

Macros can now also be stmts and items.

This commit is contained in:
Paul Stansifer 2012-11-22 11:54:52 -05:00 committed by Graydon Hoare
parent f6a8ffc625
commit a88f9ac732

View file

@ -494,7 +494,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
User-defined syntax extensions are called "macros", and they can be defined
with the `macro_rules!` syntax extension. User-defined macros can currently
only be invoked in expression position.
be invoked as expressions, statements, or items.
(A `sep_token` is any token other than `*` and `+`. A `non_special_token` is
any token other than a delimiter or `$`.)