comparison runtime/syntax/cs.vim @ 859:99305c4c42d4

updated for version 7.0g02
author vimboss
date Wed, 03 May 2006 21:26:49 +0000
parents 9f279ebda751
children 7bc41231fbc7
comparison
equal deleted inserted replaced
858:ca82de29ac19 859:99305c4c42d4
1 " Vim syntax file 1 " Vim syntax file
2 " Language: C# 2 " Language: C#
3 " Maintainer: Johannes Zellner <johannes@zellner.org> 3 " Maintainer: Anduin Withers <awithers@anduin.com>
4 " Last Change: Mo, 24 Apr 2006 10:11:07 CEST 4 " Former Maintainer: Johannes Zellner <johannes@zellner.org>
5 " Last Change: Sun Apr 30 19:26:18 PDT 2006
5 " Filenames: *.cs 6 " Filenames: *.cs
6 " $Id$ 7 " $Id$
7 " 8 "
8 " REFERENCES: 9 " REFERENCES:
9 " [1] ECMA TC39: C# Language Specification (WD13Oct01.doc) 10 " [1] ECMA TC39: C# Language Specification (WD13Oct01.doc)
36 syn keyword csException try catch finally throw 37 syn keyword csException try catch finally throw
37 38
38 " TODO: 39 " TODO:
39 syn keyword csUnspecifiedStatement as base checked event fixed in is lock new operator out params ref sizeof stackalloc this typeof unchecked unsafe using 40 syn keyword csUnspecifiedStatement as base checked event fixed in is lock new operator out params ref sizeof stackalloc this typeof unchecked unsafe using
40 " TODO: 41 " TODO:
41 syn keyword csUnsupportedStatement get set add remove value 42 syn keyword csUnsupportedStatement add remove value
42 " TODO: 43 " TODO:
43 syn keyword csUnspecifiedKeyword explicit implicit 44 syn keyword csUnspecifiedKeyword explicit implicit
44 45
45 46
47 " Contextual Keywords
48 syn match csContextualStatement /\<yield[[:space:]\n]\+\(return\|break\)/me=s+5
49 syn match csContextualStatement /\<partial[[:space:]\n]\+\(class\|struct\|interface\)/me=s+7
50 syn match csContextualStatement /\<\(get\|set\)[[:space:]\n]*{/me=s+3
51 syn match csContextualStatement /\<where\>[^:]\+:/me=s+5
46 52
47 " Comments 53 " Comments
48 " 54 "
49 " PROVIDES: @csCommentHook 55 " PROVIDES: @csCommentHook
50 " 56 "
77 hi def link xmlRegion Comment 83 hi def link xmlRegion Comment
78 84
79 85
80 " [1] 9.5 Pre-processing directives 86 " [1] 9.5 Pre-processing directives
81 syn region csPreCondit 87 syn region csPreCondit
82 \ start="^\s*#\s*\(define\|undef\|if\|elif\|else\|endif\|line\|error\|warning\|region\|endregion\)" 88 \ start="^\s*#\s*\(define\|undef\|if\|elif\|else\|endif\|line\|error\|warning\)"
83 \ skip="\\$" end="$" contains=csComment keepend 89 \ skip="\\$" end="$" contains=csComment keepend
90 syn region csRegion matchgroup=csPreCondit start="^\s*#\s*region.*$"
91 \ end="^\s*#\s*endregion" transparent fold contains=TOP
84 92
85 93
86 94
87 " Strings and constants 95 " Strings and constants
88 syn match csSpecialError contained "\\." 96 syn match csSpecialError contained "\\."
113 hi def link csConstant Constant 121 hi def link csConstant Constant
114 hi def link csException Exception 122 hi def link csException Exception
115 hi def link csUnspecifiedStatement Statement 123 hi def link csUnspecifiedStatement Statement
116 hi def link csUnsupportedStatement Statement 124 hi def link csUnsupportedStatement Statement
117 hi def link csUnspecifiedKeyword Keyword 125 hi def link csUnspecifiedKeyword Keyword
126 hi def link csContextualStatement Statement
118 hi def link csOperatorError Error 127 hi def link csOperatorError Error
119 128
120 hi def link csTodo Todo 129 hi def link csTodo Todo
121 hi def link csComment Comment 130 hi def link csComment Comment
122 131