add meta designator to macro reference

This commit is contained in:
Matt Friedman 2015-08-04 20:00:59 -05:00
parent 6afb8f58d1
commit eaf27799bb

View file

@ -538,8 +538,9 @@ balanced, but they are otherwise not special.
In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the Rust In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the Rust
syntax named by _designator_. Valid designators are `item`, `block`, `stmt`, syntax named by _designator_. Valid designators are `item`, `block`, `stmt`,
`pat`, `expr`, `ty` (type), `ident`, `path`, `tt` (either side of the `=>` `pat`, `expr`, `ty` (type), `ident`, `path`, `tt` (either side of the `=>`
in macro rules). In the transcriber, the designator is already known, and so in macro rules), and `meta` (contents of an attribute). In the transcriber, the
only the name of a matched nonterminal comes after the dollar sign. designator is already known, and so only the name of a matched nonterminal comes
after the dollar sign.
In both the matcher and transcriber, the Kleene star-like operator indicates In both the matcher and transcriber, the Kleene star-like operator indicates
repetition. The Kleene star operator consists of `$` and parentheses, optionally repetition. The Kleene star operator consists of `$` and parentheses, optionally