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/using.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/using.yue')
| -rw-r--r-- | spec/inputs/unicode/using.yue | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/inputs/unicode/using.yue b/spec/inputs/unicode/using.yue new file mode 100644 index 0000000..c700b47 --- /dev/null +++ b/spec/inputs/unicode/using.yue | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | |||
| 2 | 你好 = "你好" | ||
| 3 | 世界 = "世界" | ||
| 4 | |||
| 5 | _ = (using nil) -> | ||
| 6 | 你好 = 3223 | ||
| 7 | |||
| 8 | _ = (参数a using nil) -> | ||
| 9 | 你好 = 3223 | ||
| 10 | 参数a = 323 | ||
| 11 | |||
| 12 | _ = (参数a,参数b,参数c using 参数a,参数b,参数c) -> | ||
| 13 | 参数a,参数b,参数c = 1,2,3 | ||
| 14 | 世界 = 12321 | ||
| 15 | |||
| 16 | _ = (参数a,参数e,参数f using 参数a,参数b,参数c, 你好) -> | ||
| 17 | 参数a,参数b,参数c = 1,2,3 | ||
| 18 | 你好 = 12321 | ||
| 19 | 世界 = "yeah" | ||
| 20 | |||
| 21 | _ = (using nil) -> | ||
| 22 | 你好 or= 2 | ||
| 23 | |||
| 24 | do | ||
| 25 | 变量a = {} | ||
| 26 | (using nil) <- _ | ||
| 27 | {元素x, 元素y} = 变量a | ||
| 28 | |||
| 29 | nil | ||
