GDScript: Fix bogus error when a cursor token is found on class

This commit is contained in:
George Marques 2018-07-25 13:39:05 -03:00
parent 1ac9c0fe3a
commit 3d6609303b
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D

View File

@ -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: {