@@ -20,17 +20,27 @@ balanced, but they are otherwise not special.
20
20
In the matcher, ` $ ` _ name_ ` : ` _ designator_ matches the nonterminal in the Rust
21
21
syntax named by _ designator_ . Valid designators are:
22
22
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
34
44
35
45
In the transcriber, the
36
46
designator is already known, and so only the name of a matched nonterminal comes
0 commit comments