]> git.lizzy.rs Git - rust.git/commitdiff
Macros By Example
authorCorey Farwell <coreyf@rwell.org>
Tue, 21 Feb 2017 04:11:52 +0000 (23:11 -0500)
committerSteve Klabnik <steve@steveklabnik.com>
Tue, 21 Feb 2017 19:01:40 +0000 (14:01 -0500)
src/doc/reference/src/macros-by-example.md

index 916e6c891abf98f2ba72bcb97af9ab425fc0068b..a007b232e4c97da06c3fa19904efda353bf8f4d2 100644 (file)
@@ -20,17 +20,27 @@ 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`: an [item](#items)
-* `block`: a [block](#block-expressions)
-* `stmt`: a [statement](#statements)
-* `pat`: a [pattern](#match-expressions)
-* `expr`: an [expression](#expressions)
-* `ty`: a [type](#types)
-* `ident`: an [identifier](#identifiers)
-* `path`: a [path](#paths)
-* `tt`: a token tree (a single [token](#tokens) or a sequence of token trees surrounded
-  by matching `()`, `[]`, or `{}`)
-* `meta`: the contents of an [attribute](#attributes)
+* `item`: an [item]
+* `block`: a [block]
+* `stmt`: a [statement]
+* `pat`: a [pattern]
+* `expr`: an [expression]
+* `ty`: a [type]
+* `ident`: an [identifier]
+* `path`: a [path]
+* `tt`: a token tree (a single [token] by matching `()`, `[]`, or `{}`)
+* `meta`: the contents of an [attribute]
+
+[item]: items.html
+[block]: expressions.html#block-expressions
+[statement]: statements.html
+[pattern]: expressions.html#match-expressions
+[expression]: expressions.html
+[type]: types.html
+[identifier]: identifiers.html
+[path]: paths.html
+[token]: tokens.html
+[attribute]: attributes.html
 
 In the transcriber, the
 designator is already known, and so only the name of a matched nonterminal comes