diff options
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 2f047d2c173..7188b81b8e8 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -764,7 +764,15 @@ usually in [procedural macros](book/plugins.html#syntax-extensions): * `quote_pat!` * `quote_stmt!` * `quote_tokens!` +* `quote_matcher!` * `quote_ty!` +* `quote_attr!` + +Keep in mind that when `$name : ident` appears in the input to +`quote_tokens!`, the result contains unquoted `name` followed by two tokens. +However, input of the same form passed to `quote_matcher!` becomes a +quasiquoted MBE-matcher of a nonterminal. No unquotation happens. Otherwise +the result of `quote_matcher!` is identical to that of `quote_tokens!`. Documentation is very limited at the moment. |
