aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/string.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/unicode/string.yue')
-rw-r--r--spec/inputs/unicode/string.yue74
1 files changed, 74 insertions, 0 deletions
diff --git a/spec/inputs/unicode/string.yue b/spec/inputs/unicode/string.yue
new file mode 100644
index 0000000..09851ec
--- /dev/null
+++ b/spec/inputs/unicode/string.yue
@@ -0,0 +1,74 @@
1
2你好 = "你好"
3问候 = "啥事,好吧"
4打印 你好
5
6嗯 = '嗯'
7
8这里, 另一个 = "好的", '世界'
9
10呀 = "YU'M"
11你 '我说:"嗯"'
12
13打印 呀, 你
14
15另一个 = [[ 你好 世界 ]]
16
17你好_那里 = [[
18 你好呀
19]]
20
21好吧 = [==[ "helo" ]==]
22
23哈喽 = [===[
24 eat noots]===]
25
26嗯嗯 = [[well trhere]]
27
28文字 = [[
29
30nil
31Fail to compile
32]]
33
34文字[ [[abc]]] = [["#{变量i}" for 变量i = 1, 10] for 变量i = 1, 10]]
35
36哦哦 = ""
37
38变量x = "\\"
39变量x = "a\\b"
40变量x = "\\\n"
41变量x = "\""
42
43--
44
45变量a = "你好 #{问候} 你好"
46变量b = "#{问候} 你好"
47变量c = "你好 #{5+1}"
48变量d = "#{你好 世界}"
49变量e = "#{1} #{2} #{3}"
50
51变量f = [[你好 #{世界} 世界]]
52变量g = "\#{你好 世界}"
53
54--
55
56变量a = '你好 #{问候} 你好'
57变量b = '#{问候} 你好'
58变量c = '你好 #{问候}'
59
60
61--
62
63变量_ = "你好"
64"你好"\格式 1
65"你好"\格式(1,2,3)
66"你好"\格式(1,2,3) 1,2,3
67
68"你好"\世界!
69"你好"\格式!.问候 1,2,3
70"你好"\格式 1,2,3
71
72某事"你好"\世界!
73某事 "你好"\世界!
74