diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-23 10:24:33 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-23 10:24:33 +0100 |
| commit | 5726bf578d9b06bd7a22f1f32e0694550ea64945 (patch) | |
| tree | 16a72dee07ba513e5ff93f1a0dde2b380b81ee0c /modules/gdscript/tests/scripts/parser/errors | |
| parent | 7d604535e1d28c1999622978b1bec8af02f01138 (diff) | |
| parent | 86ee5f39c4de51ca062ce9fde3b1b3182fee5e47 (diff) | |
Merge pull request #71676 from vnen/gdscript-unicode-identifiers
Add support for Unicode identifiers in GDScript and Expression
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/errors')
| -rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.gd | 3 | ||||
| -rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.out | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.gd b/modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.gd new file mode 100644 index 0000000000..4b1f284070 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.gd @@ -0,0 +1,3 @@ +func test(): + var аs # Using Cyrillic "а". + print(аs) diff --git a/modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.out b/modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.out new file mode 100644 index 0000000000..337dec2f4d --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/identifier_similar_to_keyword.out @@ -0,0 +1,2 @@ +GDTEST_PARSER_ERROR +Identifier "аs" is visually similar to the GDScript keyword "as" and thus not allowed. |