diff options
author | Li Jin <dragon-fly@qq.com> | 2020-02-07 17:29:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-02-07 17:29:34 +0800 |
commit | c241ea241e8e9c152f6eb14f163b2ae39749f7bf (patch) | |
tree | 2fd05ca6866ea60ca778fb6ff31c7ec429e138c4 /spec | |
parent | 2e50c15bfe67d4709880a0377d37fca191be2f3e (diff) | |
download | yuescript-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.moon | 6 | ||||
-rw-r--r-- | spec/inputs/syntax.moon | 8 |
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 | ||
12 | message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" | 12 | message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" |
13 | 13 | ||
14 | func val if val = getvalue! | 14 | valA = func! if func = getfunc! |
15 | |||
16 | valB = 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", | |||
242 | another hello, one, | 242 | another 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 | ||
247 | another hello, one, two, three, four, | ||
248 | yeah: man | ||
249 | okay: yeah | ||
250 | |||
251 | another hello, one, two, three, four, yeah: man | ||
252 | okay: yeah | ||
253 | |||
246 | -- | 254 | -- |
247 | a += 3 - 5 | 255 | a += 3 - 5 |
248 | a *= 3 + 5 | 256 | a *= 3 + 5 |