diff options
author | Li Jin <dragon-fly@qq.com> | 2020-05-26 16:12:44 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-05-26 16:12:44 +0800 |
commit | 04e3cd43cee426cd5c2fa1d0fab5fabc7f19c039 (patch) | |
tree | dcbf5ce830f5c59a32d4bca9e3df08ac891e14b8 /spec | |
parent | e183579847e5c49b3062e0e5acd3ca320fc1229b (diff) | |
download | yuescript-04e3cd43cee426cd5c2fa1d0fab5fabc7f19c039.tar.gz yuescript-04e3cd43cee426cd5c2fa1d0fab5fabc7f19c039.tar.bz2 yuescript-04e3cd43cee426cd5c2fa1d0fab5fabc7f19c039.zip |
make back call operator use highest priority for operator precedence.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/backcall.moon | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index 30a0f8f..5f53f9e 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon | |||
@@ -107,3 +107,7 @@ alert "hi" | |||
107 | 107 | ||
108 | x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y | 108 | x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y |
109 | 109 | ||
110 | y = 1 + # 2 |> a ^ c |> b(3,_) ^ 4 * -123 |> f |> f1 or 123 | ||
111 | |||
112 | nil | ||
113 | |||