vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 87c13f570ad1d57b06ba39bcfb9037afe2b8923f
parent 270f54229232a79efcc42227dd112b9d558ee098
Author: Rane Brown <rane.brown@gmail.com>
Date:   Fri,  3 Jan 2020 15:24:47 -0700

Ignore verbatim blocks when scanning tags.

Merge pull request #672.

Diffstat:
Mautoload/vimwiki/tags.vim | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/autoload/vimwiki/tags.vim b/autoload/vimwiki/tags.vim @@ -88,6 +88,11 @@ function! s:scan_tags(lines, page_name) abort for line_nr in range(1, len(a:lines)) let line = a:lines[line_nr - 1] + " ignore verbatim blocks + if vimwiki#u#is_codeblock(line_nr) + continue + endif + " process headers let h_match = matchlist(line, rxheader) if !empty(h_match) " got a header @@ -112,8 +117,6 @@ function! s:scan_tags(lines, page_name) abort continue " tags are not allowed in headers endif - " TODO ignore verbatim blocks - " Scan line for tags. There can be many of them. let str = line while 1