From 1947568819df0073aeb53644c7a3a92422bb7f6b Mon Sep 17 00:00:00 2001 From: Matthew Woodcraft Date: Sat, 8 Jan 2022 14:59:49 +0000 Subject: [PATCH] Say that macros-by-example `ident` metavariables can match raw identifiers Closes #610 --- src/macros-by-example.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/macros-by-example.md b/src/macros-by-example.md index 7d2b44709..b96491a7d 100644 --- a/src/macros-by-example.md +++ b/src/macros-by-example.md @@ -126,7 +126,7 @@ fragment specifiers are: * `pat`: equivalent to `pat_param` * `expr`: an [_Expression_] * `ty`: a [_Type_] - * `ident`: an [IDENTIFIER_OR_KEYWORD] + * `ident`: an [IDENTIFIER_OR_KEYWORD] or [RAW_IDENTIFIER] * `path`: a [_TypePath_] style path * `tt`: a [_TokenTree_] (a single [token] or tokens in matching delimiters `()`, `[]`, or `{}`) * `meta`: an [_Attr_], the contents of an attribute @@ -479,6 +479,7 @@ For more detail, see the [formal specification]. [Hygiene]: #hygiene [IDENTIFIER]: identifiers.md [IDENTIFIER_OR_KEYWORD]: identifiers.md +[RAW_IDENTIFIER]: identifiers.md [LIFETIME_TOKEN]: tokens.md#lifetimes-and-loop-labels [Metavariables]: #metavariables [Repetitions]: #repetitions