diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-06-19 16:27:37 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-08-15 10:52:42 -0400 |
| commit | 85bbbad5926ab93c4c41c47eb11faffb4c8aeb5f (patch) | |
| tree | 2e4f54d28afd3ada9b2130f6cee217c5fae268ce | |
| parent | d06f1dcd7d3b9d9d5e0dc32ea7207a07e3408200 (diff) | |
| download | rust-85bbbad5926ab93c4c41c47eb11faffb4c8aeb5f.tar.gz rust-85bbbad5926ab93c4c41c47eb11faffb4c8aeb5f.zip | |
A disclaimer about keywords.
Some people cite this list as "zomg Rust has so many keywords," so make it clear that these aren't all used by the language today.
| -rw-r--r-- | src/doc/grammar.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/grammar.md b/src/doc/grammar.md index fac488d9c4a..be64379b516 100644 --- a/src/doc/grammar.md +++ b/src/doc/grammar.md @@ -172,6 +172,11 @@ token : simple_token | ident | literal | symbol | whitespace token ; Each of these keywords has special meaning in its grammar, and all of them are excluded from the `ident` rule. +Not all of these keywords are used by the language. Some of them were used +before Rust 1.0, and were left reserved once their implementations were +removed. Some of them were reserved before 1.0 to make space for possible +future features. + ### Literals ```antlr |
