Skip to content

Commit ba7e968

Browse files
authored
Merge pull request #1133 from mattheww/2022-01_ident_metavariables
Say that macros-by-example `ident` metavariables can match raw identifiers
2 parents c075dc0 + 1947568 commit ba7e968

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/macros-by-example.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fragment specifiers are:
126126
* `pat`: equivalent to `pat_param`
127127
* `expr`: an [_Expression_]
128128
* `ty`: a [_Type_]
129-
* `ident`: an [IDENTIFIER_OR_KEYWORD]
129+
* `ident`: an [IDENTIFIER_OR_KEYWORD] or [RAW_IDENTIFIER]
130130
* `path`: a [_TypePath_] style path
131131
* `tt`: a [_TokenTree_] (a single [token] or tokens in matching delimiters `()`, `[]`, or `{}`)
132132
* `meta`: an [_Attr_], the contents of an attribute
@@ -479,6 +479,7 @@ For more detail, see the [formal specification].
479479
[Hygiene]: #hygiene
480480
[IDENTIFIER]: identifiers.md
481481
[IDENTIFIER_OR_KEYWORD]: identifiers.md
482+
[RAW_IDENTIFIER]: identifiers.md
482483
[LIFETIME_TOKEN]: tokens.md#lifetimes-and-loop-labels
483484
[Metavariables]: #metavariables
484485
[Repetitions]: #repetitions

0 commit comments

Comments
 (0)