diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-05 13:41:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 13:41:08 +0200 |
commit | 192499c74381686deb44950ada7a11a0232a6346 (patch) | |
tree | c13d2fd53e818034e7471a378deb6f975a3af041 /core | |
parent | 9e66a947e4ac67c12c24b94db155f4ffadc371d4 (diff) | |
parent | bf708e72dc5b6de7f2b0e8f433f17ba2e3064179 (diff) |
Merge pull request #48989 from MarioLiebisch/variant-comment-line-breaks
Properly increase line counter when parsing comments
Diffstat (limited to 'core')
-rw-r--r-- | core/variant/variant_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp index 2864d0c956..259ca8a60d 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -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; } } |