fix: tags now also support suppercollider tags (#1284)

This commit is contained in:
Simon Hauser
2021-09-26 12:56:06 +02:00
committed by GitHub
parent f6480b0ecb
commit 41f362006b
2 changed files with 2 additions and 2 deletions

View File

@@ -903,7 +903,7 @@ function make_entry.gen_from_ctags(opts)
local tag, file, scode, lnum local tag, file, scode, lnum
-- ctags gives us: 'tags\tfile\tsource' -- 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 if not tag then
-- hasktags gives us: 'tags\tfile\tlnum' -- hasktags gives us: 'tags\tfile\tlnum'
tag, file, lnum = string.match(line, "([^\t]+)\t([^\t]+)\t(%d+).*") tag, file, lnum = string.match(line, "([^\t]+)\t([^\t]+)\t(%d+).*")

View File

@@ -570,7 +570,7 @@ previewers.ctags = defaulter(function(_)
bufname = self.state.bufname, bufname = self.state.bufname,
winid = self.state.winid, winid = self.state.winid,
callback = function(bufnr) callback = function(bufnr)
vim.api.nvim_buf_call(bufnr, function() pcall(vim.api.nvim_buf_call, bufnr, function()
determine_jump(entry)(self, bufnr) determine_jump(entry)(self, bufnr)
end) end)
end, end,