diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index 5a585ab..00f3c87 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -244,7 +244,8 @@ endfunction let s:ref = { \ 'patterns' : [ \ '\v\\v?%(auto|eq|[cC]?%(page)?|labelc)?ref%(\s*\{[^}]*|range\s*\{[^,{}]*%(\}\{)?)$', - \ '\\hyperref\s*\[[^]]*$' + \ '\\hyperref\s*\[[^]]*$', + \ '\\subref\*\?{[^}]*$', \ ], \ 'cache' : {}, \ 'labels' : [],