Skip to content

Commit b443c5e

Browse files
frewsxcvsteveklabnik
authored andcommitted
Macros By Example
1 parent a486dcb commit b443c5e

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

src/doc/reference/src/macros-by-example.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,27 @@ balanced, but they are otherwise not special.
2020
In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the Rust
2121
syntax named by _designator_. Valid designators are:
2222

23-
* `item`: an [item](#items)
24-
* `block`: a [block](#block-expressions)
25-
* `stmt`: a [statement](#statements)
26-
* `pat`: a [pattern](#match-expressions)
27-
* `expr`: an [expression](#expressions)
28-
* `ty`: a [type](#types)
29-
* `ident`: an [identifier](#identifiers)
30-
* `path`: a [path](#paths)
31-
* `tt`: a token tree (a single [token](#tokens) or a sequence of token trees surrounded
32-
by matching `()`, `[]`, or `{}`)
33-
* `meta`: the contents of an [attribute](#attributes)
23+
* `item`: an [item]
24+
* `block`: a [block]
25+
* `stmt`: a [statement]
26+
* `pat`: a [pattern]
27+
* `expr`: an [expression]
28+
* `ty`: a [type]
29+
* `ident`: an [identifier]
30+
* `path`: a [path]
31+
* `tt`: a token tree (a single [token] by matching `()`, `[]`, or `{}`)
32+
* `meta`: the contents of an [attribute]
33+
34+
[item]: items.html
35+
[block]: expressions.html#block-expressions
36+
[statement]: statements.html
37+
[pattern]: expressions.html#match-expressions
38+
[expression]: expressions.html
39+
[type]: types.html
40+
[identifier]: identifiers.html
41+
[path]: paths.html
42+
[token]: tokens.html
43+
[attribute]: attributes.html
3444

3545
In the transcriber, the
3646
designator is already known, and so only the name of a matched nonterminal comes

0 commit comments

Comments
 (0)