You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user