diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-10-12 23:20:40 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-10-13 09:38:03 +0300 |
commit | 881fe67d94f19d2b8e9fc10ce57731ca2aa005e4 (patch) | |
tree | 07154153c1fd46455e2f3a277b173175ae42c44b /modules/gdscript/editor/gdscript_highlighter.cpp | |
parent | b1371806ad3907c009458ea939bd4b810f9deb21 (diff) | |
download | redot-engine-881fe67d94f19d2b8e9fc10ce57731ca2aa005e4.tar.gz |
Code Editor: Fix regression with using doc comments for code regions
Diffstat (limited to 'modules/gdscript/editor/gdscript_highlighter.cpp')
-rw-r--r-- | modules/gdscript/editor/gdscript_highlighter.cpp | 2 |
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; } } |