Merge pull request #15172 from binbitten/issue_15167
Fixed wrong highlighted line when erroring and using comments
This commit is contained in:
commit
9d40688952
|
@ -334,6 +334,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
|
|||
|
||||
while (true) {
|
||||
if (GETCHAR(0) == '\n') {
|
||||
tk_line++;
|
||||
char_idx++;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue