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/literals.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/literals.yue')
-rw-r--r-- | spec/inputs/unicode/literals.yue | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/spec/inputs/unicode/literals.yue b/spec/inputs/unicode/literals.yue new file mode 100644 index 0000000..3d58096 --- /dev/null +++ b/spec/inputs/unicode/literals.yue | |||
@@ -0,0 +1,55 @@ | |||
1 | |||
2 | 数据 = { | ||
3 | 121 | ||
4 | 121.2323 | ||
5 | 121.2323e-1 | ||
6 | 121.2323e13434 | ||
7 | 2323E34 | ||
8 | 0x12323 | ||
9 | |||
10 | 0xfF2323 | ||
11 | 0xabcdef | ||
12 | 0xABCDEF | ||
13 | 0x123p-123 | ||
14 | 0xABCP+321 | ||
15 | 0x.1p-111 | ||
16 | 0xA_B_CP-3_2_1 | ||
17 | |||
18 | .2323 | ||
19 | .2323e-1 | ||
20 | .2323e13434 | ||
21 | |||
22 | |||
23 | 1LL | ||
24 | 1ULL | ||
25 | 9332LL | ||
26 | 9332 | ||
27 | 0x2aLL | ||
28 | 0x2aULL | ||
29 | |||
30 | 1_000_000.000_000_1 | ||
31 | 1_234e567_8 | ||
32 | 1_234E-567_8 | ||
33 | 0xDE_AD_BE_EF | ||
34 | |||
35 | [[ 你好 世界 ]] | ||
36 | |||
37 | [=[ 你好 世界 ]=] | ||
38 | [====[ 你好 世界 ]====] | ||
39 | |||
40 | "另一个 世界" | ||
41 | |||
42 | '哪个 世界' | ||
43 | |||
44 | |||
45 | " | ||
46 | 你好 世界 | ||
47 | " | ||
48 | |||
49 | '是的 | ||
50 | 发生了什么 | ||
51 | 这里有些很酷的东西' | ||
52 | |||
53 | } | ||
54 | 空值 | ||
55 | |||