diff --git a/syntax/python.vim b/syntax/python.vim index c7d72a0..32e9978 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -352,7 +352,7 @@ if s:Enabled('g:python_highlight_builtin_funcs') let s:funcs_re .= '|ascii|exec|print' endif - execute 'syn match pythonBuiltinFunc ''\v\.@''' + execute 'syn match pythonBuiltinFunc ''\v\.@\=@!''' unlet s:funcs_re endif @@ -369,7 +369,7 @@ if s:Enabled('g:python_highlight_exceptions') let s:exs_re .= '|BlockingIOError|ChildProcessError|ConnectionError|BrokenPipeError|ConnectionAbortedError|ConnectionRefusedError|ConnectionResetError|FileExistsError|FileNotFoundError|InterruptedError|IsADirectoryError|NotADirectoryError|PermissionError|ProcessLookupError|TimeoutError|StopAsyncIteration|ResourceWarning' endif - execute 'syn match pythonExClass ''\v\.@''' + execute 'syn match pythonExClass ''\v\.@\=@!''' unlet s:exs_re endif