annotate runtime/syntax/cs.vim @ 22859:757858b35433

Added tag v8.2.1976 for changeset 52b5aa2e8c8f82b21887daa9256980ceffacf3c7
author Bram Moolenaar <Bram@vim.org>
date Wed, 11 Nov 2020 21:00:05 +0100
parents 51bc26d4a393
children 29c5f168c6fd
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>
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 17667
diff changeset
6 " Last Change: 2020-01-27
14372
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
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
14 if exists('b:current_syntax')
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
15 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
18 let s:save_cpo = &cpoptions
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
19 set cpoptions&vim
7
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
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
37 syn keyword csUnspecifiedStatement as base checked event fixed in is lock nameof operator out params ref sizeof stackalloc this unchecked unsafe using
14372
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
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
47 " Operators
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
48 syn keyword csTypeOf typeof contained
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
49 syn region csTypeOfStatement start="typeof(" end=")" contains=csType, csTypeOf
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
50
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
51 " Punctuation
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
52 syn match csBraces "[{}\[\]]" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
53 syn match csParens "[()]" display
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
54 syn match csOpSymbols "+\{1,2}" display
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
55 syn match csOpSymbols "-\{1,2}" display
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
56 syn match csOpSymbols "=\{1,2}" display
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
57 syn match csOpSymbols ">\{1,2}" display
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
58 syn match csOpSymbols "<\{1,2}" display
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
59 syn match csOpSymbols "[!><+\-*/]=" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
60 syn match csOpSymbols "[!*/^]" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
61 syn match csOpSymbols "=>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
62 syn match csEndColon ";" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
63 syn match csLogicSymbols "&&" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
64 syn match csLogicSymbols "||" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
65 syn match csLogicSymbols "?" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
66 syn match csLogicSymbols ":" display
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
68 " Generics
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
69 syn region csGeneric matchgroup=csGenericBraces start="<" end=">" oneline contains=csType,csGeneric,csUserType,csUserIdentifier,csUserInterface,csUserMethod
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
70
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " PROVIDES: @csCommentHook
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
74 syn keyword csTodo contained TODO FIXME XXX NOTE HACK TBD
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
75 syn region csComment start="/\*" end="\*/" contains=@csCommentHook,csTodo,@Spell
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
76 syn match csComment "//.*$" contains=@csCommentHook,csTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " xml markup inside '///' comments
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
79 syn cluster xmlRegionHook add=csXmlCommentLeader
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
80 syn cluster xmlCdataHook add=csXmlCommentLeader
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
81 syn cluster xmlStartTagHook add=csXmlCommentLeader
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
82 syn keyword csXmlTag contained Libraries Packages Types Excluded ExcludedTypeName ExcludedLibraryName
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
83 syn keyword csXmlTag contained ExcludedBucketName TypeExcluded Type TypeKind TypeSignature AssemblyInfo
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
84 syn keyword csXmlTag contained AssemblyName AssemblyPublicKey AssemblyVersion AssemblyCulture Base
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
85 syn keyword csXmlTag contained BaseTypeName Interfaces Interface InterfaceName Attributes Attribute
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
86 syn keyword csXmlTag contained AttributeName Members Member MemberSignature MemberType MemberValue
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
87 syn keyword csXmlTag contained ReturnValue ReturnType Parameters Parameter MemberOfPackage
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
88 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
89 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
90 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
91 syn keyword csXmlTag contained list listheader item term description altcompliant altmember
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn cluster xmlTagHook add=csXmlTag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
95 syn match csXmlCommentLeader "///" contained
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
96 syn match csXmlComment "///.*$" contains=csXmlCommentLeader,@csXml,@Spell keepend
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
97 syn include @csXml syntax/xml.vim
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
98 hi def link xmlRegion Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 17667
diff changeset
100 " Since syntax/xml.vim contains `syn spell toplevel`, we need to set it back to `default` here.
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 17667
diff changeset
101 syn spell default
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 " [1] 9.5 Pre-processing directives
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
104 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
105 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
106 syn region csSummary start="^\s*/// <summary" end="^\%\(\s*///\)\@!" transparent fold keepend
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
109 syn region csClassType start="@\@1<!\<class\>"hs=s+6 end="[:\n{]"me=e-1 contains=csClass
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
110 " csUserType may be defined by user scripts/plugins - it should be contained in csNewType
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
111 syn region csNewType start="@\@1<!\<new\>"hs=s+4 end="[;\n{(<\[]"me=e-1 contains=csNew,csUserType
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
112 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
113 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
114 syn keyword csNew new contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
115 syn keyword csClass class contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
116 syn keyword csIsAs is as
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 " Strings and constants
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
119 syn match csSpecialError "\\." contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
120 syn match csSpecialCharError "[^']" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " [1] 9.4.4.4 Character literals
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
122 syn match csSpecialChar +\\["\\'0abfnrtvx]+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
123 syn match csUnicodeNumber +\\u\x\{4}+ contained contains=csUnicodeSpecifier display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
124 syn match csUnicodeNumber +\\U\x\{8}+ contained contains=csUnicodeSpecifier display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
125 syn match csUnicodeSpecifier +\\[uU]+ contained display
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 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
128 syn match csCharacter "'[^']*'" contains=csSpecialChar,csSpecialCharError display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
129 syn match csCharacter "'\\''" contains=csSpecialChar display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
130 syn match csCharacter "'[^\\]'" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
131 syn match csNumber "\<0[0-7]*[lL]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
132 syn match csNumber "\<0[xX]\x\+[lL]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
133 syn match csNumber "\<\d\+[lL]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
134 syn match csNumber "\<\d\+\.\d*\%\([eE][-+]\=\d\+\)\=[fFdD]\=" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
135 syn match csNumber "\.\d\+\%\([eE][-+]\=\d\+\)\=[fFdD]\=" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
136 syn match csNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>" display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
137 syn match csNumber "\<\d\+\%\([eE][-+]\=\d\+\)\=[fFdD]\>" display
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 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
140
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
141 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
142 syn match csEscapedInterpolation "{{" transparent contains=NONE display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
143 syn match csEscapedInterpolation "}}" transparent contains=NONE display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
144 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
145 syn match csInterpolationFormat +:[^}]\+}+ contained contains=csInterpolationFormatDel display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
146 syn match csInterpolationAlignDel +,+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
147 syn match csInterpolationFormatDel +:+ contained display
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
148
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
149 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
150 syn match csVerbatimQuote +""+ contained
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
151 syn match csQuoteError +@$"+he=s+2,me=s+2
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
152
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
153 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
154
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
155 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
156
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
157 syn cluster csAll contains=csCharacter,csClassType,csComment,csContextualStatement,csEndColon,csInterpolatedString,csIsType,csLabel,csLogicSymbols,csNewType,csConstant,csNumber,csOpSymbols,csOperatorError,csParens,csPreCondit,csRegion,csString,csSummary,csType,csUnicodeNumber,csUnicodeSpecifier,csVerbatimString,csUserType,csUserIdentifier,csUserInterface,csUserMethod
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " The default highlighting.
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
160 hi def link csType Type
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
161 hi def link csClassType Type
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
162 hi def link csIsType Type
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
163 hi def link csStorage Structure
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
164 hi def link csClass Structure
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
165 hi def link csRepeat Repeat
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
166 hi def link csConditional Conditional
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
167 hi def link csLabel Label
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
168 hi def link csModifier StorageClass
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
169 hi def link csConstant Constant
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
170 hi def link csException Exception
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
171 hi def link csTypeOf Keyword
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
172 hi def link csTypeOfStatement Typedef
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
173 hi def link csUnspecifiedStatement Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
174 hi def link csUnsupportedStatement Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
175 hi def link csUnspecifiedKeyword Keyword
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
176 hi def link csNew Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
177 hi def link csLinq Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
178 hi def link csIsAs Keyword
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
179 hi def link csAsync Keyword
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
180 hi def link csContextualStatement Statement
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
181 hi def link csOperatorError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
182
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
183 hi def link csTodo Todo
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
184 hi def link csComment Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
186 hi def link csOpSymbols Operator
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
187 hi def link csLogicSymbols Operator
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
189 hi def link csSpecialError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
190 hi def link csSpecialCharError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
191 hi def link csString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
192 hi def link csQuote String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
193 hi def link csQuoteError Error
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
194 hi def link csInterpolatedString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
195 hi def link csVerbatimString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
196 hi def link csInterVerbString String
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
197 hi def link csVerbatimQuote SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
198 hi def link csPreCondit PreCondit
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
199 hi def link csCharacter Character
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
200 hi def link csSpecialChar SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
201 hi def link csNumber Number
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
202 hi def link csUnicodeNumber SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
203 hi def link csUnicodeSpecifier SpecialChar
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
204 hi def link csInterpolationDelimiter Delimiter
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
205 hi def link csInterpolationAlignDel csInterpolationDelimiter
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
206 hi def link csInterpolationFormat csInterpolationDelimiter
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
207 hi def link csInterpolationFormatDel csInterpolationDelimiter
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
17667
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
209 hi def link csGenericBraces csBraces
95c23e180022 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15131
diff changeset
210
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 " xml markup
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
212 hi def link csXmlCommentLeader Comment
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
213 hi def link csXmlComment Comment
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
214 hi def link csXmlTag Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
216 let b:current_syntax = 'cs'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
15131
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
218 let &cpoptions = s:save_cpo
bc1a8d21c811 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14372
diff changeset
219 unlet s:save_cpo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13857
diff changeset
221 " vim: vts=16,28