diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-08-05 13:45:39 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-08-05 13:45:39 +0530 |
| commit | eee286dfdd17d4109c32ceece5abf4bccbf1364e (patch) | |
| tree | ad0eb3158a6c6ef9caa39cf00fd1f18c01b0f110 /src | |
| parent | 8effc6181675fdb13bf454696344ff4782f5e37a (diff) | |
| parent | eaf27799bbed40f7360e13282b5ebce216b5b177 (diff) | |
| download | rust-eee286dfdd17d4109c32ceece5abf4bccbf1364e.tar.gz rust-eee286dfdd17d4109c32ceece5abf4bccbf1364e.zip | |
Rollup merge of #27528 - friedm:doc_meta_designator, r=huonw
For #27471
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/reference.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 5988d62bd79..fdb45c32a1d 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -538,8 +538,9 @@ 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`, `block`, `stmt`, `pat`, `expr`, `ty` (type), `ident`, `path`, `tt` (either side of the `=>` -in macro rules). In the transcriber, the designator is already known, and so -only the name of a matched nonterminal comes after the dollar sign. +in macro rules), and `meta` (contents of an attribute). In the transcriber, the +designator is already known, and so only the name of a matched nonterminal comes +after the dollar sign. In both the matcher and transcriber, the Kleene star-like operator indicates repetition. The Kleene star operator consists of `$` and parentheses, optionally |
