From 06dbfb7018385b3d710fce44d37704050a5874f3 Mon Sep 17 00:00:00 2001 From: Jonas Dujava Date: Fri, 30 May 2025 19:07:17 +0200 Subject: [PATCH] feat(cmd): support commands containing @ Signed-off-by: Jonas Dujava --- autoload/vimtex/cmd.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimtex/cmd.vim b/autoload/vimtex/cmd.vim index 6cc5675dcc..c92c7eb701 100644 --- a/autoload/vimtex/cmd.vim +++ b/autoload/vimtex/cmd.vim @@ -723,9 +723,9 @@ endfunction " }}}1 function! s:get_cmd_name(next) abort " {{{1 let [l:lnum, l:cnum] = searchpos( - \ '\v\\%(\a+\*?|[,:;!])', + \ '\v\\%([a-zA-Z@]+\*?|[,:;!])', \ a:next ? 'nW' : 'cbnW') - 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) return [l:lnum, l:cnum, l:match] endfunction