summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-22 18:18:21 +0200
committerGitHub <noreply@github.com>2021-05-22 18:18:21 +0200
commitc706eb101934ec05a1aa0fa75ab79f8b1ba405e8 (patch)
tree02e2c0275315a7d698599221fd52636bd642c584 /lexer.c
parent54ca3aa25f5dd551d974724524b5f0958da35b34 (diff)
parent5714705aee31a0d561b4cf1b8096bbe19e17a825 (diff)
Merge pull request #13 from jow-/const-support
syntax: introduce `const` support
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lexer.c b/lexer.c
index cc35d66..95acfe6 100644
--- a/lexer.c
+++ b/lexer.c
@@ -152,6 +152,7 @@ static const struct keyword reserved_words[] = {
{ TK_WHILE, "while", 5, { 0 } },
{ TK_BREAK, "break", 5, { 0 } },
{ TK_CATCH, "catch", 5, { 0 } },
+ { TK_CONST, "const", 5, { 0 } },
{ TK_BOOL, "false", 5, { .b = false } },
{ TK_BOOL, "true", 4, { .b = true } },
{ TK_ELIF, "elif", 4, { 0 } },