aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/plus.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-12-07 23:49:48 +0800
committerLi Jin <dragon-fly@qq.com>2023-12-07 23:55:16 +0800
commit514b9f97febe8920a78d6078b092fe84b859a963 (patch)
tree8c76ba7579f69db7e2c899e4713009b910e0fa89 /spec/inputs/plus.yue
parenta1d719e3bbfe8cd39c05d2a8f49143b9e814f876 (diff)
downloadyuescript-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.yue8
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
9print @for,@@function 123 9print @for,@@function 123
10 10
11if fcolor = message\match "<%w*>" then message = message\gsub "<%->", fcolor 11if fcolor := message\match "<%w*>" then message = message\gsub "<%->", fcolor
12 12
13message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" 13message = message\gsub "<%->", fcolor if fcolor := message\match "<%w*>"
14 14
15valA = func! if func = getfunc! 15valA = func! if func := getfunc!
16 16
17local valA = func! if func = getfunc! 17local valA = func! if func := getfunc!
18 18
19valB = do 19valB = do
20 func = getfunc! 20 func = getfunc!