Make native shader source visualizer can highlight uint suffix

This commit is contained in:
jsjtxietian 2024-05-07 14:18:48 +08:00
parent 7cdad33311
commit cff1111359
3 changed files with 4 additions and 2 deletions

View file

@ -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) {