summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-07-25 13:39:05 -0300
committerGeorge Marques <george@gmarqu.es>2018-07-25 20:50:12 -0300
commit3d6609303bc2def39fb5b87b9325b94b2549ede8 (patch)
tree574f807c38d0f03257d3ab8a71b7c93653df64d6 /modules/gdscript/gdscript_parser.cpp
parent1ac9c0fe3aa42458441cea9ca9df87bde30e676a (diff)
GDScript: Fix bogus error when a cursor token is found on class
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index 9d8d08d40a..2630e985d9 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -3332,6 +3332,9 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
switch (token) {
+ case GDScriptTokenizer::TK_CURSOR: {
+ tokenizer->advance();
+ } break;
case GDScriptTokenizer::TK_EOF:
p_class->end_line = tokenizer->get_token_line();
case GDScriptTokenizer::TK_ERROR: {