diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-09-21 14:10:05 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-09-21 14:10:05 +0800 |
commit | 208797d54ee64a93d41d88b1b4af3d62e3e2116b (patch) | |
tree | 41faa59120c5e70b7646451aa39b4e5290d73b4c | |
parent | 621cadcf651b93757d5dbf8969023ae62a16f1a4 (diff) | |
download | redot-engine-208797d54ee64a93d41d88b1b4af3d62e3e2116b.tar.gz |
Fix script editor not underlining Unicode identifiers when Ctrl-hovered
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 888e680219..687ca4d4d4 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1265,7 +1265,7 @@ void TextEdit::_notification(int p_what) { } if (!clipped && lookup_symbol_word.length() != 0) { // Highlight word - if (is_ascii_alphabet_char(lookup_symbol_word[0]) || lookup_symbol_word[0] == '_' || lookup_symbol_word[0] == '.') { + if (is_unicode_identifier_start(lookup_symbol_word[0]) || lookup_symbol_word[0] == '.') { Color highlight_underline_color = !editable ? theme_cache.font_readonly_color : theme_cache.font_color; int lookup_symbol_word_col = _get_column_pos_of_word(lookup_symbol_word, str, SEARCH_MATCH_CASE | SEARCH_WHOLE_WORDS, 0); int lookup_symbol_word_len = lookup_symbol_word.length(); |