From 9b2283382ea19b6db5dca144f2d3ff63db7d9701 Mon Sep 17 00:00:00 2001 From: binbitten Date: Fri, 29 Dec 2017 19:32:21 +0100 Subject: Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167 --- servers/visual/shader_language.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3