[Tags] Ignore optional semicolon after excmd in tag

Close #531
This commit is contained in:
Junegunn Choi 2017-12-03 05:28:58 +09:00
parent d0042b9dee
commit 76926aa247
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -784,7 +784,7 @@ function! s:tags_sink(lines)
for line in a:lines[1:]
try
let parts = split(line, '\t\zs')
let excmd = matchstr(join(parts[2:-2], '')[:-2], '^.*\ze;"\t')
let excmd = matchstr(join(parts[2:-2], '')[:-2], '^.\{-}\ze;\?"\t')
let base = fnamemodify(parts[-1], ':h')
let relpath = parts[1][:-2]
let abspath = relpath =~ (s:is_win ? '^[A-Z]:\' : '^/') ? relpath : join([base, relpath], '/')