aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2010-12-04 23:38:50 +0100
committerPeter Odding <peter@peterodding.com>2010-12-04 23:38:50 +0100
commitd3551a3fa2315874ae522d5676882bfb7e568974 (patch)
tree1d2908953f8603501811d961886e7baea3d2b074
parentae3eb31b705401d21f9f643924dc358a12658b61 (diff)
downloadvim-easytags-d3551a3fa2315874ae522d5676882bfb7e568974.tar.gz
Highlighting for Python class names
-rw-r--r--autoload.vim8
-rw-r--r--easytags.vim4
2 files changed, 9 insertions, 3 deletions
diff --git a/autoload.vim b/autoload.vim
index 746e894..35b969f 100644
--- a/autoload.vim
+++ b/autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: October 23, 2010
+" Last Change: December 4, 2010
" URL: http://peterodding.com/code/vim/easytags/
let s:script = expand('<sfile>:p:~')
@@ -576,7 +576,13 @@ call easytags#define_tagkind({
\ 'filter': 'get(v:val, "kind") ==# "m"',
\ 'pattern_prefix': '\.\@<='})
+call easytags#define_tagkind({
+ \ 'filetype': 'python',
+ \ 'hlgroup': 'pythonClass',
+ \ 'filter': 'get(v:val, "kind") ==# "c"'})
+
highlight def link pythonMethodTag pythonFunction
+highlight def link pythonClassTag pythonFunction
" Java. {{{2
diff --git a/easytags.vim b/easytags.vim
index 8551e0e..aeea5a7 100644
--- a/easytags.vim
+++ b/easytags.vim
@@ -1,10 +1,10 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: November 20, 2010
+" Last Change: December 4, 2010
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.1.8
+" Version: 2.1.9
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip