summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-13 11:46:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-13 11:46:44 +0200
commitcd9fd6ddfd837a64ebea51e495adfb8fa843eee4 (patch)
treecfcb76cddf0937ad220df65de0b99fabbca9578a /modules/gdscript/editor
parentcbb95bc8abfeacba8b75d516b26f6464aede439f (diff)
parent881fe67d94f19d2b8e9fc10ce57731ca2aa005e4 (diff)
downloadredot-engine-cd9fd6ddfd837a64ebea51e495adfb8fa843eee4.tar.gz
Merge pull request #83216 from dalexeev/code-editor-fix-region-doc-comment
Code Editor: Fix regression with using doc comments for code regions
Diffstat (limited to 'modules/gdscript/editor')
-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;
}
}