Преглед на файлове

Allow unicode identifier in GDScript syntax highlighter

Haoyu Qiu преди 2 години
родител
ревизия
5a283bdbcd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      modules/gdscript/editor/gdscript_highlighter.cpp

+ 1 - 1
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;
 		}