From de7cbe87894cc9eaea1f3057fff7fe98f66aad25 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Sun, 5 Feb 2023 12:01:01 +0300 Subject: [PATCH] Highlight doc comments in a different color --- core/object/script_language.h | 1 + core/object/script_language_extension.cpp | 1 + core/object/script_language_extension.h | 10 ++++++++++ doc/classes/EditorSettings.xml | 3 +++ doc/classes/ScriptLanguageExtension.xml | 5 +++++ editor/code_editor.cpp | 3 +++ editor/code_editor.h | 1 + editor/editor_settings.cpp | 1 + editor/editor_themes.cpp | 4 +++- editor/plugins/editor_preview_plugins.cpp | 11 ++++++++++- editor/plugins/script_editor_plugin.cpp | 10 ++++++++++ editor/plugins/script_text_editor.cpp | 15 ++++++++++++++- modules/gdscript/editor/gdscript_highlighter.cpp | 16 +++++++++++++--- modules/gdscript/gdscript.h | 1 + modules/gdscript/gdscript_editor.cpp | 4 ++++ modules/mono/csharp_script.cpp | 5 +++++ modules/mono/csharp_script.h | 1 + 17 files changed, 86 insertions(+), 6 deletions(-) diff --git a/core/object/script_language.h b/core/object/script_language.h index 5ff7cd8582b1..3e4041d1733e 100644 --- a/core/object/script_language.h +++ b/core/object/script_language.h @@ -239,6 +239,7 @@ class ScriptLanguage : public Object { virtual void get_reserved_words(List *p_words) const = 0; virtual bool is_control_flow_keyword(String p_string) const = 0; virtual void get_comment_delimiters(List *p_delimiters) const = 0; + virtual void get_doc_comment_delimiters(List *p_delimiters) const = 0; virtual void get_string_delimiters(List *p_delimiters) const = 0; virtual Ref