summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editor/editor_native_shader_source_visualizer.cpp2
-rw-r--r--editor/plugins/text_shader_editor.cpp2
-rw-r--r--scene/resources/syntax_highlighter.h2
3 files changed, 4 insertions, 2 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) {
diff --git a/editor/plugins/text_shader_editor.cpp b/editor/plugins/text_shader_editor.cpp
index a1d1df0f83..22a475900f 100644
--- a/editor/plugins/text_shader_editor.cpp
+++ b/editor/plugins/text_shader_editor.cpp
@@ -335,7 +335,7 @@ void ShaderTextEditor::_load_theme_settings() {
warnings_panel->add_theme_font_size_override("normal_font_size", EditorNode::get_singleton()->get_editor_theme()->get_font_size(SNAME("main_size"), EditorStringName(EditorFonts)));
}
- syntax_highlighter->set_uint_suffix_enabled();
+ syntax_highlighter->set_uint_suffix_enabled(true);
}
void ShaderTextEditor::_check_shader_mode() {
diff --git a/scene/resources/syntax_highlighter.h b/scene/resources/syntax_highlighter.h
index bc66f434d4..02afd9045e 100644
--- a/scene/resources/syntax_highlighter.h
+++ b/scene/resources/syntax_highlighter.h
@@ -142,7 +142,7 @@ public:
void set_member_variable_color(Color p_color);
Color get_member_variable_color() const;
- void set_uint_suffix_enabled(bool p_enabled = true);
+ void set_uint_suffix_enabled(bool p_enabled);
};
#endif // SYNTAX_HIGHLIGHTER_H