aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/destructure.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-05-29 02:00:20 +0800
committerLi Jin <dragon-fly@qq.com>2020-05-29 02:00:20 +0800
commit88c1052e700f38cf3d8ad82d469da4c487760b7e (patch)
treeaaa19c10ea1f9653e249b529586a688c275563ca /spec/inputs/destructure.moon
parent04e3cd43cee426cd5c2fa1d0fab5fabc7f19c039 (diff)
downloadyuescript-88c1052e700f38cf3d8ad82d469da4c487760b7e.tar.gz
yuescript-88c1052e700f38cf3d8ad82d469da4c487760b7e.tar.bz2
yuescript-88c1052e700f38cf3d8ad82d469da4c487760b7e.zip
change operator precedence to [1].^ [2].unary operators (not, #, -, ~) [3].|> [4].*, /, //, %, ...
fix destructure with one table variable to operator-value expression. fix simple chain value with Lua keyword colon chain item.
Diffstat (limited to 'spec/inputs/destructure.moon')
-rw-r--r--spec/inputs/destructure.moon3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/inputs/destructure.moon b/spec/inputs/destructure.moon
index d61b6ae..49e6393 100644
--- a/spec/inputs/destructure.moon
+++ b/spec/inputs/destructure.moon
@@ -112,3 +112,6 @@ do
112 }] 112 }]
113 113
114 {:one, :two, :three} = {w,true for w in foo\gmatch("%S+")} 114 {:one, :two, :three} = {w,true for w in foo\gmatch("%S+")}
115
116 {:a},b = a\if(123) + t, 123
117