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/string.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/string.yue')
| -rw-r--r-- | spec/inputs/unicode/string.yue | 74 |
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 | |||
| 30 | nil | ||
| 31 | Fail 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 | |||
