summaryrefslogtreecommitdiffstats
path: root/editor/editor_native_shader_source_visualizer.cpp
diff options
context:
space:
mode:
authorjsjtxietian <jsjtxietian@outlook.com>2024-05-07 14:18:48 +0800
committerjsjtxietian <jsjtxietian@outlook.com>2024-05-07 14:18:48 +0800
commitcff11113590fd49d015be68dbcd021a002d5f6cb (patch)
treece5a634b756986d0900c3b28ce694e8eff454c31 /editor/editor_native_shader_source_visualizer.cpp
parent7cdad333114e6765351ed0facb48db228ef29b7b (diff)
downloadredot-engine-cff11113590fd49d015be68dbcd021a002d5f6cb.tar.gz
Make native shader source visualizer can highlight uint suffix
Diffstat (limited to 'editor/editor_native_shader_source_visualizer.cpp')
-rw-r--r--editor/editor_native_shader_source_visualizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_native_shader_source_visualizer.cpp b/editor/editor_native_shader_source_visualizer.cpp
index 0e3e44bb7e..d87f17f22a 100644
--- a/editor/editor_native_shader_source_visualizer.cpp
+++ b/editor/editor_native_shader_source_visualizer.cpp
@@ -66,6 +66,8 @@ void EditorNativeShaderSourceVisualizer::_load_theme_settings() {
// Colorize preprocessor statements.
const Color user_type_color = EDITOR_GET("text_editor/theme/highlighting/user_type_color");
syntax_highlighter->add_color_region("#", "", user_type_color, true);
+
+ syntax_highlighter->set_uint_suffix_enabled(true);
}
void EditorNativeShaderSourceVisualizer::_inspect_shader(RID p_shader) {