summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-10-12 23:20:40 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-10-13 09:38:03 +0300
commit881fe67d94f19d2b8e9fc10ce57731ca2aa005e4 (patch)
tree07154153c1fd46455e2f3a277b173175ae42c44b /modules
parentb1371806ad3907c009458ea939bd4b810f9deb21 (diff)
downloadredot-engine-881fe67d94f19d2b8e9fc10ce57731ca2aa005e4.tar.gz
Code Editor: Fix regression with using doc comments for code regions
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/editor/gdscript_highlighter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp
index 144dd41f1a..8dbd262b22 100644
--- a/modules/gdscript/editor/gdscript_highlighter.cpp
+++ b/modules/gdscript/editor/gdscript_highlighter.cpp
@@ -907,6 +907,8 @@ void GDScriptSyntaxHighlighter::add_color_region(const String &p_start_key, cons
ERR_FAIL_COND_MSG(color_regions[i].start_key == p_start_key, "color region with start key '" + p_start_key + "' already exists.");
if (p_start_key.length() < color_regions[i].start_key.length()) {
at++;
+ } else {
+ break;
}
}