GDScript: Fix bogus error when a cursor token is found on class
This commit is contained in:
parent
1ac9c0fe3a
commit
3d6609303b
1 changed files with 3 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue