From ec05a86c7bf87e27e6154a68a1d9669897989071 Mon Sep 17 00:00:00 2001 From: David Tracey Date: Sun, 14 Feb 2016 22:51:24 +0000 Subject: [PATCH] Remove superfluous \ and {} --- autoload/vimtex/complete.vim | 2 +- doc/vimtex.txt | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index b29eec4..8a8b6a4 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -321,7 +321,7 @@ endfunction " {{{1 Filenames (\includegraphics) let s:img = { - \ 'pattern' : '\v\\includegraphics\*?%(\s*\[[^\{\}\]]*\]){0,2}\s*\{[^\{\}]*', + \ 'pattern' : '\v\\includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^{}]*', \ 'enabled' : 1, \} diff --git a/doc/vimtex.txt b/doc/vimtex.txt index 1f1cf70..55b2b0b 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -1387,10 +1387,10 @@ documents with |neocomplete| and |vimtex|s omni completion function: > endif let g:neocomplete#sources#omni#input_patterns.tex = \ '\v\\%(' - \ . '\a*%(cite)\a*%(\s*\[[^\{\}\]]*\]){0,2}\s*\{[^\{\}]*' - \ . '\a*%(ref)%(\s*\{[^\{\}]*|%(range)\s*\{[^,\{\}]*%(\}\{)?)' - \ . '|includegraphics\*?%(\s*\[[^\{\}\]]*\]){0,2}\s*\{[^\{\}]*' - \ . '|%(include|input)\s*\{[^{}]*' + \ . '\a*%(cite)\a*%(\s*\[[^]]*\]){0,2}\s*\{[^{}]*' + \ . '\a*%(ref)%(\s*\{[^{}]*|%(range)\s*\{[^,{}]*%(}\{)?)' + \ . '|includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^{}]*' + \ . '|%(include%(only)?|input)\s*\{[^{}]*' \ . ')' < YouCompleteMe~ @@ -1414,10 +1414,10 @@ To enable automatic completion with |youcompleteme|, use the following options: let g:ycm_semantic_triggers = {} 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!\\(include|input){[^}]*' + \ 're!\\[A-Za-z]*(cite)[A-Za-z]*(\[[^]]*\]){0,2}\{[^{}]*', + \ 're!\\[A-Za-z]*(ref)(\{[^{}]*|(range)\{([^,{}]*(}\{)?))', + \ 're!\\includegraphics\*?(\[[^]]*\]){0,2}\{[^{}]*', + \ 're!\\(include(only)?|input)\{[^{}]*' \ ] ==============================================================================