diff options
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 |
