diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2024-05-07 14:18:48 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2024-05-07 14:18:48 +0800 |
commit | cff11113590fd49d015be68dbcd021a002d5f6cb (patch) | |
tree | ce5a634b756986d0900c3b28ce694e8eff454c31 /editor/editor_native_shader_source_visualizer.cpp | |
parent | 7cdad333114e6765351ed0facb48db228ef29b7b (diff) | |
download | redot-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.cpp | 2 |
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) { |