summaryrefslogtreecommitdiffstats
path: root/editor/plugins
diff options
context:
space:
mode:
authorMagian <zang_magian@163.com>2024-04-26 17:48:11 +0800
committerMagian <zang_magian@163.com>2024-04-26 17:48:11 +0800
commite3a7c751f284347fe97a940af74352da65bbf8ec (patch)
tree6b054758a8ae9c63093df6e37126057209708f35 /editor/plugins
parent4a0160241fd0c1e874e297f6b08676cf0761e5e8 (diff)
downloadredot-engine-e3a7c751f284347fe97a940af74352da65bbf8ec.tar.gz
Implement tooltips for shader uniform in the inspector.
using regular expressions
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/text_shader_editor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/text_shader_editor.cpp b/editor/plugins/text_shader_editor.cpp
index 6e786c1d94..40bd51a442 100644
--- a/editor/plugins/text_shader_editor.cpp
+++ b/editor/plugins/text_shader_editor.cpp
@@ -311,6 +311,9 @@ void ShaderTextEditor::_load_theme_settings() {
syntax_highlighter->add_color_region("/*", "*/", comment_color, false);
syntax_highlighter->add_color_region("//", "", comment_color, true);
+ const Color doc_comment_color = EDITOR_GET("text_editor/theme/highlighting/doc_comment_color");
+ syntax_highlighter->add_color_region("/**", "*/", doc_comment_color, false);
+
// Disabled preprocessor branches use translucent text color to be easier to distinguish from comments.
syntax_highlighter->set_disabled_branch_color(Color(EDITOR_GET("text_editor/theme/highlighting/text_color")) * Color(1, 1, 1, 0.5));