diff options
author | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
commit | e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch) | |
tree | 6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/inputs/unicode/plus.yue | |
parent | 289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff) | |
download | yuescript-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/plus.yue')
-rw-r--r-- | spec/inputs/unicode/plus.yue | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/spec/inputs/unicode/plus.yue b/spec/inputs/unicode/plus.yue new file mode 100644 index 0000000..b08974f --- /dev/null +++ b/spec/inputs/unicode/plus.yue | |||
@@ -0,0 +1,41 @@ | |||
1 | 变量x\执行 "工作" | ||
2 | |||
3 | 方法 变量a\执行!\结束("好")\如果 "abc", 123 | ||
4 | |||
5 | 结果 = 变量b.函数\执行!\当("好")\如果 "def", 998 | ||
6 | |||
7 | 变量c.重复.如果\然后("xyz")\否则 结果 | ||
8 | |||
9 | 打印 @循环, @@函数 123 | ||
10 | |||
11 | if 颜色 = 消息\匹配 "<%w*>" then 消息 = 消息\替换 "<%->", 颜色 | ||
12 | |||
13 | 消息 = 消息\替换 "<%->", 颜色 if 颜色 = 消息\匹配 "<%w*>" | ||
14 | |||
15 | 数值A = 方法! if 方法 = 获取方法! | ||
16 | |||
17 | local 数值A = 方法! if 方法 = 获取方法! | ||
18 | |||
19 | 数值B = do | ||
20 | 方法 = 获取方法! | ||
21 | 方法?! | ||
22 | |||
23 | global 背包 = | ||
24 | 东西: | ||
25 | 好的: 200 | ||
26 | 他们: -> | ||
27 | 打印 "你好" | ||
28 | 你的脚"小" | ||
29 | 美丽: 头发 | ||
30 | 黄金: 嗯哼 | ||
31 | 为什么: 1000 | ||
32 | |||
33 | 吃: 食物 | ||
34 | 好的: 朋友 | ||
35 | |||
36 | 开始 = | ||
37 | 东西: "冷" | ||
38 | |||
39 | local 洗澡 = | ||
40 | 在: "火" | ||
41 | |||