Skip to content

Commit

Permalink
Rollup merge of rust-lang#34370 - steveklabnik:keyword-ref-mention, r…
Browse files Browse the repository at this point in the history
…=Manishearth

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.
  • Loading branch information
Jonathan Turner committed Aug 17, 2016
2 parents d6d0590 + 85bbbad commit e83bff9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/doc/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e83bff9

Please sign in to comment.