You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fixup #8123, seems like I forgot a few things
Should close #8315 Please test, I'm still unsure I did it correctly...
This commit is contained in:
@@ -2265,6 +2265,7 @@ void GDParser::_parse_block(BlockNode *p_block, bool p_static) {
|
|||||||
if (!is_first_line && tab_level.back()->prev() && tab_level.back()->prev()->get() == indent_level) {
|
if (!is_first_line && tab_level.back()->prev() && tab_level.back()->prev()->get() == indent_level) {
|
||||||
// pythonic single-line expression, don't parse future lines
|
// pythonic single-line expression, don't parse future lines
|
||||||
tab_level.pop_back();
|
tab_level.pop_back();
|
||||||
|
p_block->end_line = tokenizer->get_token_line();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
is_first_line = false;
|
is_first_line = false;
|
||||||
@@ -2436,9 +2437,8 @@ void GDParser::_parse_block(BlockNode *p_block, bool p_static) {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
while (tokenizer->get_token() == GDTokenizer::TK_NEWLINE) {
|
while (tokenizer->get_token() == GDTokenizer::TK_NEWLINE && _parse_newline())
|
||||||
tokenizer->advance();
|
;
|
||||||
}
|
|
||||||
|
|
||||||
if (tab_level.back()->get() < indent_level) { //not at current indent level
|
if (tab_level.back()->get() < indent_level) { //not at current indent level
|
||||||
p_block->end_line = tokenizer->get_token_line();
|
p_block->end_line = tokenizer->get_token_line();
|
||||||
|
|||||||
Reference in New Issue
Block a user