aboutsummaryrefslogtreecommitdiff
path: root/lex.go
diff options
context:
space:
mode:
Diffstat (limited to 'lex.go')
-rw-r--r--lex.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lex.go b/lex.go
index 6b76953..7450888 100644
--- a/lex.go
+++ b/lex.go
@@ -296,6 +296,10 @@ func addKeywordOrIdentifier(name string, line int) token {
return token{kind: function, line: line}
case "return":
return token{kind: ret, line: line}
+ case "const":
+ return token{kind: constKeyword, line: line}
+ case "mut":
+ return token{kind: mut, line: line}
default:
return token{kind: identifier, value: name, line: line}
}