diff options
author | Peter Odding <peter@peterodding.com> | 2010-06-10 22:25:48 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2010-06-10 22:25:48 +0200 |
commit | 3f762e26ab7b9730ec0757257a9bd924d1f6f05e (patch) | |
tree | 7bf7098ad50401ced73904209ad8d3e0caccc199 | |
parent | 0a9828d08f0ebc872906639fe01d048aae52482e (diff) | |
download | vim-easytags-3f762e26ab7b9730ec0757257a9bd924d1f6f05e.tar.gz |
Dynamic highlighting for Java identifiers
-rw-r--r-- | autoload.vim | 15 |
1 files changed, 15 insertions, 0 deletions
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 |