diff options
author | binbitten <martinsjursen@gmail.com> | 2017-12-29 19:32:21 +0100 |
---|---|---|
committer | binbitten <martinsjursen@gmail.com> | 2017-12-29 19:32:21 +0100 |
commit | 9b2283382ea19b6db5dca144f2d3ff63db7d9701 (patch) | |
tree | 8f8e199dbf816db0e81d8dbf7fe3031c155797e9 | |
parent | 99960d929435423b25e9bfb55051af60edbfcca9 (diff) |
Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167
-rw-r--r-- | servers/visual/shader_language.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 834505df9a..076f337635 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -334,6 +334,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() { while (true) { if (GETCHAR(0) == '\n') { + tk_line++; char_idx++; break; } |