diff options
| author | Patrick Walton <[email protected]> | 2010-08-20 14:58:15 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-08-20 14:58:15 -0700 |
| commit | 08f191d6d9135960f0f706c39c2b2840298a29e2 (patch) | |
| tree | a2c29fff4bccffb5bb34fe7daae3205e6ff4f56f | |
| parent | Use pattern matching for the one-byte structural symbols in the self-hosted c... (diff) | |
| download | rust-08f191d6d9135960f0f706c39c2b2840298a29e2.tar.xz rust-08f191d6d9135960f0f706c39c2b2840298a29e2.zip | |
Lex commas too in the self-hosted compiler
| -rw-r--r-- | src/comp/fe/lexer.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/fe/lexer.rs b/src/comp/fe/lexer.rs index bcc19d19..4674224f 100644 --- a/src/comp/fe/lexer.rs +++ b/src/comp/fe/lexer.rs @@ -62,6 +62,7 @@ fn next_token(stdio_reader rdr) -> token.token { // One-byte structural symbols. alt (c) { case (';') { ret token.SEMI(); } + case (',') { ret token.COMMA(); } case ('.') { ret token.DOT(); } case ('(') { ret token.LPAREN(); } case (')') { ret token.RPAREN(); } |