Fix function call highlighting priority

Related to #63
This commit is contained in:
nfnty
2020-02-26 11:06:11 +00:00
parent 6890a367fb
commit ee2a336f9e

View File

@@ -59,6 +59,14 @@ if s:Enabled('g:python_highlight_all')
call s:EnableByDefault('g:python_highlight_operators')
endif
"
" Function calls
"
if s:Enabled('g:python_highlight_func_calls')
syn match pythonFunctionCall '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\ze\%(\s*(\)'
endif
"
" Keywords
"
@@ -395,14 +403,6 @@ if s:Enabled('g:python_highlight_exceptions')
unlet s:exs_re
endif
"
" Function calls
"
if s:Enabled('g:python_highlight_func_calls')
syn match pythonFunctionCall '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\ze\%(\s*(\)'
endif
"
" Misc
"