Skip to content

Commit

Permalink
Highlight C# classes, structs and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Feb 24, 2011
1 parent d8a8c5e commit 98780b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions autoload.vim
Expand Up @@ -602,6 +602,26 @@ call easytags#define_tagkind({
highlight def link javaClass Identifier highlight def link javaClass Identifier
highlight def link javaMethod Function 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". " Restore "cpoptions".
Expand Down
2 changes: 1 addition & 1 deletion easytags.vim
Expand Up @@ -4,7 +4,7 @@
" URL: http://peterodding.com/code/vim/easytags/ " URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net) " Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT " License: MIT
" Version: 2.1.11 " Version: 2.2


" Support for automatic update using the GLVS plug-in. " Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
Expand Down

0 comments on commit 98780b1

Please sign in to comment.