summaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-12 12:57:59 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-12 12:57:59 +0100
commit77cdfd10382e01cc51f4ba1a9177032351843151 (patch)
tree9d9e20ee5c80d402d8f853ca0d88b6db6a53e5ed /runtime/syntax/python.vim
parent4fc563b397949ce23190045112fa08c0776a56e6 (diff)
downloadvim-git-77cdfd10382e01cc51f4ba1a9177032351843151.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/syntax/python.vim')
-rw-r--r--runtime/syntax/python.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim
index 6161eb395..68979a87c 100644
--- a/runtime/syntax/python.vim
+++ b/runtime/syntax/python.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Python
" Maintainer: Zvezdan Petkovic <zpetkovic@acm.org>
-" Last Change: 2015 Sep 15
+" Last Change: 2016 Feb 20
" Credits: Neil Schemenauer <nas@python.ca>
" Dmitry Vasiliev
"
@@ -199,6 +199,8 @@ if !exists("python_no_builtin_highlight")
syn keyword pythonBuiltin ascii bytes exec
" non-essential built-in functions; Python 2 only
syn keyword pythonBuiltin apply buffer coerce intern
+ " avoid highlighting attributes as builtins
+ syn match pythonAttribute /\.\h\w*/hs=s+1 contains=ALLBUT,pythonBuiltin transparent
endif
" From the 'Python Library Reference' class hierarchy at the bottom.