Skip to content

Commit

Permalink
Merge pull request godotengine#97269 from timothyqiu/underline-unicod…
Browse files Browse the repository at this point in the history
…e-identifier

Fix script editor not underlining Unicode identifiers when Ctrl-hovered
  • Loading branch information
akien-mga committed Sep 21, 2024
2 parents 0df4a85 + 208797d commit 2daea4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2daea4b

Please sign in to comment.