diff options
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 | |||