mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 13:44:48 +08:00
Highlight builtin functions without braces
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user