rollup merge of #19430: pczarn/interp_tt-cleanup
Conflicts: src/libsyntax/parse/parser.rs
This commit is contained in:
commit
0631b466c2
12 changed files with 170 additions and 103 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue