From fad4215ce3fe64bcc9035619814bd64add1adad1 Mon Sep 17 00:00:00 2001 From: David Briscoe Date: Fri, 4 May 2018 13:52:00 -0700 Subject: [PATCH 1/2] Remove csEnclosed to fix lambda highlighting Fixes #44. --- syntax/cs.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syntax/cs.vim b/syntax/cs.vim index 6977256..df96255 100644 --- a/syntax/cs.vim +++ b/syntax/cs.vim @@ -43,7 +43,7 @@ syn keyword csUnsupportedStatement add remove value " TODO: syn keyword csUnspecifiedKeyword explicit implicit -syn keyword csTypeOf typeof nextgroup=csEnclosed +syn keyword csTypeOf typeof " Linq Keywords syn keyword csLinq from where select group into orderby join let in on equals by ascending descending @@ -65,7 +65,6 @@ syn keyword csNewDecleration new nextgroup=csClass skipwhite syn match csClass contained /\<[A-Z][a-z]\w\+/ nextgroup=csGeneric syn match csIface contained /\ Date: Fri, 4 May 2018 13:59:38 -0700 Subject: [PATCH 2/2] Alternative fix for #44: region typeof highlight This highlights the braces in typeof and detects the type inside the braces to be a class/interface. --- syntax/cs.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syntax/cs.vim b/syntax/cs.vim index df96255..398cd05 100644 --- a/syntax/cs.vim +++ b/syntax/cs.vim @@ -43,8 +43,6 @@ syn keyword csUnsupportedStatement add remove value " TODO: syn keyword csUnspecifiedKeyword explicit implicit -syn keyword csTypeOf typeof - " Linq Keywords syn keyword csLinq from where select group into orderby join let in on equals by ascending descending @@ -66,6 +64,7 @@ syn match csClass contained /\<[A-Z][a-z]\w\+/ nextgroup=csGeneric syn match csIface contained /\