We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0876083 + 06dbfb7 commit c50ba2fCopy full SHA for c50ba2f
autoload/vimtex/cmd.vim
@@ -723,9 +723,9 @@ endfunction
723
" }}}1
724
function! s:get_cmd_name(next) abort " {{{1
725
let [l:lnum, l:cnum] = searchpos(
726
- \ '\v\\%(\a+\*?|[,:;!])',
+ \ '\v\\%([a-zA-Z@]+\*?|[,:;!])',
727
\ a:next ? 'nW' : 'cbnW')
728
- let l:match = matchstr(getline(l:lnum), '^\v\\%([,:;!]|\a*\*?)', l:cnum-1)
+ let l:match = matchstr(getline(l:lnum), '^\v\\%([,:;!]|[a-zA-Z@]*\*?)', l:cnum-1)
729
return [l:lnum, l:cnum, l:match]
730
endfunction
731
0 commit comments