日常更新

This commit is contained in:
Dvel
2023-05-24 12:46:42 +08:00
parent 97536a3a33
commit ae8af06fac
10 changed files with 367 additions and 177 deletions

View File

@@ -9,11 +9,11 @@ local function is_in_user_dict(input, env)
end
for cand in input:iter() do
if env.is_in_user_dict then
if (string.find(cand.type, "user")) then
if cand.type == "user_phrase" then
cand.comment = cand.comment .. '*'
end
else
if not (string.find(cand.type, "user")) then
if cand.type ~= "user_phrase" then
cand.comment = cand.comment .. '*'
end
end