Skip to content

Commit

Permalink
add while keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Dec 2, 2024
1 parent ffa8c5c commit 8b3135e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/tokenizer/token.v
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ pub enum Kind {
kw_is
kw_match
kw_mut
kw_pub
kw_return
kw_struct
kw_trait
kw_pub
kw_while
keyword_end

_end_
Expand Down Expand Up @@ -206,6 +207,7 @@ fn build_token_str() []string {
s[Kind.kw_return] = 'return'
s[Kind.kw_struct] = 'struct'
s[Kind.kw_trait] = 'trait'
s[Kind.kw_while] = 'while'

return s
}
Expand Down

0 comments on commit 8b3135e

Please sign in to comment.