diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-02-09 16:23:15 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-02-09 16:23:15 +0800 |
| commit | 9f622c5bbd9cfb7e66a9fd3c371461af4249d566 (patch) | |
| tree | 72a9157ca752b629dde288f4d2b97a072b7e0d5f /spec/inputs/syntax.mp | |
| parent | 4b5b9181d484607b6eeeda2608ff6483647222a9 (diff) | |
| download | yuescript-9f622c5bbd9cfb7e66a9fd3c371461af4249d566.tar.gz yuescript-9f622c5bbd9cfb7e66a9fd3c371461af4249d566.tar.bz2 yuescript-9f622c5bbd9cfb7e66a9fd3c371461af4249d566.zip | |
partially fix another issue from issue #38.
Diffstat (limited to 'spec/inputs/syntax.mp')
| -rw-r--r-- | spec/inputs/syntax.mp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/inputs/syntax.mp b/spec/inputs/syntax.mp index 1bb962f..c8ad96d 100644 --- a/spec/inputs/syntax.mp +++ b/spec/inputs/syntax.mp | |||
| @@ -82,6 +82,22 @@ something [[else]], 2 | |||
| 82 | 82 | ||
| 83 | _ = here(we)"go"[12123] | 83 | _ = here(we)"go"[12123] |
| 84 | 84 | ||
| 85 | split"abc xyz 123"\map"#"\printAll! | ||
| 86 | |||
| 87 | _ = f""[a] | ||
| 88 | _ = f""\b! | ||
| 89 | _ = f"".c! | ||
| 90 | |||
| 91 | f ""[a] | ||
| 92 | f ""\b! | ||
| 93 | f "".c! | ||
| 94 | |||
| 95 | list{"abc", "xyz", "123"}\map"#"\printAll! | ||
| 96 | |||
| 97 | _ = f{}[a] | ||
| 98 | _ = f{}\b! | ||
| 99 | _ = f{}.c! | ||
| 100 | |||
| 85 | -- this runs | 101 | -- this runs |
| 86 | something = | 102 | something = |
| 87 | test: 12323 | 103 | test: 12323 |
