Skip to content

Commit

Permalink
Simple highlighting for attributes
Browse files Browse the repository at this point in the history
Removes spurious highlighting, highlights primative types in decleration
  • Loading branch information
kianryan committed Jan 11, 2013
1 parent 7a0db96 commit 21477f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syntax/cs.vim
Expand Up @@ -68,6 +68,9 @@ syn region csGeneric start="<" end=">" contains=csIface,csClass
syn region csEnclosed start="(" end=")" contains=csIface,csClass
syn region csInherits start=":" end="{" contains=csIface,csClass

" Attributes
syn region csAttributeLine start="^\s*\[" end="\]\s*$" contains=csString


" Comments
"
Expand Down
3 changes: 3 additions & 0 deletions test/sample.cs
Expand Up @@ -41,11 +41,14 @@ public Car() : base()
{
}

[Bind(Name="Mark",
Second="Harris")]
public Engine StartEngine()
{

}

[Bind(Name="Bob Harris")]
public void Run(List<Bob> bob, List<Bob> bob2)
{
var status = Engine.Start(x => x.Bob == true);
Expand Down

0 comments on commit 21477f1

Please sign in to comment.