scanner: add pub keyword
This commit is contained in:
parent
a706f077cb
commit
fc4b84b51c
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue