mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Make native shader source visualizer can highlight uint suffix
This commit is contained in:
parent
7cdad33311
commit
cff1111359
3 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue