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