diff --git a/syntax/python.vim b/syntax/python.vim index 6a602e9..a6fdb48 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -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 "