diff --git a/syntax/cs.vim b/syntax/cs.vim index 6977256..3380c45 100644 --- a/syntax/cs.vim +++ b/syntax/cs.vim @@ -26,11 +26,11 @@ syn keyword csConditional else if switch syn keyword csLabel case default " :: is usually an error in C#, except for the special case of "global::" syn match csOperatorError display +::+ -syn match csGlobal display +global::+ +syn match csGlobal display +global::+ " user labels (see [1] 8.6 Statements) syn match csLabel display +^\s*\I\i*\s*:\([^:]\)\@=+ " modifier -syn keyword csModifier abstract const extern internal override private protected public readonly sealed static virtual volatile nextgroup=CsClass,CsIface skipwhite +syn keyword csModifier abstract const extern internal override private protected public readonly sealed static virtual volatile nextgroup=csClass,csIface skipwhite " constant syn keyword csConstant false null true " exception @@ -46,7 +46,7 @@ syn keyword csUnspecifiedKeyword explicit implicit syn keyword csTypeOf typeof nextgroup=csEnclosed " Linq Keywords -syn keyword csLinq from where select group into orderby join let in on equals by ascending descending +syn keyword csLinq ascending by descending equals from group in into join let on orderby select where " Async Keywords syn keyword csAsync async await @@ -56,7 +56,7 @@ syn match csContextualStatement /\[^:]\+:/me=s+5 +syn match csContextualStatement /\[^:]\+:/me=s+5 "New Declerations syn keyword csNewDecleration new nextgroup=csClass skipwhite