mirror of
https://github.com/godotengine/godot.git
synced 2025-02-03 12:57:35 +00:00
Merge pull request #48989 from MarioLiebisch/variant-comment-line-breaks
Properly increase line counter when parsing comments
This commit is contained in:
commit
192499c743
@ -162,6 +162,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
|
||||
return OK;
|
||||
}
|
||||
if (ch == '\n') {
|
||||
line++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1401,6 +1402,7 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
|
||||
return ERR_FILE_EOF;
|
||||
}
|
||||
if (ch == '\n') {
|
||||
line++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user