diff options
| author | Bojidar Marinov | 2016-08-26 14:15:45 +0300 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-04-06 19:01:43 +0200 |
| commit | ed80f4563a944dbe67a407e7d211cc394210a0f3 (patch) | |
| tree | 73c2351ce65707bc115d05bbf92090e14215d2f5 /modules/gdscript/gd_tokenizer.cpp | |
| parent | f71da5c8c5d536f32d9d9023e1b622526f1a0b93 (diff) | |
| download | godot-ed80f4563a944dbe67a407e7d211cc394210a0f3.tar.gz godot-ed80f4563a944dbe67a407e7d211cc394210a0f3.tar.zst godot-ed80f4563a944dbe67a407e7d211cc394210a0f3.zip | |
Adds enums to GDScript
Fixes #2966
(cherry picked from commit 4ee82a2c38c57fb980df1ed4727d47959ba9e983)
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
| -rw-r--r-- | modules/gdscript/gd_tokenizer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp index 3d9d49303..65156f0a9 100644 --- a/modules/gdscript/gd_tokenizer.cpp +++ b/modules/gdscript/gd_tokenizer.cpp @@ -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" }, |
