Skip to content

Commit

Permalink
Slightly better description of macro designators.
Browse files Browse the repository at this point in the history
Closes #3378
  • Loading branch information
jesse99 committed Nov 19, 2012
1 parent a24da7e commit 7671247
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/rust.md
Expand Up @@ -510,9 +510,8 @@ For parsing reasons, delimiters must be balanced, but they are otherwise not spe

In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the
Rust syntax named by _designator_. Valid designators are `item`, `block`,
`stmt`, `pat`, `expr`, `ty`, `ident`, `path`, `tt`, `matchers`. The last two
are the right-hand side and the left-hand side respectively of the `=>` in
macro rules. In the transcriber, the designator is already known, and so only
`stmt`, `pat`, `expr`, `ty` (type), `ident`, `path`, `matchers` (lhs of the `=>` in macro rules),
`tt` (rhs of the `=>` in macro rules). In the transcriber, the 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 repetition.
Expand Down

0 comments on commit 7671247

Please sign in to comment.