Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167

This commit is contained in:
binbitten 2017-12-29 19:32:21 +01:00
parent 99960d9294
commit 9b2283382e

View file

@ -334,6 +334,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
while (true) { while (true) {
if (GETCHAR(0) == '\n') { if (GETCHAR(0) == '\n') {
tk_line++;
char_idx++; char_idx++;
break; break;
} }