From 5a283bdbcdffdefe8a6dfaa2edd5642ff266f0ea Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 29 Jan 2023 13:17:05 +0800 Subject: Allow unicode identifier in GDScript syntax highlighter --- modules/gdscript/editor/gdscript_highlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index 23be913a24..5883ec863d 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -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; } -- cgit v1.2.3