Skip to content

Commit

Permalink
Fix HTML version of the keyword table.
Browse files Browse the repository at this point in the history
This should really fix #17528.
  • Loading branch information
nodakai committed Oct 12, 2014
1 parent 86509d8 commit b2949ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
18 changes: 1 addition & 17 deletions src/doc/reference.md
Expand Up @@ -185,40 +185,24 @@ grammar as double-quoted strings. Other tokens have exact rules given.

### Keywords

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

<div id="keywords">
| | | | |
|----------|--------|--------|-------|
| 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 | | | |
|----------|--------|--------|-------|
</div>

Each of these keywords has special meaning in its grammar, and all of them are
excluded from the `ident` rule.
Expand Down
7 changes: 6 additions & 1 deletion src/doc/rust.css
Expand Up @@ -393,4 +393,9 @@ pre.rust { position: relative; }
}
}

#keywords table td { border: none; }
#keyword-table-marker + table thead { display: none; }
#keyword-table-marker + table td { border: none; }
#keyword-table-marker + table {
margin-left: 2em;
margin-bottom: 1em;
}

0 comments on commit b2949ae

Please sign in to comment.