diff options
Diffstat (limited to 'lex.go')
-rw-r--r-- | lex.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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} } |