diff --git a/syntax/python.vim b/syntax/python.vim index 7951f2b..bdc9033 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -353,7 +353,7 @@ if s:Enabled('g:python_highlight_builtin_funcs') let s:funcs_re .= '|ascii|exec|memoryview|print' endif - execute 'syn match pythonBuiltinFunc ''\v\.@\ze\('' nextgroup=pythonFunctionArgs' + execute 'syn match pythonBuiltinFunc ''\v\.@'' nextgroup=pythonFunctionArgs' unlet s:funcs_re endif diff --git a/tests/test.py b/tests/test.py index 59a2981..964eacd 100644 --- a/tests/test.py +++ b/tests/test.py @@ -37,12 +37,12 @@ bool float frozenset dict int list object str tuple set # Builtin functions -__import__() abs() all() any() apply() basestring() buffer() callable() chr() classmethod() -cmp() coerce() compile() complex() delattr() dir() divmod() enumerate() eval() execfile() file() -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() -range() raw_input() reduce() reload() repr() reversed() round() setattr() slice() sorted() -staticmethod() sum() super() type() unichr() unicode() vars() xrange() zip() +__import__ abs all any apply basestring buffer callable chr classmethod +cmp coerce compile complex delattr dir divmod enumerate eval execfile file +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 +range raw_input reduce reload repr reversed round setattr slice sorted +staticmethod sum super type unichr unicode vars xrange zip # Builtin exceptions and warnings.