"[chore] migrate lua code to be compatible with 5.5 syntax.

This commit is contained in:
2026-05-09 01:31:32 +08:00
parent 90bdf8464d
commit dab0f20851
4 changed files with 12 additions and 10 deletions

View File

@@ -21,10 +21,11 @@ end
local function cn_en_spacer(input, env)
for cand in input:iter() do
local cand_ = cand
if is_mixed_cn_en_num(cand.text) then
cand = cand:to_shadow_candidate(cand.type, add_spaces(cand.text), cand.comment)
cand_ = cand:to_shadow_candidate(cand.type, add_spaces(cand.text), cand.comment)
end
yield(cand)
yield(cand_)
end
end