aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-06-20 10:37:19 -0400
committerJames McCoy <jamessan@jamessan.com>2016-07-08 01:43:36 -0400
commitea18b4a60f3b89d261c46b030d3d026ddad864bb (patch)
treee853d1a1306f9b636d4eb183487a4458283e249f /runtime/syntax/python.vim
parent1f54d253e169fbc483cc485f9b3092a8da1f62db (diff)
downloadrneovim-ea18b4a60f3b89d261c46b030d3d026ddad864bb.tar.gz
rneovim-ea18b4a60f3b89d261c46b030d3d026ddad864bb.tar.bz2
rneovim-ea18b4a60f3b89d261c46b030d3d026ddad864bb.zip
vim-patch:77cdfd1
Updated runtime files. https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151 Ignore changes to: * doc/channel.txt, doc/eval.txt: Channel related docs * doc/options.txt: GUI related docs * doc/tags: Generated at build time * doc/todo.txt: Irrelevant for Neovim
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 78d35e4c15..2a0ea5de2b 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.