From c241ea241e8e9c152f6eb14f163b2ae39749f7bf Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 7 Feb 2020 17:29:34 +0800 Subject: releasing moonplus as a lib. --- spec/inputs/plus.moon | 6 +++++- spec/inputs/syntax.moon | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'spec') 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 message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" -func val if val = getvalue! +valA = func! if func = getfunc! + +valB = do + func = getfunc! + func?! 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", another hello, one, two, three, four, yeah: man okay: yeah + fine: alright +another hello, one, two, three, four, + yeah: man + okay: yeah + +another hello, one, two, three, four, yeah: man + okay: yeah + -- a += 3 - 5 a *= 3 + 5 -- cgit v1.2.3-55-g6feb