Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion script/provider/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local ws = require 'workspace'
local isEnable = false

local function allWords()
local str = '\t\n.:(\'"[,#*@|=-{/\\ +?'
local str = '\t\n.:(\'"[,#*@|=-{ +?'
local mark = {}
local list = {}
for c in str:gmatch '.' do
Expand All @@ -20,6 +20,11 @@ local function allWords()
list[#list+1] = postfix
mark[postfix] = true
end
local separator = config.get(scp.uri, 'Lua.completion.requireSeparator')
if not mark[separator] then
list[#list+1] = separator
mark[separator] = true
end
end
return list
end
Expand Down