diff options
| author | bors <bors@rust-lang.org> | 2015-01-07 05:31:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-07 05:31:23 +0000 |
| commit | 9e4e524e0eb17c8f463e731f23b544003e8709c6 (patch) | |
| tree | 916024d35e08f0826c20654f629ec596b5cb1f14 /src/doc/reference.md | |
| parent | ea6f65c5f1a3f84e010d2cef02a0160804e9567a (diff) | |
| parent | a64000820f0fc32be4d7535a9a92418a434fa4ba (diff) | |
auto merge of #20677 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 0f1f26d3e71..a907f096809 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -690,10 +690,9 @@ balanced, but they are otherwise not special. In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the Rust syntax named by _designator_. Valid designators are `item`, `block`, `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. +`pat`, `expr`, `ty` (type), `ident`, `path`, `tt` (either side 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. The Kleene star operator consists of `$` and parens, optionally |
