aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/lexer.rs
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-03-29 15:51:53 -0700
committerLindsey Kuper <[email protected]>2011-03-29 15:59:15 -0700
commit55fbed3d8d7078bfd3864e64cc044cbe876c5d1a (patch)
tree3c0a53f8f59dbda781fda2a7ad1e5afcce719de2 /src/comp/front/lexer.rs
parentIgnore 'mutable foo' in plain field contexts. (diff)
downloadrust-55fbed3d8d7078bfd3864e64cc044cbe876c5d1a.tar.xz
rust-55fbed3d8d7078bfd3864e64cc044cbe876c5d1a.zip
Beginnings of support for magical self prefix; nothing profound happening yet.
Diffstat (limited to 'src/comp/front/lexer.rs')
-rw-r--r--src/comp/front/lexer.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/lexer.rs b/src/comp/front/lexer.rs
index 878940b7..86b872da 100644
--- a/src/comp/front/lexer.rs
+++ b/src/comp/front/lexer.rs
@@ -169,6 +169,7 @@ impure fn new_reader(io.reader rdr, str filename) -> reader
keywords.insert("any", token.ANY);
keywords.insert("obj", token.OBJ);
+ keywords.insert("self", token.SELF);
keywords.insert("port", token.PORT);
keywords.insert("chan", token.CHAN);