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/unicode/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/unicode/plus.yue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/unicode/plus.yue b/spec/inputs/unicode/plus.yue index b08974f..70b57bb 100644 --- a/spec/inputs/unicode/plus.yue +++ b/spec/inputs/unicode/plus.yue | |||
@@ -8,13 +8,13 @@ | |||
8 | 8 | ||
9 | 打印 @循环, @@函数 123 | 9 | 打印 @循环, @@函数 123 |
10 | 10 | ||
11 | if 颜色 = 消息\匹配 "<%w*>" then 消息 = 消息\替换 "<%->", 颜色 | 11 | if 颜色 := 消息\匹配 "<%w*>" then 消息 = 消息\替换 "<%->", 颜色 |
12 | 12 | ||
13 | 消息 = 消息\替换 "<%->", 颜色 if 颜色 = 消息\匹配 "<%w*>" | 13 | 消息 = 消息\替换 "<%->", 颜色 if 颜色 := 消息\匹配 "<%w*>" |
14 | 14 | ||
15 | 数值A = 方法! if 方法 = 获取方法! | 15 | 数值A = 方法! if 方法 := 获取方法! |
16 | 16 | ||
17 | local 数值A = 方法! if 方法 = 获取方法! | 17 | local 数值A = 方法! if 方法 := 获取方法! |
18 | 18 | ||
19 | 数值B = do | 19 | 数值B = do |
20 | 方法 = 获取方法! | 20 | 方法 = 获取方法! |