about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2014-09-19 16:25:09 -0400
committerSteve Klabnik <steve@steveklabnik.com>2014-09-22 17:54:09 -0400
commit64a77b1ff543514b4930af0760b1cadfbad2c98e (patch)
treecc6c62a159688f6e6658cb04e86a48cd565a1b1d
parent68227d01f9c637fb13809f60adb0a2f8eac0d146 (diff)
downloadrust-64a77b1ff543514b4930af0760b1cadfbad2c98e.tar.gz
rust-64a77b1ff543514b4930af0760b1cadfbad2c98e.zip
move keywords to table
-rw-r--r--src/doc/reference.md49
1 files changed, 31 insertions, 18 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index da55435f8ec..e48185a579d 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -185,24 +185,37 @@ grammar as double-quoted strings. Other tokens have exact rules given.
 
 ### Keywords
 
-The keywords are the following strings:
-
-```{.text .keyword}
-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
-true trait type
-unsafe use
-while
-```
+The keywords are the following strings, organized by first letter:
+
+|----------|--------|--------|-------|
+| 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    |        |        |       |
+|----------|--------|--------|-------|
 
 Each of these keywords has special meaning in its grammar, and all of them are
 excluded from the `ident` rule.