forked from VimPlug/jedi-vim
Matching fat symbols (current params) in a better way.
This commit is contained in:
@@ -6,8 +6,8 @@ if g:jedi#show_call_signatures > 0 && has('conceal')
|
|||||||
let s:ignore = s:e.'jedi.\{-}'.s:e
|
let s:ignore = s:e.'jedi.\{-}'.s:e
|
||||||
exe 'syn match jediIgnore "'.s:ignore.'" 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:full.'" keepend extend '
|
exe 'syn match jediFunction "'.s:full.'" keepend extend '
|
||||||
\ .' contains=jediIgnore,jediFat,jediSpace'
|
\ .' contains=jediIgnore,jediFat,jediSpace'
|
||||||
|
|||||||
@@ -283,7 +283,8 @@ def show_call_signatures(signatures=()):
|
|||||||
|
|
||||||
params = [p.description.replace('\n', '') for p in signature.params]
|
params = [p.description.replace('\n', '') for p in signature.params]
|
||||||
try:
|
try:
|
||||||
params[signature.index] = '*%s*' % params[signature.index]
|
# *_*PLACEHOLDER*_* makes something fat. See after/syntax file.
|
||||||
|
params[signature.index] = '*_*%s*_*' % params[signature.index]
|
||||||
except (IndexError, TypeError):
|
except (IndexError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user