Skip to content
This repository
Browse code

Highlight C# classes, structs and methods

  • Loading branch information...
commit 98780b1904c066a510ba432f796b55db1d499774 1 parent d8a8c5e
Peter Odding authored February 24, 2011
20  autoload.vim
@@ -602,6 +602,26 @@ call easytags#define_tagkind({
602 602
 highlight def link javaClass Identifier
603 603
 highlight def link javaMethod Function
604 604
 
  605
+" C#. {{{2
  606
+
  607
+" TODO C# name spaces?
  608
+" TODO C# interface names
  609
+" TODO C# enumeration member names
  610
+" TODO C# structure names?
  611
+
  612
+call easytags#define_tagkind({
  613
+      \ 'filetype': 'cs',
  614
+      \ 'hlgroup': 'csClassOrStruct',
  615
+      \ 'filter': 'get(v:val, "kind") ==# "c"'})
  616
+
  617
+call easytags#define_tagkind({
  618
+      \ 'filetype': 'cs',
  619
+      \ 'hlgroup': 'csMethod',
  620
+      \ 'filter': 'get(v:val, "kind") =~# "[ms]"'})
  621
+
  622
+highlight def link csClass Identifier
  623
+highlight def link csMethod Function
  624
+
605 625
 " }}}
606 626
 
607 627
 " Restore "cpoptions".
2  easytags.vim
@@ -4,7 +4,7 @@
4 4
 " URL: http://peterodding.com/code/vim/easytags/
5 5
 " Requires: Exuberant Ctags (http://ctags.sf.net)
6 6
 " License: MIT
7  
-" Version: 2.1.11
  7
+" Version: 2.2
8 8
 
9 9
 " Support for automatic update using the GLVS plug-in.
10 10
 " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip

0 notes on commit 98780b1

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