aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-05-14 10:39:00 +0800
committerLi Jin <dragon-fly@qq.com>2020-05-14 10:39:00 +0800
commit5440b846a04802626dd5c4ebc8d19e52eb5afc99 (patch)
treead5d462b7030fcf3799f51433c149babc63b99e2 /spec
parent6402a8896c78440aee03cc4b7bb315fc236e6ff8 (diff)
downloadyuescript-5440b846a04802626dd5c4ebc8d19e52eb5afc99.tar.gz
yuescript-5440b846a04802626dd5c4ebc8d19e52eb5afc99.tar.bz2
yuescript-5440b846a04802626dd5c4ebc8d19e52eb5afc99.zip
fix issue of unary and binary operator "~".
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/syntax.moon20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon
index 23b44ce..8504ae3 100644
--- a/spec/inputs/syntax.moon
+++ b/spec/inputs/syntax.moon
@@ -313,5 +313,25 @@ invokeA \
313 |> invokeB \ 313 |> invokeB \
314 |> invokeA 314 |> invokeA
315 315
316v = {
317 a -1
318 a-1
319 a - 1
320 a -
3211
322 a -\
3231
324 a - --[[123]]1
325
326 a ~1
327 a~1
328 a ~ 1
329 a ~
3301
331 a ~\
3321
333 a ~--[[123]]1
334}
335
316nil 336nil
317 337