aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/global.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/unicode/global.yue')
-rw-r--r--spec/inputs/unicode/global.yue77
1 files changed, 77 insertions, 0 deletions
diff --git a/spec/inputs/unicode/global.yue b/spec/inputs/unicode/global.yue
new file mode 100644
index 0000000..6ababde
--- /dev/null
+++ b/spec/inputs/unicode/global.yue
@@ -0,0 +1,77 @@
1
2do
3 global 全局变量a,全局变量b,全局变量c = 223, 343, nil
4 global 酷 = "📉"
5
6do
7 global class 全局类
8 嗯: "🆒"
9
10do
11 global 全局变量a,全局变量b,全局变量c
12 全局变量a,全局变量b,变量c,变量d = "你好", nil, nil, nil
13
14
15do
16 什么 = if 这个
17 232
18 else
19 4343
20
21 global ^
22
23 另一个 = 3434
24 A另一个 = 7890
25
26 if 内部 then Y好 = "10000"
27
28 什么 = if 这个
29 232
30 else
31 4343
32
33
34do
35 global *
36
37 什么 = if 这个
38 232
39 else
40 4343
41
42 全局变量x,全局变量y,全局变量z = 1,2,3
43
44 全局变量y = ->
45 好的 = 3434
46
47 with 全局临时变量
48 变量j = 2000
49
50
51do
52 global *
53 变量x = 3434
54 if 条件y then
55 变量x = 10
56
57do
58 global *
59 if 条件y then
60 变量x = 10
61 变量x = 3434
62
63do
64 do
65 global *
66
67 变量k = 1212
68
69 do
70 变量h = 100
71
72 全局变量y = ->
73 变量h = 100
74 变量k = 100
75
76 变量h = 100
77