Remove superfluous \ and {}
This commit is contained in:
parent
38594e0ca7
commit
ec05a86c7b
@ -321,7 +321,7 @@ endfunction
|
|||||||
" {{{1 Filenames (\includegraphics)
|
" {{{1 Filenames (\includegraphics)
|
||||||
|
|
||||||
let s:img = {
|
let s:img = {
|
||||||
\ 'pattern' : '\v\\includegraphics\*?%(\s*\[[^\{\}\]]*\]){0,2}\s*\{[^\{\}]*',
|
\ 'pattern' : '\v\\includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^{}]*',
|
||||||
\ 'enabled' : 1,
|
\ 'enabled' : 1,
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
@ -1387,10 +1387,10 @@ documents with |neocomplete| and |vimtex|s omni completion function: >
|
|||||||
endif
|
endif
|
||||||
let g:neocomplete#sources#omni#input_patterns.tex =
|
let g:neocomplete#sources#omni#input_patterns.tex =
|
||||||
\ '\v\\%('
|
\ '\v\\%('
|
||||||
\ . '\a*%(cite)\a*%(\s*\[[^\{\}\]]*\]){0,2}\s*\{[^\{\}]*'
|
\ . '\a*%(cite)\a*%(\s*\[[^]]*\]){0,2}\s*\{[^{}]*'
|
||||||
\ . '\a*%(ref)%(\s*\{[^\{\}]*|%(range)\s*\{[^,\{\}]*%(\}\{)?)'
|
\ . '\a*%(ref)%(\s*\{[^{}]*|%(range)\s*\{[^,{}]*%(}\{)?)'
|
||||||
\ . '|includegraphics\*?%(\s*\[[^\{\}\]]*\]){0,2}\s*\{[^\{\}]*'
|
\ . '|includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^{}]*'
|
||||||
\ . '|%(include|input)\s*\{[^{}]*'
|
\ . '|%(include%(only)?|input)\s*\{[^{}]*'
|
||||||
\ . ')'
|
\ . ')'
|
||||||
<
|
<
|
||||||
YouCompleteMe~
|
YouCompleteMe~
|
||||||
@ -1414,10 +1414,10 @@ To enable automatic completion with |youcompleteme|, use the following options:
|
|||||||
let g:ycm_semantic_triggers = {}
|
let g:ycm_semantic_triggers = {}
|
||||||
endif
|
endif
|
||||||
let g:ycm_semantic_triggers.tex = [
|
let g:ycm_semantic_triggers.tex = [
|
||||||
\ 're!\\[A-Za-z]*(cite)[A-Za-z]*(\[[^\{\}\]]*\]){0,2}\{[^\{\}]*',
|
\ 're!\\[A-Za-z]*(cite)[A-Za-z]*(\[[^]]*\]){0,2}\{[^{}]*',
|
||||||
\ 're!\\[A-Za-z]*(ref)(\{[^\{\}]*|(range)\{([^,\{\}]*(\}\{)?))',
|
\ 're!\\[A-Za-z]*(ref)(\{[^{}]*|(range)\{([^,{}]*(}\{)?))',
|
||||||
\ 're!\\includegraphics\*?(\[[^\{\}\]]*\]){0,2}\{[^\{\}]*',
|
\ 're!\\includegraphics\*?(\[[^]]*\]){0,2}\{[^{}]*',
|
||||||
\ 're!\\(include|input){[^}]*'
|
\ 're!\\(include(only)?|input)\{[^{}]*'
|
||||||
\ ]
|
\ ]
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user