diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-08-18 23:18:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 23:18:40 +0200 |
| commit | e2fb55471c0bdd4f25ed6448e5e8eff99882afa8 (patch) | |
| tree | 74976c55f9165fddb01ae52b587e3578f52a54d7 /modules/gdscript/gdscript_tokenizer.h | |
| parent | 65730ab9f6fbae34bb161113161b43f8b3fcd4d2 (diff) | |
| parent | 35176247af80626684ff6bb1a1eb3bc031857b1c (diff) | |
| download | redot-engine-e2fb55471c0bdd4f25ed6448e5e8eff99882afa8.tar.gz | |
Merge pull request #41359 from vnen/gdscript-2-fixes
Assorted fixes for GDScript bugs
Diffstat (limited to 'modules/gdscript/gdscript_tokenizer.h')
| -rw-r--r-- | modules/gdscript/gdscript_tokenizer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/gdscript/gdscript_tokenizer.h b/modules/gdscript/gdscript_tokenizer.h index 059a226924..956530341c 100644 --- a/modules/gdscript/gdscript_tokenizer.h +++ b/modules/gdscript/gdscript_tokenizer.h @@ -168,9 +168,8 @@ public: String source; const char *get_name() const; - // TODO: Allow some keywords as identifiers? - bool is_identifier() const { return type == IDENTIFIER; } - StringName get_identifier() const { return literal; } + bool is_identifier() const; + StringName get_identifier() const { return source; } Token(Type p_type) { type = p_type; |
