Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167
This commit is contained in:
parent
99960d9294
commit
9b2283382e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue