Skip to content

Commit 2daea4b

Browse files
committed
Merge pull request #97269 from timothyqiu/underline-unicode-identifier
Fix script editor not underlining Unicode identifiers when Ctrl-hovered
2 parents 0df4a85 + 208797d commit 2daea4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/text_edit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ void TextEdit::_notification(int p_what) {
12651265
}
12661266

12671267
if (!clipped && lookup_symbol_word.length() != 0) { // Highlight word
1268-
if (is_ascii_alphabet_char(lookup_symbol_word[0]) || lookup_symbol_word[0] == '_' || lookup_symbol_word[0] == '.') {
1268+
if (is_unicode_identifier_start(lookup_symbol_word[0]) || lookup_symbol_word[0] == '.') {
12691269
Color highlight_underline_color = !editable ? theme_cache.font_readonly_color : theme_cache.font_color;
12701270
int lookup_symbol_word_col = _get_column_pos_of_word(lookup_symbol_word, str, SEARCH_MATCH_CASE | SEARCH_WHOLE_WORDS, 0);
12711271
int lookup_symbol_word_len = lookup_symbol_word.length();

0 commit comments

Comments
 (0)