aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-08-20 14:58:15 -0700
committerPatrick Walton <[email protected]>2010-08-20 14:58:15 -0700
commit08f191d6d9135960f0f706c39c2b2840298a29e2 (patch)
treea2c29fff4bccffb5bb34fe7daae3205e6ff4f56f
parentUse pattern matching for the one-byte structural symbols in the self-hosted c... (diff)
downloadrust-08f191d6d9135960f0f706c39c2b2840298a29e2.tar.xz
rust-08f191d6d9135960f0f706c39c2b2840298a29e2.zip
Lex commas too in the self-hosted compiler
-rw-r--r--src/comp/fe/lexer.rs1
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(); }