mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
GDScript: Fix bogus error when a cursor token is found on class
This commit is contained in:
parent
1ac9c0fe3a
commit
3d6609303b
@ -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 New Issue
Block a user