Browse Source

Document Unicode identifiers now being supported in GDScript reference

Hugo Locurcio 2 years ago
parent
commit
0c9ac1fc42
1 changed files with 10 additions and 4 deletions
  1. 10 4
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 10 - 4
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -130,10 +130,16 @@ the linked class descriptions.
 Identifiers
 ~~~~~~~~~~~
 
-Any string that restricts itself to alphabetic characters (``a`` to
-``z`` and ``A`` to ``Z``), digits (``0`` to ``9``) and ``_`` qualifies
-as an identifier. Additionally, identifiers must not begin with a digit.
-Identifiers are case-sensitive (``foo`` is different from ``FOO``).
+Any string that restricts itself to alphabetic characters (``a`` to ``z`` and
+``A`` to ``Z``), digits (``0`` to ``9``) and ``_`` qualifies as an identifier.
+Additionally, identifiers must not begin with a digit. Identifiers are
+case-sensitive (``foo`` is different from ``FOO``).
+
+Identifiers may also contain most Unicode characters part of
+`UAX#31 <https://www.unicode.org/reports/tr31/>`__. This allows you to use
+identifier names written in languages other than English. Unicode characters
+that are considered "confusable" for ASCII characters and emoji are not allowed
+in identifiers.
 
 Keywords
 ~~~~~~~~