Skip to content

Commit

Permalink
Higher tolerance for splitting tag line (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
roccomao authored Nov 11, 2024
1 parent 4a1c46d commit 1d22809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 1d22809

Please sign in to comment.