diff options
author | Peter Odding <peter@peterodding.com> | 2011-02-24 20:12:26 +0100 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2011-02-24 20:12:26 +0100 |
commit | 98780b1904c066a510ba432f796b55db1d499774 (patch) | |
tree | 8fef0abf503e0a845fc062a34c9e4f998ddc9ffc | |
parent | d8a8c5ef9d2d9c48767b9f7f80ea37516fe4d755 (diff) | |
download | vim-easytags-98780b1904c066a510ba432f796b55db1d499774.tar.gz |
Highlight C# classes, structs and methods
-rw-r--r-- | autoload.vim | 20 | ||||
-rw-r--r-- | easytags.vim | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/autoload.vim b/autoload.vim index 1607e45..5cd12c5 100644 --- a/autoload.vim +++ b/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". diff --git a/easytags.vim b/easytags.vim index 2ae26ac..ebde502 100644 --- a/easytags.vim +++ b/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 |