annotate runtime/syntax/cs.vim @ 14684:6a6944f44cc8

Added tag v8.1.0354 for changeset c833cf17a4b17fc467c4487a75da279b3b6c2f6c
author Christian Brabandt <cb@256bit.org>
date Sat, 08 Sep 2018 19:15:06 +0200
parents 2a4a2dc35c55
children bc1a8d21c811
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
2 " Language: C#
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
3 " Maintainer: Nick Jensen <nickspoon@gmail.com>
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
4 " Former Maintainers: Anduin Withers <awithers@anduin.com>
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
5 " Johannes Zellner <johannes@zellner.org>
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
6 " Last Change: 2018-06-29
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
7 " Filenames: *.cs
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
8 " License: Vim (see :h license)
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
9 " Repository: https://github.com/nickspoons/vim-cs
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " REFERENCES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " [1] ECMA TC39: C# Language Specification (WD13Oct01.doc)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let s:cs_cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 set cpo&vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
22 syn keyword csType bool byte char decimal double float int long object sbyte short string T uint ulong ushort var void dynamic
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
23 syn keyword csStorage delegate enum interface namespace struct
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
24 syn keyword csRepeat break continue do for foreach goto return while
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
25 syn keyword csConditional else if switch
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
26 syn keyword csLabel case default
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
27 syn match csOperatorError display +::+
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
28 syn match csGlobal display +global::+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " user labels (see [1] 8.6 Statements)
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
30 syn match csLabel display +^\s*\I\i*\s*:\([^:]\)\@=+
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
31 syn keyword csModifier abstract const extern internal override private protected public readonly sealed static virtual volatile
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
32 syn keyword csConstant false null true
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
33 syn keyword csException try catch finally throw when
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
34 syn keyword csLinq ascending by descending equals from group in into join let on orderby select where
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
35 syn keyword csAsync async await
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
37 syn keyword csUnspecifiedStatement as base checked event fixed in is lock nameof operator out params ref sizeof stackalloc this typeof unchecked unsafe using
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
38 syn keyword csUnsupportedStatement add remove value
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
39 syn keyword csUnspecifiedKeyword explicit implicit
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
859
99305c4c42d4 updated for version 7.0g02
vimboss
parents: 843
diff changeset
41 " Contextual Keywords
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
42 syn match csContextualStatement /\<yield[[:space:]\n]\+\(return\|break\)/me=s+5
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
43 syn match csContextualStatement /\<partial[[:space:]\n]\+\(class\|struct\|interface\)/me=s+7
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
44 syn match csContextualStatement /\<\(get\|set\)\(;\|[[:space:]\n]*{\)/me=s+3
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
45 syn match csContextualStatement /\<where\>[^:]\+:/me=s+5
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
46
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
47 " Punctuation
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
48 syn match csBraces "[{}\[\]]" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
49 syn match csParens "[()]" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
50 syn match csOpSymbols "[+\-><=]\{1,2}" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
51 syn match csOpSymbols "[!><+\-*/]=" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
52 syn match csOpSymbols "[!*/^]" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
53 syn match csOpSymbols "=>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
54 syn match csEndColon ";" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
55 syn match csLogicSymbols "&&" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
56 syn match csLogicSymbols "||" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
57 syn match csLogicSymbols "?" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
58 syn match csLogicSymbols ":" display
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " PROVIDES: @csCommentHook
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
63 syn keyword csTodo contained TODO FIXME XXX NOTE HACK TBD
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
64 syn region csComment start="/\*" end="\*/" contains=@csCommentHook,csTodo,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
65 syn match csComment "//.*$" contains=@csCommentHook,csTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " xml markup inside '///' comments
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
68 syn cluster xmlRegionHook add=csXmlCommentLeader
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
69 syn cluster xmlCdataHook add=csXmlCommentLeader
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
70 syn cluster xmlStartTagHook add=csXmlCommentLeader
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
71 syn keyword csXmlTag contained Libraries Packages Types Excluded ExcludedTypeName ExcludedLibraryName
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
72 syn keyword csXmlTag contained ExcludedBucketName TypeExcluded Type TypeKind TypeSignature AssemblyInfo
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
73 syn keyword csXmlTag contained AssemblyName AssemblyPublicKey AssemblyVersion AssemblyCulture Base
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
74 syn keyword csXmlTag contained BaseTypeName Interfaces Interface InterfaceName Attributes Attribute
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
75 syn keyword csXmlTag contained AttributeName Members Member MemberSignature MemberType MemberValue
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
76 syn keyword csXmlTag contained ReturnValue ReturnType Parameters Parameter MemberOfPackage
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
77 syn keyword csXmlTag contained ThreadingSafetyStatement Docs devdoc example overload remarks returns summary
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
78 syn keyword csXmlTag contained threadsafe value internalonly nodoc exception param permission platnote
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
79 syn keyword csXmlTag contained seealso b c i pre sub sup block code note paramref see subscript superscript
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
80 syn keyword csXmlTag contained list listheader item term description altcompliant altmember
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn cluster xmlTagHook add=csXmlTag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
84 syn match csXmlCommentLeader +\/\/\/+ contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
85 syn match csXmlComment +\/\/\/.*$+ contains=csXmlCommentLeader,@csXml,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
86 syn include @csXml syntax/xml.vim
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
87 hi def link xmlRegion Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 " [1] 9.5 Pre-processing directives
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
91 syn region csPreCondit start="^\s*#\s*\(define\|undef\|if\|elif\|else\|endif\|line\|error\|warning\)" skip="\\$" end="$" contains=csComment keepend
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
92 syn region csRegion matchgroup=csPreCondit start="^\s*#\s*region.*$" end="^\s*#\s*endregion" transparent fold contains=TOP
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
93 syn region csSummary start="^\s*/// <summary" end="^\%\(\s*///\)\@!" transparent fold keepend
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
96 syn region csClassType start="@\@1<!\<class\>"hs=s+6 end="[:\n{]"me=e-1 contains=csClass
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
97 syn region csNewType start="@\@1<!\<new\>"hs=s+4 end="[;\n{(<\[]"me=e-1 contains=csNew contains=csNewType
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
98 syn region csIsType start=" is "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
99 syn region csIsType start=" as "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
100 syn keyword csNew new contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
101 syn keyword csClass class contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
102 syn keyword csIsAs is as
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 " Strings and constants
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
105 syn match csSpecialError "\\." contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
106 syn match csSpecialCharError "[^']" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 " [1] 9.4.4.4 Character literals
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
108 syn match csSpecialChar +\\["\\'0abfnrtvx]+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
109 syn match csUnicodeNumber +\\u\x\{4}+ contained contains=csUnicodeSpecifier display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
110 syn match csUnicodeNumber +\\U\x\{8}+ contained contains=csUnicodeSpecifier display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
111 syn match csUnicodeSpecifier +\\[uU]+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
112
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
113 syn region csString matchgroup=csQuote start=+"+ end=+"+ end=+$+ extend contains=csSpecialChar,csSpecialError,csUnicodeNumber,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
114 syn match csCharacter "'[^']*'" contains=csSpecialChar,csSpecialCharError display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
115 syn match csCharacter "'\\''" contains=csSpecialChar display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
116 syn match csCharacter "'[^\\]'" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
117 syn match csNumber "\<0[0-7]*[lL]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
118 syn match csNumber "\<0[xX]\x\+[lL]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
119 syn match csNumber "\<\d\+[lL]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
120 syn match csNumber "\<\d\+\.\d*\%\([eE][-+]\=\d\+\)\=[fFdD]\=" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
121 syn match csNumber "\.\d\+\%\([eE][-+]\=\d\+\)\=[fFdD]\=" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
122 syn match csNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
123 syn match csNumber "\<\d\+\%\([eE][-+]\=\d\+\)\=[fFdD]\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
124
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
125 syn region csInterpolatedString matchgroup=csQuote start=+\$"+ end=+"+ end=+$+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
126
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
127 syn region csInterpolation matchgroup=csInterpolationDelimiter start=+{+ end=+}+ keepend contained contains=@csAll,csBracketed,csInterpolationAlign,csInterpolationFormat
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
128 syn match csEscapedInterpolation "{{" transparent contains=NONE display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
129 syn match csEscapedInterpolation "}}" transparent contains=NONE display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
130 syn region csInterpolationAlign matchgroup=csInterpolationAlignDel start=+,+ end=+}+ end=+:+me=e-1 contained contains=csNumber,csConstant,csCharacter,csParens,csOpSymbols,csString,csBracketed display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
131 syn match csInterpolationFormat +:[^}]\+}+ contained contains=csInterpolationFormatDel display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
132 syn match csInterpolationAlignDel +,+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
133 syn match csInterpolationFormatDel +:+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
134
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
135 syn region csVerbatimString matchgroup=csQuote start=+@"+ end=+"+ skip=+""+ extend contains=csVerbatimQuote,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
136 syn match csVerbatimQuote +""+ contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
137 syn match csQuoteError +@$"+he=s+2,me=s+2
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
138
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
139 syn region csInterVerbString matchgroup=csQuote start=+\$@"+ end=+"+ skip=+""+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,csVerbatimQuote,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
140
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
141 syn region csBracketed matchgroup=csParens start=+(+ end=+)+ contained transparent contains=@csAll,csBracketed
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
142
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
143 syn cluster csAll contains=csCharacter,csClassType,csComment,csContextualStatement,csEndColon,csInterpolatedString,csIsType,csLabel,csLogicSymbols,csNewType,csConstant,csNumber,csOpSymbols,csOperatorError,csParens,csPreCondit,csRegion,csString,csSummary,csUnicodeNumber,csUnicodeSpecifier,csVerbatimString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 " The default highlighting.
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
146 hi def link csType Type
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
147 hi def link csNewType Type
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
148 hi def link csClassType Type
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
149 hi def link csIsType Type
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
150 hi def link csStorage StorageClass
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
151 hi def link csClass StorageClass
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
152 hi def link csRepeat Repeat
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
153 hi def link csConditional Conditional
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
154 hi def link csLabel Label
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
155 hi def link csModifier StorageClass
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
156 hi def link csConstant Constant
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
157 hi def link csException Exception
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
158 hi def link csUnspecifiedStatement Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
159 hi def link csUnsupportedStatement Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
160 hi def link csUnspecifiedKeyword Keyword
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
161 hi def link csNew Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
162 hi def link csLinq Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
163 hi def link csIsAs Keyword
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
164 hi def link csAsync Keyword
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
165 hi def link csContextualStatement Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
166 hi def link csOperatorError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
167 hi def link csInterfaceDeclaration Include
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
168
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
169 hi def link csTodo Todo
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
170 hi def link csComment Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
172 hi def link csEndColon Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
173 hi def link csOpSymbols Operator
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
174 hi def link csLogicSymbols Boolean
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
175 hi def link csBraces Function
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
176 hi def link csParens Operator
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
178 hi def link csSpecialError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
179 hi def link csSpecialCharError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
180 hi def link csString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
181 hi def link csQuote String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
182 hi def link csQuoteError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
183 hi def link csInterpolatedString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
184 hi def link csVerbatimString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
185 hi def link csInterVerbString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
186 hi def link csVerbatimQuote SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
187 hi def link csPreCondit PreCondit
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
188 hi def link csCharacter Character
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
189 hi def link csSpecialChar SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
190 hi def link csNumber Number
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
191 hi def link csUnicodeNumber SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
192 hi def link csUnicodeSpecifier SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
193 hi def link csInterpolationDelimiter Delimiter
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
194 hi def link csInterpolationAlignDel csInterpolationDelimiter
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
195 hi def link csInterpolationFormat csInterpolationDelimiter
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
196 hi def link csInterpolationFormatDel csInterpolationDelimiter
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 " xml markup
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
199 hi def link csXmlCommentLeader Comment
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
200 hi def link csXmlComment Comment
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
201 hi def link csXmlTag Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 let b:current_syntax = "cs"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 let &cpo = s:cs_cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 unlet s:cs_cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
208 " vim: vts=16,28