You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
378 B
15 lines
378 B
local function append_blank_filter(input)
|
|
local cands = {}
|
|
|
|
for cand in input:iter() do
|
|
if (not cand.comment:find("☯")) then
|
|
table.insert(cands, cand)
|
|
end
|
|
end
|
|
|
|
for i, cand in ipairs(cands) do
|
|
yield(Candidate("word", cand.start, cand._end, cand.text .. " ", cand.comment))
|
|
end
|
|
end
|
|
|
|
return { append_blank_filter = append_blank_filter }
|
|
|