diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-01 18:38:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-01 18:38:18 -0700 |
| commit | 80c4f74c29ede062909db2b048b5b75820730994 (patch) | |
| tree | d3b43776d36ddcc9d9582ab95745df3fdbddd95c /src/libsyntax/parse | |
| parent | d777e5133360876baa4213f81a33934f04768a0f (diff) | |
| download | rust-80c4f74c29ede062909db2b048b5b75820730994.tar.gz rust-80c4f74c29ede062909db2b048b5b75820730994.zip | |
Remove the 'to' keyword
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/token.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0b18d7d9e6e..d96401b00b3 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1869,7 +1869,7 @@ struct parser { || self.is_keyword(~"false") { let val = self.parse_expr_res(RESTRICT_NO_BAR_OP); - if self.eat_keyword(~"to") || self.eat(token::DOTDOT) { + if self.eat(token::DOTDOT) { let end = self.parse_expr_res(RESTRICT_NO_BAR_OP); pat = pat_range(val, end); } else { diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index b9a9bc79e13..50e05bb459e 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -389,7 +389,6 @@ fn contextual_keyword_table() -> hashmap<~str, ()> { ~"of", ~"priv", ~"pub", ~"self", ~"send", ~"static", - ~"to", ~"use", ~"with" ]; |
