Skip to content

Commit c830030

Browse files
committed
Highlight builtin functions without braces
1 parent 013c9ff commit c830030

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ if s:Enabled('g:python_highlight_builtin_funcs')
353353
let s:funcs_re .= '|ascii|exec|memoryview|print'
354354
endif
355355

356-
execute 'syn match pythonBuiltinFunc ''\v\.@<!\zs<%(' . s:funcs_re . ')>\ze\('' nextgroup=pythonFunctionArgs'
356+
execute 'syn match pythonBuiltinFunc ''\v\.@<!\zs<%(' . s:funcs_re . ')>'' nextgroup=pythonFunctionArgs'
357357
unlet s:funcs_re
358358
endif
359359

tests/test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ async def Test
3737

3838
# Builtin functions
3939

40-
__import__() abs() all() any() apply() basestring() buffer() callable() chr() classmethod()
41-
cmp() coerce() compile() complex() delattr() dir() divmod() enumerate() eval() execfile() file()
42-
filter() getattr() globals() hasattr() hash() help() hex() id() input() intern() isinstance()
43-
issubclass() iter() len() locals() long() map() max() min() oct() open() ord() pow() print() property()
44-
range() raw_input() reduce() reload() repr() reversed() round() setattr() slice() sorted()
45-
staticmethod() sum() super() type() unichr() unicode() vars() xrange() zip()
40+
__import__ abs all any apply basestring buffer callable chr classmethod
41+
cmp coerce compile complex delattr dir divmod enumerate eval execfile file
42+
filter getattr globals hasattr hash help hex id input intern isinstance
43+
issubclass iter len locals long map max min oct open ord pow print property
44+
range raw_input reduce reload repr reversed round setattr slice sorted
45+
staticmethod sum super type unichr unicode vars xrange zip
4646

4747
# Builtin exceptions and warnings.
4848

0 commit comments

Comments
 (0)