diff options
author | 2014-05-28 01:05:50 -0400 | |
---|---|---|
committer | 2014-05-28 01:05:50 -0400 | |
commit | 3a0af8b2f77401438e833923064ebe10df7230c7 (patch) | |
tree | e8b51bbc419b628463568235bcded404a35def55 /modules/lua/init.lua | |
parent | b4406281a72c25aa2194bf05cb9d4efceb18785d (diff) | |
download | textadept-3a0af8b2f77401438e833923064ebe10df7230c7.tar.gz textadept-3a0af8b2f77401438e833923064ebe10df7230c7.zip |
Utilize list separator characters instead of hard-coded characters.
Diffstat (limited to 'modules/lua/init.lua')
-rw-r--r-- | modules/lua/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua index 82320b20..9c86b8bf 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -58,6 +58,7 @@ textadept.editing.autocompleters.lua = function() end -- Search through ctags for completions for that symbol. local name_patt = '^'..part + local sep = string.char(buffer.auto_c_type_separator) for i = 1, #M.tags do if lfs.attributes(M.tags[i]) then for line in io.lines(M.tags[i]) do @@ -66,7 +67,8 @@ textadept.editing.autocompleters.lua = function() local fields = line:match(';"\t(.*)$') local k, class = fields:sub(1, 1), fields:match('class:(%S+)') or '' if class == symbol and (op ~= ':' or k == 'f') then - list[#list + 1], list[name] = ("%s?%d"):format(name, xpms[k]), true + list[#list + 1] = ("%s%s%d"):format(name, sep, xpms[k]) + list[name] = true end end end |