From 3f762e26ab7b9730ec0757257a9bd924d1f6f05e Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Thu, 10 Jun 2010 22:25:48 +0200 Subject: Dynamic highlighting for Java identifiers --- autoload.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'autoload.vim') diff --git a/autoload.vim b/autoload.vim index 95f9db0..706f450 100644 --- a/autoload.vim +++ b/autoload.vim @@ -335,6 +335,21 @@ if !exists('s:tagkinds') highlight def link pythonMethodTag pythonFunction + " Java. {{{2 + + call easytags#define_tagkind({ + \ 'filetype': 'java', + \ 'hlgroup': 'javaClass', + \ 'filter': 'get(v:val, "kind") ==# "c"'}) + + call easytags#define_tagkind({ + \ 'filetype': 'java', + \ 'hlgroup': 'javaMethod', + \ 'filter': 'get(v:val, "kind") ==# "m"'}) + + highlight def link javaClass Identifier + highlight def link javaMethod Function + " Restore "cpoptions". let &cpo = s:cpo_save unlet s:cpo_save -- cgit v1.2.3