aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-02-02 22:27:42 +0800
committerLi Jin <dragon-fly@qq.com>2020-02-02 22:27:42 +0800
commitaa57156b2c711bf4781d097d4748e9bc57f937b8 (patch)
tree382e2bfc6be8c855cdf2b7af9f287db1b1f76421 /spec
parent57191ed45bb7bd0ffcd917f00df2e940c900fb3c (diff)
downloadyuescript-aa57156b2c711bf4781d097d4748e9bc57f937b8.tar.gz
yuescript-aa57156b2c711bf4781d097d4748e9bc57f937b8.tar.bz2
yuescript-aa57156b2c711bf4781d097d4748e9bc57f937b8.zip
add MultiLineComment support in EscapeNewLine.
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/syntax.moon22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon
index 3ac9991..abee3e3 100644
--- a/spec/inputs/syntax.moon
+++ b/spec/inputs/syntax.moon
@@ -280,3 +280,25 @@ It's OK.
280 280
281func --[[port]] 3000, --[[ip]] "192.168.1.1" 281func --[[port]] 3000, --[[ip]] "192.168.1.1"
282 282
283f = ->
284 a,b, \
285 c,d, \
286 e,f
287
288with obj
289 invoke \
290 --[[arg1]] \func!,
291 --[[arg2]] 123,
292 --[[arg3]] "abc"
293
294invokeA \
295 invokeB \
296 invokeC 123
297
298123 \
299 |> invokeC \
300 |> invokeB \
301 |> invokeA
302
303nil
304