summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-29 14:11:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-29 14:11:50 +0100
commit21af5733b8e775cf1a97f8fe1f43304f3b2d796c (patch)
tree954eeb7c176591a92e37334b03a5d53f34739510
parent915bdd4b4d47b4b5279ae012c9db18c471adb6c4 (diff)
parent5a283bdbcdffdefe8a6dfaa2edd5642ff266f0ea (diff)
Merge pull request #72295 from timothyqiu/unicode-highlighter
Allow unicode identifier in GDScript syntax highlighter
-rw-r--r--modules/gdscript/editor/gdscript_highlighter.cpp2
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;
}