mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue