Skip to content

Commit eff3ac6

Browse files
author
Alexander Regueiro
committed
Updated section on identifiers for raw identifiers
1 parent bca50f2 commit eff3ac6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/identifiers.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
> &nbsp;&nbsp; &nbsp;&nbsp; [`a`-`z` `A`-`Z`]&nbsp;[`a`-`z` `A`-`Z` `0`-`9` `_`]<sup>\*</sup>\
66
> &nbsp;&nbsp; | `_` [`a`-`z` `A`-`Z` `0`-`9` `_`]<sup>+</sup>
77
>
8+
> RAW_IDENTIFIER : `r#` IDENTIFIER_OR_KEYWORD
9+
>
810
> IDENTIFIER :\
9-
> IDENTIFIER_OR_KEYWORD <sub>*Except a [strict] or [reserved] keyword*</sub>
11+
> IDENTIFIER_OR_KEYWORD <sub>*Except a [strict] or [reserved] keyword*</sub> | RAW_IDENTIFIER
1012
11-
An identifier is any nonempty ASCII string of the following form:
13+
A normal (non-raw) identifier is any nonempty ASCII string of the following form:
1214

1315
Either
1416

@@ -21,5 +23,7 @@ Or
2123
* The identifier is more than one character. `_` alone is not an identifier.
2224
* The remaining characters are alphanumeric or `_`.
2325

26+
A raw identifier is like a normal identifier, but prefixed by `r#`, which is not included as part of the identifier. Unlike a normal identifier, a raw identifier may be any strict or reserved keyword.
27+
2428
[strict]: keywords.html#strict-keywords
2529
[reserved]: keywords.html#reserved-keywords

0 commit comments

Comments
 (0)