From 1d22809dbe4cd8b833ec4359e53bd843fd29de47 Mon Sep 17 00:00:00 2001 From: Rocco Mao Date: Mon, 11 Nov 2024 21:22:14 +0800 Subject: [PATCH] Higher tolerance for splitting tag line (#895) --- autoload/tagbar.vim | 4 ++-- doc/tagbar.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 0fa16436..cbc65d0a 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -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 @@ -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) diff --git a/doc/tagbar.txt b/doc/tagbar.txt index d06b2e14..f56f4454 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -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`