Remove superfluous \ and {}

This commit is contained in:
David Tracey 2016-02-14 22:51:24 +00:00
parent 38594e0ca7
commit ec05a86c7b
2 changed files with 9 additions and 9 deletions

View File

@ -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,
\}

View File

@ -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)\{[^{}]*'
\ ]
==============================================================================