Skip to content

Commit

Permalink
tokenizer: add test keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS authored Dec 3, 2024
1 parent 70e3883 commit 8112b18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/tokenizer/token.v
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub enum Kind {
kw_pub
kw_return
kw_struct
kw_test
kw_trait
kw_while
keyword_end
Expand Down Expand Up @@ -206,6 +207,7 @@ fn build_token_str() []string {
s[Kind.kw_pub] = 'pub'
s[Kind.kw_return] = 'return'
s[Kind.kw_struct] = 'struct'
s[Kind.kw_test] = 'test'
s[Kind.kw_trait] = 'trait'
s[Kind.kw_while] = 'while'

Expand Down

0 comments on commit 8112b18

Please sign in to comment.