diff options
author | Li Jin <dragon-fly@qq.com> | 2020-02-23 10:24:01 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-02-23 10:24:01 +0800 |
commit | 7f18f8cce64f50fb0fb8ba46078860d93b883f21 (patch) | |
tree | ec66fa92a0688a7e7c79c67ec6df79055a551d8e /spec | |
parent | 39457b75c0923cf287c9145fd9c9a6ba4a86767b (diff) | |
download | yuescript-7f18f8cce64f50fb0fb8ba46078860d93b883f21.tar.gz yuescript-7f18f8cce64f50fb0fb8ba46078860d93b883f21.tar.bz2 yuescript-7f18f8cce64f50fb0fb8ba46078860d93b883f21.zip |
add placeholder support for backcall statement.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/backcall.moon | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index f5d0046..3aedba9 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon | |||
@@ -41,6 +41,16 @@ do | |||
41 | x * 2 | 41 | x * 2 |
42 | 42 | ||
43 | do | 43 | do |
44 | (x)<- map _,{1,2,3} | ||
45 | x * 2 | ||
46 | |||
47 | do | ||
48 | (x)<- filter _, do | ||
49 | (x)<- map _,{1,2,3,4} | ||
50 | x * 2 | ||
51 | x > 2 | ||
52 | |||
53 | do | ||
44 | (data)<- http?.get "ajaxtest" | 54 | (data)<- http?.get "ajaxtest" |
45 | body[".result"]\html data | 55 | body[".result"]\html data |
46 | (processed)<- http.post "ajaxprocess", data | 56 | (processed)<- http.post "ajaxprocess", data |