diff options
author | Li Jin <dragon-fly@qq.com> | 2023-12-07 23:49:48 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-12-07 23:55:16 +0800 |
commit | 514b9f97febe8920a78d6078b092fe84b859a963 (patch) | |
tree | 8c76ba7579f69db7e2c899e4713009b910e0fa89 /spec/inputs/plus.yue | |
parent | a1d719e3bbfe8cd39c05d2a8f49143b9e814f876 (diff) | |
download | yuescript-0.21.0.tar.gz yuescript-0.21.0.tar.bz2 yuescript-0.21.0.zip |
changed the if-assignment syntax to prevent some errors.v0.21.0
Diffstat (limited to '')
-rw-r--r-- | spec/inputs/plus.yue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/plus.yue b/spec/inputs/plus.yue index e387090..9c500a4 100644 --- a/spec/inputs/plus.yue +++ b/spec/inputs/plus.yue | |||
@@ -8,13 +8,13 @@ c.repeat.if\then("xyz")\else res | |||
8 | 8 | ||
9 | print @for,@@function 123 | 9 | print @for,@@function 123 |
10 | 10 | ||
11 | if fcolor = message\match "<%w*>" then message = message\gsub "<%->", fcolor | 11 | if fcolor := message\match "<%w*>" then message = message\gsub "<%->", fcolor |
12 | 12 | ||
13 | message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" | 13 | message = message\gsub "<%->", fcolor if fcolor := message\match "<%w*>" |
14 | 14 | ||
15 | valA = func! if func = getfunc! | 15 | valA = func! if func := getfunc! |
16 | 16 | ||
17 | local valA = func! if func = getfunc! | 17 | local valA = func! if func := getfunc! |
18 | 18 | ||
19 | valB = do | 19 | valB = do |
20 | func = getfunc! | 20 | func = getfunc! |