From 8b3135edd2f27b09e80375f5aeeb1959e4c4fcbe Mon Sep 17 00:00:00 2001 From: StunxFS Date: Mon, 2 Dec 2024 13:08:11 -0400 Subject: [PATCH] add while keyword --- compiler/tokenizer/token.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/tokenizer/token.v b/compiler/tokenizer/token.v index 41d7cb9e..8fdc41a0 100644 --- a/compiler/tokenizer/token.v +++ b/compiler/tokenizer/token.v @@ -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_ @@ -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 }