Skip to content

Commit

Permalink
Alternative fix for OrangeT#44: region typeof highlight
Browse files Browse the repository at this point in the history
This highlights the braces in typeof and detects the type inside the
braces to be a class/interface.
  • Loading branch information
idbrii committed May 4, 2018
1 parent fad4215 commit 9978646
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions syntax/cs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -66,6 +64,7 @@ syn match csClass contained /\<[A-Z][a-z]\w\+/ nextgroup=csGeneric
syn match csIface contained /\<I[A-Z][a-z]\w\+/ nextgroup=csGeneric
" syn region csGeneric start="<" end=">" contains=csIface,csClass
"syn region csInherits start=":" end="{" contains=csIface,csClass
syn region csTypeOf start="typeof(" end=")" contains=csIface,csClass

" Attributes
syn region csAttribute start="^\s*\[" end="\]\s*" contains=csString, csVerbatimString, csCharacter, csNumber, csType
Expand Down

0 comments on commit 9978646

Please sign in to comment.