From 8112b1852d342324190b879a56f640badb02560c Mon Sep 17 00:00:00 2001 From: Jose Mendoza <56417208+StunxFS@users.noreply.github.com> Date: Tue, 3 Dec 2024 08:34:20 -0400 Subject: [PATCH] tokenizer: add `test` keyword --- compiler/tokenizer/token.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/tokenizer/token.v b/compiler/tokenizer/token.v index 8fdc41a0..c165e4ee 100644 --- a/compiler/tokenizer/token.v +++ b/compiler/tokenizer/token.v @@ -103,6 +103,7 @@ pub enum Kind { kw_pub kw_return kw_struct + kw_test kw_trait kw_while keyword_end @@ -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'