diff options
author | Li Jin <dragon-fly@qq.com> | 2020-05-14 10:39:00 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-05-14 10:39:00 +0800 |
commit | 5440b846a04802626dd5c4ebc8d19e52eb5afc99 (patch) | |
tree | ad5d462b7030fcf3799f51433c149babc63b99e2 /spec | |
parent | 6402a8896c78440aee03cc4b7bb315fc236e6ff8 (diff) | |
download | yuescript-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.moon | 20 |
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 | ||
316 | v = { | ||
317 | a -1 | ||
318 | a-1 | ||
319 | a - 1 | ||
320 | a - | ||
321 | 1 | ||
322 | a -\ | ||
323 | 1 | ||
324 | a - --[[123]]1 | ||
325 | |||
326 | a ~1 | ||
327 | a~1 | ||
328 | a ~ 1 | ||
329 | a ~ | ||
330 | 1 | ||
331 | a ~\ | ||
332 | 1 | ||
333 | a ~--[[123]]1 | ||
334 | } | ||
335 | |||
316 | nil | 336 | nil |
317 | 337 | ||