You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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) {
|
||||
if (GETCHAR(0) == '\n') {
|
||||
tk_line++;
|
||||
char_idx++;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user