Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Highlight C# classes, structs and methods

  • Loading branch information...
commit 98780b1904c066a510ba432f796b55db1d499774 1 parent d8a8c5e
@xolox authored
Showing with 21 additions and 1 deletion.
  1. +20 −0 autoload.vim
  2. +1 −1  easytags.vim
View
20 autoload.vim
@@ -602,6 +602,26 @@ call easytags#define_tagkind({
highlight def link javaClass Identifier
highlight def link javaMethod Function
+" C#. {{{2
+
+" TODO C# name spaces?
+" TODO C# interface names
+" TODO C# enumeration member names
+" TODO C# structure names?
+
+call easytags#define_tagkind({
+ \ 'filetype': 'cs',
+ \ 'hlgroup': 'csClassOrStruct',
+ \ 'filter': 'get(v:val, "kind") ==# "c"'})
+
+call easytags#define_tagkind({
+ \ 'filetype': 'cs',
+ \ 'hlgroup': 'csMethod',
+ \ 'filter': 'get(v:val, "kind") =~# "[ms]"'})
+
+highlight def link csClass Identifier
+highlight def link csMethod Function
+
" }}}
" Restore "cpoptions".
View
2  easytags.vim
@@ -4,7 +4,7 @@
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.1.11
+" Version: 2.2
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
Please sign in to comment.
Something went wrong with that request. Please try again.