From b9c47f8ab10d1fd7f251ac186ebdc9f6d70ec6dd Mon Sep 17 00:00:00 2001 From: David Tracey Date: Thu, 18 Feb 2016 11:13:02 +0000 Subject: [PATCH] Fix completion patterns for YCM. --- doc/vimtex.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/vimtex.txt b/doc/vimtex.txt index 5cef896..5233a58 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -1394,7 +1394,7 @@ documents with |neocomplete| and |vimtex|s omni completion function: > let g:neocomplete#sources#omni#input_patterns.tex = \ '\v\\%(' \ . '\a*cite\a*%(\s*\[[^]]*\]){0,2}\s*\{[^}]*' - \ . '|\a*ref%(\s*\{[^}]*|range\s*\{[^,}]*%(\}\{)?)' + \ . '|\a*ref%(\s*\{[^}]*|range\s*\{[^,}]*%(}\{)?)' \ . '|includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*' \ . '|%(include%(only)?|input)\s*\{[^}]*' \ . ')' @@ -1421,15 +1421,11 @@ To enable automatic completion with |youcompleteme|, use the following options: endif let g:ycm_semantic_triggers.tex = [ \ 're!\\[A-Za-z]*cite[A-Za-z]*(\[[^]]*\]){0,2}{[^}]*', - \ 're!\\[A-Za-z]*ref({[^}]*|range{([^,{}]*({})?))', - \ 're!\\includegraphics\*?(\[[^]]*\]){0,2}\{[^}]*', + \ 're!\\[A-Za-z]*ref({[^}]*|range{([^,{}]*(}{)?))', + \ 're!\\includegraphics\*?(\[[^]]*\]){0,2}{[^}]*', \ 're!\\(include(only)?|input){[^}]*' \ ] < - -Note: I think the above regexps are not quite correct, and I will be very - happy for pull requests or issues that can help fix these regexps. - VimCompletesMe~ *vimtex-complete-vcm* A plugin that maps to trigger the built-in completion that is most