mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
Match the new longer call_signature_escape symbol better.
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
if g:jedi#show_call_signatures > 0 && has('conceal')
|
if g:jedi#show_call_signatures > 0 && has('conceal')
|
||||||
" conceal is normal for vim >= 7.3
|
" +conceal is the default for vim >= 7.3
|
||||||
|
|
||||||
let s:e = g:jedi#call_signature_escape
|
let s:e = g:jedi#call_signature_escape
|
||||||
let s:l1 = s:e.'jedi=[^'.s:e.']*'.s:e.'[^'.s:e.']*'.s:e.'jedi'.s:e
|
let s:full = s:e.'jedi=.\{-}'.s:e.'.\{-}'.s:e.'jedi'.s:e
|
||||||
let s:l2 = s:e.'jedi=\?[^'.s:e.']*'.s:e
|
let s:ignore = s:e.'jedi.\{-}'.s:e
|
||||||
exe 'syn match jediIgnore "'.s:l2.'" contained conceal'
|
exe 'syn match jediIgnore "'.s:ignore.'" contained conceal'
|
||||||
setlocal conceallevel=2
|
setlocal conceallevel=2
|
||||||
syn match jediFatSymbol "*" contained conceal
|
syn match jediFatSymbol "*" contained conceal
|
||||||
syn match jediFat "\*[^*]\+\*" contained contains=jediFatSymbol
|
syn match jediFat "\*[^*]\+\*" contained contains=jediFatSymbol
|
||||||
syn match jediSpace "\v[ ]+( )@=" contained
|
syn match jediSpace "\v[ ]+( )@=" contained
|
||||||
exe 'syn match jediFunction "'.s:l1.'" keepend extend '
|
exe 'syn match jediFunction "'.s:full.'" keepend extend '
|
||||||
\ .' contains=jediIgnore,jediFat,jediSpace'
|
\ .' contains=jediIgnore,jediFat,jediSpace'
|
||||||
\ .' containedin=pythonComment,pythonString,pythonRawString'
|
\ .' containedin=pythonComment,pythonString,pythonRawString'
|
||||||
unlet! s:e s:l1 s:l2
|
unlet! s:e s:full s:ignore
|
||||||
|
|
||||||
hi def link jediIgnore Ignore
|
hi def link jediIgnore Ignore
|
||||||
hi def link jediFatSymbol Ignore
|
hi def link jediFatSymbol Ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user