Highlight builtin functions without braces

This commit is contained in:
nfnty
2017-02-24 10:47:27 +01:00
parent 013c9ff33f
commit c8300301fb
2 changed files with 7 additions and 7 deletions

View File

@@ -353,7 +353,7 @@ if s:Enabled('g:python_highlight_builtin_funcs')
let s:funcs_re .= '|ascii|exec|memoryview|print' let s:funcs_re .= '|ascii|exec|memoryview|print'
endif endif
execute 'syn match pythonBuiltinFunc ''\v\.@<!\zs<%(' . s:funcs_re . ')>\ze\('' nextgroup=pythonFunctionArgs' execute 'syn match pythonBuiltinFunc ''\v\.@<!\zs<%(' . s:funcs_re . ')>'' nextgroup=pythonFunctionArgs'
unlet s:funcs_re unlet s:funcs_re
endif endif

View File

@@ -37,12 +37,12 @@ bool float frozenset dict int list object str tuple set
# Builtin functions # Builtin functions
__import__() abs() all() any() apply() basestring() buffer() callable() chr() classmethod() __import__ abs all any apply basestring buffer callable chr classmethod
cmp() coerce() compile() complex() delattr() dir() divmod() enumerate() eval() execfile() file() cmp coerce compile complex delattr dir divmod enumerate eval execfile file
filter() getattr() globals() hasattr() hash() help() hex() id() input() intern() isinstance() filter getattr globals hasattr hash help hex id input intern isinstance
issubclass() iter() len() locals() long() map() max() min() oct() open() ord() pow() print() property() issubclass iter len locals long map max min oct open ord pow print property
range() raw_input() reduce() reload() repr() reversed() round() setattr() slice() sorted() range raw_input reduce reload repr reversed round setattr slice sorted
staticmethod() sum() super() type() unichr() unicode() vars() xrange() zip() staticmethod sum super type unichr unicode vars xrange zip
# Builtin exceptions and warnings. # Builtin exceptions and warnings.