Skip to content

update keyword list #18375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,28 +185,29 @@ grammar as double-quoted strings. Other tokens have exact rules given.

### Keywords

<p id="keyword-table-marker">The keywords are the following strings, organized by first letter:</p>

| | | | |
|----------|--------|--------|-------|
| as | | | |
| box | break | | |
| continue | crate | | |
| else | enum | extern | |
| false | fn | for | |
| if | impl | in | |
| let | loop | | |
| match | mod | mut | |
| priv | proc | pub | |
| ref | return | | |
| self | static | struct | super |
| trait | true | type | |
| unsafe | use | | |
| while | | | |
<p id="keyword-table-marker"></p>

| | | | | |
|----------|----------|----------|----------|--------|
| abstract | alignof | as | be | box |
| break | const | continue | crate | do |
| else | enum | extern | false | final |
| fn | for | if | impl | in |
| let | loop | match | mod | move |
| mut | offsetof | once | override | priv |
| proc | pub | pure | ref | return |
| sizeof | static | self | struct | super |
| true | trait | type | typeof | unsafe |
| unsized | use | virtual | where | while |
| yield | | | | |


Each of these keywords has special meaning in its grammar, and all of them are
excluded from the `ident` rule.

Note that some of these keywords are reserved, and do not currently do
anything.

### Literals

A literal is an expression consisting of a single token, rather than a sequence
Expand Down