fix: tags now also support suppercollider tags (#1284)
This commit is contained in:
@@ -903,7 +903,7 @@ function make_entry.gen_from_ctags(opts)
|
||||
|
||||
local tag, file, scode, lnum
|
||||
-- ctags gives us: 'tags\tfile\tsource'
|
||||
tag, file, scode = string.match(line, '([^\t]+)\t([^\t]+)\t/^\t?(.*)/;"\t+.*')
|
||||
tag, file, scode = string.match(line, '([^\t]+)\t([^\t]+)\t/^?\t?(.*)/;"\t+.*')
|
||||
if not tag then
|
||||
-- hasktags gives us: 'tags\tfile\tlnum'
|
||||
tag, file, lnum = string.match(line, "([^\t]+)\t([^\t]+)\t(%d+).*")
|
||||
|
||||
@@ -570,7 +570,7 @@ previewers.ctags = defaulter(function(_)
|
||||
bufname = self.state.bufname,
|
||||
winid = self.state.winid,
|
||||
callback = function(bufnr)
|
||||
vim.api.nvim_buf_call(bufnr, function()
|
||||
pcall(vim.api.nvim_buf_call, bufnr, function()
|
||||
determine_jump(entry)(self, bufnr)
|
||||
end)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user