Browse Source

Increase line counter when parsing comments

(cherry picked from commit bf708e72dc5b6de7f2b0e8f433f17ba2e3064179)
Mario Liebisch 4 years ago
parent
commit
4cfe174263
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/variant_parser.cpp

+ 2 - 0
core/variant_parser.cpp

@@ -157,6 +157,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
 						return OK;
 					}
 					if (ch == '\n') {
+						line++;
 						break;
 					}
 				}
@@ -1457,6 +1458,7 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
 					return ERR_FILE_EOF;
 				}
 				if (ch == '\n') {
+					line++;
 					break;
 				}
 			}