Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Higher tolerance for splitting tag line #895

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ function! s:ProcessFile(fname, ftype) abort

let seen[line] = 1

let parts = split(line, ';"')
let parts = split(line, ';"\t')
if len(parts) == 2 " Is a valid tag line
call s:ParseTagline(parts[0], parts[1], typeinfo, fileinfo)
endif
Expand Down Expand Up @@ -1509,7 +1509,7 @@ function! s:ParseTagline(part1, part2, typeinfo, fileinfo) abort

" When splitting fields make sure not to create empty keys or values in
" case a value illegally contains tabs
let fields = split(a:part2, '^\t\|\t\ze\w\+:')
let fields = split(a:part2, '\t\ze\w\+:')
let fielddict = {}
if fields[0] !~# ':'
let fielddict.kind = remove(fields, 0)
Expand Down
2 changes: 1 addition & 1 deletion doc/tagbar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ tracking HEAD in the default branch rather than tagged releases.
- Periodic rollup, see `git log v3.0.0..v3.1.1`

3.1.0 (2022-11-04)
- Periodic rollup (inclomplete merge, suggest 3.1.1)
- Periodic rollup (incomplete merge, suggest 3.1.1)

3.0.0 (2021-01-21)
- Massive rollup with years of small changes, see `git log v2.7..v3.0.0`
Expand Down
Loading