aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/lexer.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-03-25 16:28:16 +0100
committerMarijn Haverbeke <[email protected]>2011-03-27 14:11:23 +0200
commit6ecdc04788334420db05d9894e18d1d7a605ab4f (patch)
treeaba6169530f041b59507490b9ab28b1ac2835d18 /src/comp/front/lexer.rs
parentshootout: Hoist out the vector indexing on nbody; don't rely on LICM, which i... (diff)
downloadrust-6ecdc04788334420db05d9894e18d1d7a605ab4f.tar.xz
rust-6ecdc04788334420db05d9894e18d1d7a605ab4f.zip
Add support for break and cont to rustc
Testing proper cleanup is hampered by https://github.com/graydon/rust/issues/293
Diffstat (limited to 'src/comp/front/lexer.rs')
-rw-r--r--src/comp/front/lexer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/lexer.rs b/src/comp/front/lexer.rs
index a793a920..878940b7 100644
--- a/src/comp/front/lexer.rs
+++ b/src/comp/front/lexer.rs
@@ -111,6 +111,8 @@ impure fn new_reader(io.reader rdr, str filename) -> reader
keywords.insert("for", token.FOR);
keywords.insert("each", token.EACH);
+ keywords.insert("break", token.BREAK);
+ keywords.insert("cont", token.CONT);
keywords.insert("put", token.PUT);
keywords.insert("ret", token.RET);
keywords.insert("be", token.BE);