Skip to content

Commit 4ab1ac5

Browse files
committed
Rollup merge of #28764 - steveklabnik:gh28706, r=alexcrichton
Fixes #28706 I am pretty sure that this is accurate, bout would love a double check.
2 parents 8382bc9 + 2a787a2 commit 4ab1ac5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/doc/reference.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ An identifier is any nonempty Unicode[^non_ascii_idents] string of the following
7676
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
7777
gated. This is expected to improve soon.
7878

79-
- The first character has property `XID_start`
80-
- The remaining characters have property `XID_continue`
79+
Either
80+
* The first character has property `XID_start`
81+
* The remaining characters have property `XID_continue`
82+
Or
83+
* The first character is `_`
84+
* The identifier is more than one character, `_` alone is not an identifier
85+
* The remaining characters have property `XID_continue`
8186

8287
that does _not_ occur in the set of [keywords][keywords].
8388

0 commit comments

Comments
 (0)