]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
'case' and 'default' are now keywords too, not just switch
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 20:40:38 +0000 (21:40 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 20:40:38 +0000 (21:40 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index e4328bec26f37b6b391019cfc99aebdf282fcf1b..c6e8552c063a89df6cf23a9ac411afe23653f9eb 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -23,7 +23,7 @@ static size_t num_keywords_qc = sizeof(keywords_qc) / sizeof(keywords_qc[0]);
 /* For fte/gmgqcc */
 static const char *keywords_fg[] = {
     "var",
-    "switch",
+    "switch", "case", "default",
     "struct", "union",
     "break", "continue"
 };