Skip to content

Commit c50ba2f

Browse files
committed
merge: allow @ in cmd names
refer: #3174
2 parents 0876083 + 06dbfb7 commit c50ba2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/vimtex/cmd.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,9 @@ endfunction
723723
" }}}1
724724
function! s:get_cmd_name(next) abort " {{{1
725725
let [l:lnum, l:cnum] = searchpos(
726-
\ '\v\\%(\a+\*?|[,:;!])',
726+
\ '\v\\%([a-zA-Z@]+\*?|[,:;!])',
727727
\ a:next ? 'nW' : 'cbnW')
728-
let l:match = matchstr(getline(l:lnum), '^\v\\%([,:;!]|\a*\*?)', l:cnum-1)
728+
let l:match = matchstr(getline(l:lnum), '^\v\\%([,:;!]|[a-zA-Z@]*\*?)', l:cnum-1)
729729
return [l:lnum, l:cnum, l:match]
730730
endfunction
731731

0 commit comments

Comments
 (0)