diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-06-22 16:50:40 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-06-22 16:50:40 +0800 |
| commit | cd2b60b101a398cb9356d746364e70eaed1860f1 (patch) | |
| tree | a1fe71b76faabc4883f16905a94164ce5c23e692 /spec/inputs/backcall.moon | |
| parent | 88c1052e700f38cf3d8ad82d469da4c487760b7e (diff) | |
| download | yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.gz yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.bz2 yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.zip | |
add support for local variable declared with attribute 'close' and 'const' for Lua 5.4.
Diffstat (limited to 'spec/inputs/backcall.moon')
| -rw-r--r-- | spec/inputs/backcall.moon | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index b6fe24f..86b0ba3 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon | |||
| @@ -79,7 +79,7 @@ do | |||
| 79 | f7! | 79 | f7! |
| 80 | 80 | ||
| 81 | do | 81 | do |
| 82 | {:result,:msg} = do | 82 | :result,:msg = do |
| 83 | (data)<- receiveAsync "filename.txt" | 83 | (data)<- receiveAsync "filename.txt" |
| 84 | print data | 84 | print data |
| 85 | (info)<- processAsync data | 85 | (info)<- processAsync data |
| @@ -107,6 +107,10 @@ alert "hi" | |||
| 107 | 107 | ||
| 108 | x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y | 108 | x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y |
| 109 | 109 | ||
| 110 | x1 = 3 * -4 |> f | ||
| 111 | |||
| 112 | x2 = 3 * -2 ^ 2 |> f | ||
| 113 | |||
| 110 | y = 1 + not # 2 |> (a ^ c) |> b(3,_) * 4 ^ -123 |> f |> f1 or 123 | 114 | y = 1 + not # 2 |> (a ^ c) |> b(3,_) * 4 ^ -123 |> f |> f1 or 123 |
| 111 | 115 | ||
| 112 | nil | 116 | nil |
