summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-28 21:44:30 +0200
committerGitHub <noreply@github.com>2020-07-28 21:44:30 +0200
commit7a31baf3b9dc066fb15af8aa4f90193df3615226 (patch)
tree3d51a4112a4d95efb9613675a9712595cf856d88 /scene/resources
parent8c6c9e017e362b57a8a1cae7a08a994995dfeaa6 (diff)
parent69d1c48b73122f34187d952a08f2a7eb82fd2403 (diff)
Merge pull request #40800 from briansemrau/fix-shader-comment-highlighting
Fixed Shader editor single-line comment highlight
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/syntax_highlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/syntax_highlighter.cpp b/scene/resources/syntax_highlighter.cpp
index abf7235fd6..9c8f9334a9 100644
--- a/scene/resources/syntax_highlighter.cpp
+++ b/scene/resources/syntax_highlighter.cpp
@@ -488,7 +488,7 @@ void CodeHighlighter::add_color_region(const String &p_start_key, const String &
color_region.color = p_color;
color_region.start_key = p_start_key;
color_region.end_key = p_end_key;
- color_region.line_only = p_line_only;
+ color_region.line_only = p_line_only || p_end_key == "";
color_regions.push_back(color_region);
clear_highlighting_cache();
}