aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2025-05-07 11:56:39 +0200
committerHimbeer <himbeer@disroot.org>2025-05-07 11:56:39 +0200
commit3242354f67a38ab680379ab702ddcc7d9d1c307f (patch)
treee7469f40345911379fc06a13b5d1b13f6fd16389 /src
parent773d0876aca8ddcc3e37caca8a63f62249d0b3d9 (diff)
Add missing 'as' and 'tagof' tokens
Diffstat (limited to 'src')
-rw-r--r--src/lex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lex.c b/src/lex.c
index bb82fed..d6ab2f0 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -11,6 +11,7 @@
const char *tokens[] = {
// Must match enum lexical_token (lex.h)
[T_ALIGN] = "align",
+ [T_AS] = "as",
[T_BREAK] = "break",
[T_CONST] = "const",
[T_CONTINUE] = "continue",
@@ -27,6 +28,7 @@ const char *tokens[] = {
[T_PUB] = "pub",
[T_RETURN] = "return",
[T_STRUCT] = "struct",
+ [T_TAGOF] = "tagof",
[T_TRUE] = "true",
[T_UNION] = "union",
[T_VAR] = "var",