Skip to content

Commit ee2a336

Browse files
committed
Fix function call highlighting priority
Related to #63
1 parent 6890a36 commit ee2a336

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

syntax/python.vim

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ if s:Enabled('g:python_highlight_all')
5959
call s:EnableByDefault('g:python_highlight_operators')
6060
endif
6161

62+
"
63+
" Function calls
64+
"
65+
66+
if s:Enabled('g:python_highlight_func_calls')
67+
syn match pythonFunctionCall '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\ze\%(\s*(\)'
68+
endif
69+
6270
"
6371
" Keywords
6472
"
@@ -395,14 +403,6 @@ if s:Enabled('g:python_highlight_exceptions')
395403
unlet s:exs_re
396404
endif
397405

398-
"
399-
" Function calls
400-
"
401-
402-
if s:Enabled('g:python_highlight_func_calls')
403-
syn match pythonFunctionCall '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\ze\%(\s*(\)'
404-
endif
405-
406406
"
407407
" Misc
408408
"

0 commit comments

Comments
 (0)