From c4edec424d9be98198054885c4fa21d4c0c0641b Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 13 Jul 2022 00:09:59 +0200 Subject: [PATCH] Separate syntax highlighting options. --- modules/cscript/editor/cscript_highlighter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/cscript/editor/cscript_highlighter.cpp b/modules/cscript/editor/cscript_highlighter.cpp index 5a06a9dfb..983cd7761 100644 --- a/modules/cscript/editor/cscript_highlighter.cpp +++ b/modules/cscript/editor/cscript_highlighter.cpp @@ -372,21 +372,21 @@ void CScriptSyntaxHighlighter::_update_cache() { node_path_color = Color(0.32, 0.55, 0.29); } - EDITOR_DEF("text_editor/highlighting/gdscript/function_definition_color", function_definition_color); - EDITOR_DEF("text_editor/highlighting/gdscript/node_path_color", node_path_color); + EDITOR_DEF("text_editor/highlighting/cscript/function_definition_color", function_definition_color); + EDITOR_DEF("text_editor/highlighting/cscript/node_path_color", node_path_color); if (text_editor_color_theme == "Adaptive" || default_theme) { EditorSettings::get_singleton()->set_initial_value( - "text_editor/highlighting/gdscript/function_definition_color", + "text_editor/highlighting/cscript/function_definition_color", function_definition_color, true); EditorSettings::get_singleton()->set_initial_value( - "text_editor/highlighting/gdscript/node_path_color", + "text_editor/highlighting/cscript/node_path_color", node_path_color, true); } - function_definition_color = EDITOR_GET("text_editor/highlighting/gdscript/function_definition_color"); - node_path_color = EDITOR_GET("text_editor/highlighting/gdscript/node_path_color"); + function_definition_color = EDITOR_GET("text_editor/highlighting/cscript/function_definition_color"); + node_path_color = EDITOR_GET("text_editor/highlighting/cscript/node_path_color"); type_color = EDITOR_GET("text_editor/highlighting/base_type_color"); }