You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Increase line counter when parsing comments
This commit is contained in:
@@ -151,6 +151,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
|
||||
return OK;
|
||||
}
|
||||
if (ch == '\n') {
|
||||
line++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1321,6 +1322,7 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
|
||||
return ERR_FILE_EOF;
|
||||
}
|
||||
if (ch == '\n') {
|
||||
line++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user