Merge pull request #72295 from timothyqiu/unicode-highlighter

Allow unicode identifier in GDScript syntax highlighter
This commit is contained in:
Rémi Verschelde 2023-01-29 14:11:50 +01:00
commit 21af5733b8
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -307,7 +307,7 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
in_number = true;
}
if (!in_word && (is_ascii_char(str[j]) || is_underscore(str[j])) && !in_number) {
if (!in_word && is_unicode_identifier_start(str[j]) && !in_number) {
in_word = true;
}