Skip to content

Commit 702f175

Browse files
author
Robin Kruppe
committed
Audit reference manual: 3.2 Special unicode productions
Mention non_ascii_idents feature gate and remove unused productions
1 parent e9f2980 commit 702f175

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/doc/reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ explicit codepoint lists. [^inputformat]
103103
## Special Unicode Productions
104104

105105
The following productions in the Rust grammar are defined in terms of Unicode
106-
properties: `ident`, `non_null`, `non_star`, `non_eol`, `non_slash_or_star`,
107-
`non_single_quote` and `non_double_quote`.
106+
properties: `ident`, `non_null`, `non_eol`, `non_single_quote` and `non_double_quote`.
108107

109108
### Identifiers
110109

111-
The `ident` production is any nonempty Unicode string of the following form:
110+
The `ident` production is any nonempty Unicode[^non_ascii_idents] string of the following form:
111+
112+
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
113+
gated. This is expected to improve soon.
112114

113115
- The first character has property `XID_start`
114116
- The remaining characters have property `XID_continue`
@@ -125,8 +127,6 @@ Some productions are defined by exclusion of particular Unicode characters:
125127

126128
- `non_null` is any single Unicode character aside from `U+0000` (null)
127129
- `non_eol` is `non_null` restricted to exclude `U+000A` (`'\n'`)
128-
- `non_star` is `non_null` restricted to exclude `U+002A` (`*`)
129-
- `non_slash_or_star` is `non_null` restricted to exclude `U+002F` (`/`) and `U+002A` (`*`)
130130
- `non_single_quote` is `non_null` restricted to exclude `U+0027` (`'`)
131131
- `non_double_quote` is `non_null` restricted to exclude `U+0022` (`"`)
132132

0 commit comments

Comments
 (0)