From 514b9f97febe8920a78d6078b092fe84b859a963 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 7 Dec 2023 23:49:48 +0800 Subject: changed the if-assignment syntax to prevent some errors. --- spec/inputs/plus.yue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/inputs/plus.yue') 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 print @for,@@function 123 -if fcolor = message\match "<%w*>" then message = message\gsub "<%->", fcolor +if fcolor := message\match "<%w*>" then message = message\gsub "<%->", fcolor -message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" +message = message\gsub "<%->", fcolor if fcolor := message\match "<%w*>" -valA = func! if func = getfunc! +valA = func! if func := getfunc! -local valA = func! if func = getfunc! +local valA = func! if func := getfunc! valB = do func = getfunc! -- cgit v1.2.3-55-g6feb