aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-02-07 17:29:34 +0800
committerLi Jin <dragon-fly@qq.com>2020-02-07 17:29:34 +0800
commitc241ea241e8e9c152f6eb14f163b2ae39749f7bf (patch)
tree2fd05ca6866ea60ca778fb6ff31c7ec429e138c4 /spec
parent2e50c15bfe67d4709880a0377d37fca191be2f3e (diff)
downloadyuescript-c241ea241e8e9c152f6eb14f163b2ae39749f7bf.tar.gz
yuescript-c241ea241e8e9c152f6eb14f163b2ae39749f7bf.tar.bz2
yuescript-c241ea241e8e9c152f6eb14f163b2ae39749f7bf.zip
releasing moonplus as a lib.
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/plus.moon6
-rw-r--r--spec/inputs/syntax.moon8
2 files changed, 13 insertions, 1 deletions
diff --git a/spec/inputs/plus.moon b/spec/inputs/plus.moon
index 8a91c93..f455845 100644
--- a/spec/inputs/plus.moon
+++ b/spec/inputs/plus.moon
@@ -11,5 +11,9 @@ if fcolor = message\match "<%w*>" then message = message\gsub "<%->", fcolor
11 11
12message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" 12message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>"
13 13
14func val if val = getvalue! 14valA = func! if func = getfunc!
15
16valB = do
17 func = getfunc!
18 func?!
15 19
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon
index ae3fc0c..5442b61 100644
--- a/spec/inputs/syntax.moon
+++ b/spec/inputs/syntax.moon
@@ -242,7 +242,15 @@ hello "comma",
242another hello, one, 242another hello, one,
243 two, three, four, yeah: man 243 two, three, four, yeah: man
244 okay: yeah 244 okay: yeah
245 fine: alright
245 246
247another hello, one, two, three, four,
248 yeah: man
249 okay: yeah
250
251another hello, one, two, three, four, yeah: man
252 okay: yeah
253
246-- 254--
247a += 3 - 5 255a += 3 - 5
248a *= 3 + 5 256a *= 3 + 5