]> git.lizzy.rs Git - rust.git/commitdiff
update keyword list
authorSteve Klabnik <steve@steveklabnik.com>
Mon, 27 Oct 2014 18:49:22 +0000 (14:49 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Tue, 28 Oct 2014 19:55:04 +0000 (15:55 -0400)
Fixes #17969

src/doc/reference.md

index 11bf895341b90619a4c36308b224e55ecbbf1cf3..f723bbe30b7fcef51340efb4b2a920270307563d 100644 (file)
@@ -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