diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-01-29 13:17:05 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-01-29 13:17:05 +0800 |
commit | 5a283bdbcdffdefe8a6dfaa2edd5642ff266f0ea (patch) | |
tree | 9a39f1e32242d2391198de2fc90fb0ae9b844d9e | |
parent | a3dae9e548e5fbab7b7be070cf71f972656f759b (diff) |
Allow unicode identifier in GDScript syntax highlighter
-rw-r--r-- | modules/gdscript/editor/gdscript_highlighter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |