aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.l')
-rw-r--r--src/lexer.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lexer.l b/src/lexer.l
index fe748e2..a150798 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -125,6 +125,11 @@ STRING \"(\\.|[^"\\])*\"
"<<" {return LSHIFT;}
">>" {return RSHIFT;}
+"if" {return IF;}
+"else" {return ELSE;}
+
+"mut" {return MUT;}
+
{STRING} {
/* seems risky, I know, but letting the parser choose when to allocate a
* new string seems to help with syntax error cleanup */