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