gdscript tokenizer will dislike use of case, closes #4991
This commit is contained in:
parent
f071c82742
commit
ceeb5453a8
|
@ -79,8 +79,8 @@ const char* GDTokenizer::token_names[TK_MAX]={
|
||||||
"for",
|
"for",
|
||||||
"do",
|
"do",
|
||||||
"while",
|
"while",
|
||||||
"switch",
|
"switch (reserved)",
|
||||||
"case",
|
"case (reserved)",
|
||||||
"break",
|
"break",
|
||||||
"continue",
|
"continue",
|
||||||
"pass",
|
"pass",
|
||||||
|
@ -874,6 +874,7 @@ void GDTokenizerText::_advance() {
|
||||||
{TK_CF_WHILE,"while"},
|
{TK_CF_WHILE,"while"},
|
||||||
{TK_CF_DO,"do"},
|
{TK_CF_DO,"do"},
|
||||||
{TK_CF_SWITCH,"switch"},
|
{TK_CF_SWITCH,"switch"},
|
||||||
|
{TK_CF_CASE,"case"},
|
||||||
{TK_CF_BREAK,"break"},
|
{TK_CF_BREAK,"break"},
|
||||||
{TK_CF_CONTINUE,"continue"},
|
{TK_CF_CONTINUE,"continue"},
|
||||||
{TK_CF_RETURN,"return"},
|
{TK_CF_RETURN,"return"},
|
||||||
|
|
Loading…
Reference in New Issue