Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dynamic highlighting for Java identifiers

  • Loading branch information...
commit 3f762e26ab7b9730ec0757257a9bd924d1f6f05e 1 parent 0a9828d
@xolox authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 autoload.vim
View
15 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
Please sign in to comment.
Something went wrong with that request. Please try again.