Optimize Lua complete
parent
71a414d1d4
commit
9f47c3df30
|
@ -68,11 +68,13 @@ event.listen {
|
|||
failed = true
|
||||
end
|
||||
end
|
||||
if failed then
|
||||
return
|
||||
end
|
||||
local last_prop = prop_parts[#prop_parts]
|
||||
if table.includes(LUA_KEYWORDS, last_prop) then
|
||||
return
|
||||
end
|
||||
if not failed then
|
||||
local options = {}
|
||||
for key, val in pairs(current_value) do
|
||||
if string.startswith(key, last_prop) and val then
|
||||
|
@ -109,7 +111,6 @@ event.listen {
|
|||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -139,6 +140,7 @@ template.define_slash_command {
|
|||
template = template.new 'query[[from index.tag "|^|"]]'
|
||||
}
|
||||
|
||||
|
||||
-- A query embedded in ${}
|
||||
template.define_slash_command {
|
||||
name = "query",
|
||||
|
|
Loading…
Reference in New Issue