mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Adds enums to GDScript
Fixes #2966
(cherry picked from commit 4ee82a2c38)
This commit is contained in:
parent
f71da5c8c5
commit
ed80f4563a
3 changed files with 87 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ const char *GDTokenizer::token_names[TK_MAX] = {
|
|||
"setget",
|
||||
"const",
|
||||
"var",
|
||||
"enum",
|
||||
"preload",
|
||||
"assert",
|
||||
"yield",
|
||||
|
|
@ -861,6 +862,7 @@ void GDTokenizerText::_advance() {
|
|||
{ TK_PR_SIGNAL, "signal" },
|
||||
{ TK_PR_BREAKPOINT, "breakpoint" },
|
||||
{ TK_PR_CONST, "const" },
|
||||
{ TK_PR_ENUM, "enum" },
|
||||
//controlflow
|
||||
{ TK_CF_IF, "if" },
|
||||
{ TK_CF_ELIF, "elif" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue