summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2017-12-30 22:17:11 +0900
committerGitHub <noreply@github.com>2017-12-30 22:17:11 +0900
commit9d406889529e480019dbd5b066e2c9c492d2ad97 (patch)
tree8f8e199dbf816db0e81d8dbf7fe3031c155797e9
parent99960d929435423b25e9bfb55051af60edbfcca9 (diff)
parent9b2283382ea19b6db5dca144f2d3ff63db7d9701 (diff)
Merge pull request #15172 from binbitten/issue_15167
Fixed wrong highlighted line when erroring and using comments
-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;
}