scanner: add pub keyword

This commit is contained in:
Luna 2019-08-26 21:31:57 -03:00
parent a706f077cb
commit fc4b84b51c

View file

@ -51,6 +51,7 @@ const keywords = [_][]const u8{
"None",
"println",
"loop",
"pub",
};
const keyword_ttypes = [_]TokenType{
@ -80,6 +81,7 @@ const keyword_ttypes = [_]TokenType{
.None,
.Println,
.Loop,
.Pub,
};
fn getKeyword(keyword: []const u8) ?TokenType {