1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00
Files
godot/modules/gdscript/tests/scripts/parser/features/unicode_identifiers.gd
George Marques 7548e043fc Add support for Unicode identifiers in GDScript
This is using an adapted version of UAX#31 to not rely on the ICU
database (which isn't available in builds without TextServerAdvanced).
It allows most characters used in diverse scripts but not everything.
2023-01-21 13:39:40 -03:00

36 lines
948 B
GDScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const π = PI
var = π
func test():
var փորձարկում = "test"
prints("փորձարկում", փորձարկում)
var امتحان = "test"
prints("امتحان", امتحان)
var = "test"
prints("পরীক্ষা", )
var тест = "test"
prints("тест", тест)
var = "test"
prints("जाँच", )
var = "test"
prints("기준", )
var = "test"
prints("测试", )
var = "test"
prints("テスト", )
var = "test"
prints("試験", )
var = "test"
prints("പരീക്ഷ", )
var = "test"
prints("ทดสอบ", )
var δοκιμή = "test"
prints("δοκιμή", δοκιμή)
const d = 1.1
_process(d)
print(is_equal_approx(, PI + (d * PI)))
func _process(Δ: float) -> void:
+= Δ * π