From 2b39554f686bb2bbb73913b7d2b2096d1e7f7cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 15 Dec 2016 19:29:18 +0100 Subject: [PATCH] Fixed #636: Support for \subref completion --- autoload/vimtex/complete.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' : [],