Skip to content

Commit

Permalink
Updated section on identifiers for raw identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Regueiro committed Aug 9, 2018
1 parent bca50f2 commit eff3ac6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/identifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
> &nbsp;&nbsp; &nbsp;&nbsp; [`a`-`z` `A`-`Z`]&nbsp;[`a`-`z` `A`-`Z` `0`-`9` `_`]<sup>\*</sup>\
> &nbsp;&nbsp; | `_` [`a`-`z` `A`-`Z` `0`-`9` `_`]<sup>+</sup>
>
> RAW_IDENTIFIER : `r#` IDENTIFIER_OR_KEYWORD
>
> IDENTIFIER :\
> IDENTIFIER_OR_KEYWORD <sub>*Except a [strict] or [reserved] keyword*</sub>
> IDENTIFIER_OR_KEYWORD <sub>*Except a [strict] or [reserved] keyword*</sub> | RAW_IDENTIFIER
An identifier is any nonempty ASCII string of the following form:
A normal (non-raw) identifier is any nonempty ASCII string of the following form:

Either

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

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.

[strict]: keywords.html#strict-keywords
[reserved]: keywords.html#reserved-keywords

0 comments on commit eff3ac6

Please sign in to comment.