@@ -416,7 +416,7 @@ if s:Enabled("g:python_highlight_builtin_objs")
416416 syn keyword pythonBuiltinObj None
417417 syn keyword pythonBoolean True False
418418 syn keyword pythonBuiltinObj Ellipsis NotImplemented
419- syn match pythonBuiltinObj ' \v [^.]* <(int|float|tuple|str|list|dict|set|frozenset)>'
419+ syn match pythonBuiltinObj ' \v ( \. )@<! <(int|float|tuple|str|list|dict|set|frozenset)>'
420420 syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
421421endif
422422
@@ -426,28 +426,28 @@ endif
426426
427427if s: Enabled (" g:python_highlight_builtin_funcs" )
428428 if s: Python2Syntax ()
429- syn match pythonBuiltinFunc ' v[^.]* <(apply|basestring|buffer|callable|coerce)>'
430- syn match pythonBuiltinFunc ' v[^.]* <(execfile|file|help|intern|long|raw_input)>'
431- syn match pythonBuiltinFunc ' v[^.]* <(reduce|reload|unichr|unicode|xrange)>'
429+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(apply|basestring|buffer|callable|coerce)>'
430+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(execfile|file|help|intern|long|raw_input)>'
431+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(reduce|reload|unichr|unicode|xrange)>'
432432 if s: Enabled (" g:python_print_as_function" )
433- syn match pythonBuiltinFunc ' v[^.]* <(print)>'
433+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(print)>'
434434 endif
435435 else
436- syn match pythonBuiltinFunc ' v[^.]* <(ascii|exec|memoryview|print)>'
436+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(ascii|exec|memoryview|print)>'
437437 endif
438- syn match pythonBuiltinFunc ' v[^.]* <(__import__|abs|all|any)>'
439- syn match pythonBuiltinFunc ' v[^.]* <(bin|bool|bytearray|bytes)>'
440- syn match pythonBuiltinFunc ' v[^.]* <(chr|classmethod|cmp|compile|complex)>'
441- syn match pythonBuiltinFunc ' v[^.]* <(delattr|dir|divmod|enumerate|eval)>'
442- syn match pythonBuiltinFunc ' v[^.]* <(filter|format|getattr)>'
443- syn match pythonBuiltinFunc ' v[^.]* <(globals|hasattr|hash|hex|id)>'
444- syn match pythonBuiltinFunc ' v[^.]* <(input|isinstance)>'
445- syn match pythonBuiltinFunc ' v[^.]* <(issubclass|iter|len|locals|map|max)>'
446- syn match pythonBuiltinFunc ' v[^.]* <(min|next|object|oct|open|ord)>'
447- syn match pythonBuiltinFunc ' v[^.]* <(pow|property|range)>'
448- syn match pythonBuiltinFunc ' v[^.]* <(repr|reversed|round|setattr)>'
449- syn match pythonBuiltinFunc ' v[^.]* <(slice|sorted|staticmethod|sum|super)>'
450- syn match pythonBuiltinFunc ' v[^.]* <(type|vars|zip)>'
438+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(__import__|abs|all|any)>'
439+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(bin|bool|bytearray|bytes)>'
440+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(chr|classmethod|cmp|compile|complex)>'
441+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(delattr|dir|divmod|enumerate|eval)>'
442+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(filter|format|getattr)>'
443+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(globals|hasattr|hash|hex|id)>'
444+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(input|isinstance)>'
445+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(issubclass|iter|len|locals|map|max)>'
446+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(min|next|object|oct|open|ord)>'
447+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(pow|property|range)>'
448+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(repr|reversed|round|setattr)>'
449+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(slice|sorted|staticmethod|sum|super)>'
450+ syn match pythonBuiltinFunc ' \v ( \. )@<! <(type|vars|zip)>'
451451endif
452452
453453"
0 commit comments