Skip to content

Commit 1c65870

Browse files
committed
Add grammar rule for XID_Start and XID_Continue
These were defined in prose below, but defining them here allows us to easily refer and link to them.
1 parent 963339e commit 1c65870

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/identifiers.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ r[ident.syntax]
77
> &nbsp;&nbsp; &nbsp;&nbsp; XID_Start XID_Continue<sup>\*</sup>\
88
> &nbsp;&nbsp; | `_` XID_Continue<sup>+</sup>
99
>
10+
> XID_Start : \<`XID_Start` defined by Unicode\>
11+
>
12+
> XID_Continue : \<`XID_Continue` defined by Unicode\>
13+
>
1014
> RAW_IDENTIFIER : `r#` IDENTIFIER_OR_KEYWORD <sub>*except `crate`, `self`, `super`, `Self`*</sub>
1115
>
1216
> NON_KEYWORD_IDENTIFIER : IDENTIFIER_OR_KEYWORD <sub>*except a [strict] or [reserved] keyword*</sub>

0 commit comments

Comments
 (0)