Rollup merge of #25661 - Stebalien:macro, r=Gankro

They don't have to be followed by anything.
This commit is contained in:
Manish Goregaokar 2015-05-21 13:38:26 +05:30
commit 1fb2102498

View File

@ -476,9 +476,9 @@ which syntactic form it matches.
There are additional rules regarding the next token after a metavariable:
* `expr` variables must be followed by one of: `=> , ;`
* `ty` and `path` variables must be followed by one of: `=> , : = > as`
* `pat` variables must be followed by one of: `=> , =`
* `expr` variables may only be followed by one of: `=> , ;`
* `ty` and `path` variables may only be followed by one of: `=> , : = > as`
* `pat` variables may only be followed by one of: `=> , =`
* Other variables may be followed by any token.
These rules provide some flexibility for Rusts syntax to evolve without