aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/operators.yue
blob: 2f1184a409421e356d13aa3d6c4a75ceb305e5df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

-- binary ops
数字x = 1 + 3

数字y = 1 +
	3

数字z = 1 +
	3 +
	4

--

数字k = 变量b and 变量c and
	变量g

变量h = 东西 and
	->
		打印 "你好 世界"

-- TODO: should fail, indent still set to previous line so it thinks body is
-- indented
变量i = 东西 or
	->
	打印 "你好 世界"

变量p = 东西 and
	->
打印 "你好 世界"

变量s = 东西 or
	-> and 234

--
变量u = {
	颜色: 1 and 2 and
		3
		4
	4
}

变量v = {
	颜色: 1 and
		->
			"yeah"
		"great"
	好的: 3 ^
2
}

-- parens

变量nno = (
	是的 + 2	 )

变量nn = (
	是的 + 2
)

变量n = 你好(
	变量b
) ->

你好 变量a,
	(
		是的 +
			2
	) -
		好的