We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unpack
1 parent 40fcae7 commit c61d7dbCopy full SHA for c61d7db
script/core/completion/postfix.lua
@@ -220,6 +220,24 @@ register 'pairs' {
220
end
221
}
222
223
+register 'unpack' {
224
+ function (state, source, callback)
225
+ if source.type ~= 'getglobal'
226
+ and source.type ~= 'getfield'
227
+ and source.type ~= 'getmethod'
228
+ and source.type ~= 'getindex'
229
+ and source.type ~= 'getlocal'
230
+ and source.type ~= 'call'
231
+ and source.type ~= 'table' then
232
+ return
233
+ end
234
+ local subber = subString(state)
235
+ callback(string.format('unpack(%s)'
236
+ , subber(source.start + 1, source.finish)
237
+ ))
238
239
+}
240
+
241
register 'insert' {
242
function (state, source, callback)
243
if source.type ~= 'getglobal'
0 commit comments