Skip to content

Commit

Permalink
remove literal keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS authored Dec 1, 2024
1 parent 7c7c9ec commit b73941e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compiler/tokenizer/token.v
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,16 @@ pub enum Kind {
kw_defer
kw_else
kw_enum
kw_false
kw_for
kw_fn
kw_if
kw_in
kw_is
kw_match
kw_mut
kw_none
kw_return
kw_struct
kw_trait
kw_true
kw_pub
kw_unsafe
keyword_end
Expand Down Expand Up @@ -201,8 +198,6 @@ fn build_token_str() []string {
s[Kind.kw_for] = 'for'
s[Kind.kw_fn] = 'fn'
s[Kind.kw_trait] = 'trait'
s[Kind.kw_true] = 'true'
s[Kind.kw_false] = 'false'
s[Kind.kw_continue] = 'continue'
s[Kind.kw_break] = 'break'
s[Kind.kw_unsafe] = 'unsafe'
Expand All @@ -213,7 +208,6 @@ fn build_token_str() []string {
s[Kind.kw_as] = 'as'
s[Kind.kw_defer] = 'defer'
s[Kind.kw_match] = 'match'
s[Kind.kw_none] = 'none'
s[Kind.kw_is] = 'is'
// The following kinds are not for tokens returned by the Rivet tokenizer,
// they are used just for organization/ease of checking:
Expand Down

0 comments on commit b73941e

Please sign in to comment.