summaryrefslogtreecommitdiff
path: root/servers/visual
diff options
context:
space:
mode:
authorbinbitten <martinsjursen@gmail.com>2017-12-29 19:32:21 +0100
committerbinbitten <martinsjursen@gmail.com>2017-12-29 19:32:21 +0100
commit9b2283382ea19b6db5dca144f2d3ff63db7d9701 (patch)
tree8f8e199dbf816db0e81d8dbf7fe3031c155797e9 /servers/visual
parent99960d929435423b25e9bfb55051af60edbfcca9 (diff)
Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167
Diffstat (limited to 'servers/visual')
-rw-r--r--servers/visual/shader_language.cpp1
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;
}