1

Refresh generated neovim config

This commit is contained in:
2024-07-14 21:12:36 +02:00
parent f215ce2ab5
commit 00464e0e65
731 changed files with 6780 additions and 31110 deletions

View File

@ -136,13 +136,13 @@ endfunction
" }}}1
function! s:vimtex.get_tex_program() abort dict " {{{1
let l:tex_program_re =
\ '\v^\c\s*\%\s*!?\s*tex\s+%(ts-)?program\s*\=\s*\zs.*\ze\s*$'
let l:lines = vimtex#parser#preamble(self.tex, {'root' : self.root})[:20]
call map(l:lines, 'matchstr(v:val, l:tex_program_re)')
call filter(l:lines, '!empty(v:val)')
return tolower(get(l:lines, -1, '_'))
call map(l:lines, { _, x ->
\ matchstr(x, '\v^\c\s*\%\s*!?\s*tex\s+%(ts-)?program\s*\=\s*\zs.*$')
\})
call filter(l:lines, { _, x -> !empty(x) })
let l:tex_program = get(l:lines, -1, '_')
return tolower(trim(l:tex_program))
endfunction
" }}}1

View File

@ -67,6 +67,8 @@ function! vimtex#syntax#core#init_rules() abort " {{{1
syntax match texSpecialChar "\\[SP@]\ze[^a-zA-Z@]"
syntax match texSpecialChar "\^\^\%(\S\|[0-9a-f]\{2}\)"
syntax match texError "[_^]"
" }}}2
" {{{2 Commands: general