mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 20:13:51 -05:00
Update
This commit is contained in:
@@ -354,7 +354,8 @@ function! s:toc.set_syntax() abort dict "{{{1
|
||||
|
||||
syntax match VimtexTocNum /\v(([A-Z]+>|\d+)(\.\d+)*)?\s*/ contained
|
||||
execute 'syntax match VimtexTocTodo'
|
||||
\ '/\v\s\zs%(' . toupper(join(g:vimtex_toc_todo_keywords, '|')) . '): /'
|
||||
\ '/\v\s\zs%('
|
||||
\ . toupper(join(keys(g:vimtex_toc_todo_labels), '|')) . '): /'
|
||||
\ 'contained'
|
||||
syntax match VimtexTocHotkey /\[[^]]\+\]/ contained
|
||||
|
||||
@@ -751,7 +752,7 @@ endfunction
|
||||
function! s:foldtext() abort " {{{1
|
||||
let l:line = getline(v:foldstart)[3:]
|
||||
if b:toc.todo_sorted
|
||||
\ && l:line =~# '\v%(' . join(g:vimtex_toc_todo_keywords, '|') . ')'
|
||||
\ && l:line =~# '\v%(' . join(keys(g:vimtex_toc_todo_labels), '|') . ')'
|
||||
return substitute(l:line, '\w+\zs:.*', 's', '')
|
||||
else
|
||||
return l:line
|
||||
|
||||
Reference in New Issue
Block a user