aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/do.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
committerLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
commite61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch)
tree6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/inputs/unicode/do.yue
parent289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff)
downloadyuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.tar.gz
yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.tar.bz2
yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.zip
add unicode identifier support, fix more issue from #144
Diffstat (limited to 'spec/inputs/unicode/do.yue')
-rw-r--r--spec/inputs/unicode/do.yue27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/inputs/unicode/do.yue b/spec/inputs/unicode/do.yue
new file mode 100644
index 0000000..5b452bf
--- /dev/null
+++ b/spec/inputs/unicode/do.yue
@@ -0,0 +1,27 @@
1
2do
3 打印 "你好"
4 打印 "世界"
5
6变量x = do
7 打印 "你好"
8 打印 "世界"
9
10变量y = do
11 东西 = "shhh"
12 -> "你好: " .. 东西
13
14_ = -> if 某条件 then do "好的"
15
16变量t = {
17 y字段: do
18 数字 = 100
19 (参数x) -> 参数x + 数字
20}
21
22(参数y=(do
23 变量x = 10 + 2
24 变量x), 参数k=do
25 "没啥") -> do
26 "啊"
27