Skip to content

Commit c9f0119

Browse files
authored
Merge pull request rust-lang#89 from brauliobz/grammar_identifiers
Added identifiers grammar
2 parents 998f39e + a917a93 commit c9f0119

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/identifiers.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Identifiers
22

3+
> **<sup>Lexer:<sup>**
4+
> IDENTIFIER :
5+
> &nbsp;&nbsp; &nbsp;&nbsp; XID_start XID_continue<sup>\*</sup>
6+
> &nbsp;&nbsp; | `_` XID_continue<sup>+</sup>
7+
38
An identifier is any nonempty Unicode[^non_ascii_idents] string of the following form:
49

510
Either
@@ -23,6 +28,6 @@ that does _not_ occur in the set of [keywords].
2328

2429
[`XID_start`]: http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5B%3AXID_Start%3A%5D&abb=on&g=&i=
2530
[`XID_continue`]: http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5B%3AXID_Continue%3A%5D&abb=on&g=&i=
26-
[keywords]: ../grammar.html#keywords
31+
[keywords]: keywords.html
2732
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
2833
gated. This is expected to improve soon.

0 commit comments

Comments
 (0)