mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fixed shader editor comment highlighting
This commit is contained in:
parent
91b21e5fbc
commit
69d1c48b73
3 changed files with 4 additions and 4 deletions
|
@ -885,7 +885,7 @@ void VisualShaderEditor::_update_graph() {
|
|||
expression_box->add_theme_color_override("font_color", text_color);
|
||||
expression_syntax_highlighter->set_symbol_color(symbol_color);
|
||||
expression_syntax_highlighter->add_color_region("/*", "*/", comment_color, false);
|
||||
expression_syntax_highlighter->add_color_region("//", "", comment_color, false);
|
||||
expression_syntax_highlighter->add_color_region("//", "", comment_color, true);
|
||||
|
||||
expression_box->set_text(expression);
|
||||
expression_box->set_context_menu_enabled(false);
|
||||
|
@ -1752,7 +1752,7 @@ void VisualShaderEditor::_notification(int p_what) {
|
|||
syntax_highlighter->set_symbol_color(symbol_color);
|
||||
syntax_highlighter->clear_color_regions();
|
||||
syntax_highlighter->add_color_region("/*", "*/", comment_color, false);
|
||||
syntax_highlighter->add_color_region("//", "", comment_color, false);
|
||||
syntax_highlighter->add_color_region("//", "", comment_color, true);
|
||||
|
||||
error_text->add_theme_font_override("font", get_theme_font("status_source", "EditorFonts"));
|
||||
error_text->add_theme_color_override("font_color", get_theme_color("error_color", "Editor"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue