diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2015-04-25 22:56:00 +0200 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2015-04-25 22:56:00 +0200 |
| commit | 85ee89ae7056797268b567254860c8c9ba9ec8e1 (patch) | |
| tree | 9f5620e57fd39299d85853c6a6bf69772c838c04 /src/doc/reference.md | |
| parent | 0d8309ec0b13ebad02bbc76f93eff39edf4af2d0 (diff) | |
| download | rust-85ee89ae7056797268b567254860c8c9ba9ec8e1.tar.gz rust-85ee89ae7056797268b567254860c8c9ba9ec8e1.zip | |
Redo PR #24811 properly
Transplant the grammar-related changes to grammar.md, and remove all grammar talk from reference.md
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 964ef7ca520..93440694cd8 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -65,14 +65,9 @@ explicit code point lists. [^inputformat] provided to the grammar verifier, restricted to ASCII range, when verifying the grammar in this document. -## Special Unicode Productions +## Identifiers -The following productions in the Rust grammar are defined in terms of Unicode -properties: `ident`, `non_null`, `non_eol`, `non_single_quote` and `non_double_quote`. - -### Identifiers - -The `ident` production is any nonempty Unicode[^non_ascii_idents] string of the following form: +An identifier is any nonempty Unicode[^non_ascii_idents] string of the following form: [^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature gated. This is expected to improve soon. @@ -86,15 +81,6 @@ that does _not_ occur in the set of [keywords](#keywords). > character ranges used to form the more familiar C and Java language-family > identifiers. -### Delimiter-restricted productions - -Some productions are defined by exclusion of particular Unicode characters: - -- `non_null` is any single Unicode character aside from `U+0000` (null) -- `non_eol` is `non_null` restricted to exclude `U+000A` (`'\n'`) -- `non_single_quote` is `non_null` restricted to exclude `U+0027` (`'`) -- `non_double_quote` is `non_null` restricted to exclude `U+0022` (`"`) - ## Comments Comments in Rust code follow the general C++ style of line and block-comment |
