"[chore] migrate lua code to be compatible with 5.5 syntax.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user