diff options
| author | bors <bors@rust-lang.org> | 2015-03-05 04:32:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-05 04:32:51 +0000 |
| commit | 68740b405404a3f885e388c8d31722797d519c30 (patch) | |
| tree | 89107a3c5266dbdcc3b165dfdddb977aada70b48 /src/doc/reference.md | |
| parent | cc722a4dd3e8110a8bf7e62eea977e99e3a3d128 (diff) | |
| parent | 3541abedeb1aa2c02929cf6828055d01cbe50e03 (diff) | |
| download | rust-68740b405404a3f885e388c8d31722797d519c30.tar.gz rust-68740b405404a3f885e388c8d31722797d519c30.zip | |
Auto merge of #22061 - pczarn:quote_matcher_and_attr, r=kmcallister
Fixes #19674 Fixes #17396 (already closed, yeah) cc @kmcallister , @cmr
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 333d6fddbbd..fa4986816aa 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. |
