Skip to content
This repository
Browse code

Dynamic highlighting for Java identifiers

  • Loading branch information...
commit 3f762e26ab7b9730ec0757257a9bd924d1f6f05e 1 parent 0a9828d
Peter Odding authored

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  autoload.vim
15  autoload.vim
@@ -335,6 +335,21 @@ if !exists('s:tagkinds')
335 335
 
336 336
   highlight def link pythonMethodTag pythonFunction
337 337
 
  338
+  " Java. {{{2
  339
+
  340
+  call easytags#define_tagkind({
  341
+        \ 'filetype': 'java',
  342
+        \ 'hlgroup': 'javaClass',
  343
+        \ 'filter': 'get(v:val, "kind") ==# "c"'})
  344
+
  345
+  call easytags#define_tagkind({
  346
+        \ 'filetype': 'java',
  347
+        \ 'hlgroup': 'javaMethod',
  348
+        \ 'filter': 'get(v:val, "kind") ==# "m"'})
  349
+
  350
+  highlight def link javaClass Identifier
  351
+  highlight def link javaMethod Function
  352
+
338 353
   " Restore "cpoptions".
339 354
   let &cpo = s:cpo_save
340 355
   unlet s:cpo_save

0 notes on commit 3f762e2

Please sign in to comment.
Something went wrong with that request. Please try again.