Mercurial > vim
comparison runtime/syntax/cs.vim @ 17667:95c23e180022
Update runtime files.
commit https://github.com/vim/vim/commit/088e8e3443520dec91a384081e66445a104810bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 8 22:15:18 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 08 Aug 2019 22:30:08 +0200 |
parents | bc1a8d21c811 |
children | 51bc26d4a393 |
comparison
equal
deleted
inserted
replaced
17666:460af4da8fa6 | 17667:95c23e180022 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: C# | 2 " Language: C# |
3 " Maintainer: Nick Jensen <nickspoon@gmail.com> | 3 " Maintainer: Nick Jensen <nickspoon@gmail.com> |
4 " Former Maintainers: Anduin Withers <awithers@anduin.com> | 4 " Former Maintainers: Anduin Withers <awithers@anduin.com> |
5 " Johannes Zellner <johannes@zellner.org> | 5 " Johannes Zellner <johannes@zellner.org> |
6 " Last Change: 2018-11-26 | 6 " Last Change: 2019-08-01 |
7 " Filenames: *.cs | 7 " Filenames: *.cs |
8 " License: Vim (see :h license) | 8 " License: Vim (see :h license) |
9 " Repository: https://github.com/nickspoons/vim-cs | 9 " Repository: https://github.com/nickspoons/vim-cs |
10 " | 10 " |
11 " REFERENCES: | 11 " REFERENCES: |
49 syn region csTypeOfStatement start="typeof(" end=")" contains=csType, csTypeOf | 49 syn region csTypeOfStatement start="typeof(" end=")" contains=csType, csTypeOf |
50 | 50 |
51 " Punctuation | 51 " Punctuation |
52 syn match csBraces "[{}\[\]]" display | 52 syn match csBraces "[{}\[\]]" display |
53 syn match csParens "[()]" display | 53 syn match csParens "[()]" display |
54 syn match csOpSymbols "[+\-=]\{1,2}" display | 54 syn match csOpSymbols "+\{1,2}" display |
55 syn match csOpSymbols "[><]\{2}" display | 55 syn match csOpSymbols "-\{1,2}" display |
56 syn match csOpSymbols "\s\zs[><]\ze\_s" display | 56 syn match csOpSymbols "=\{1,2}" display |
57 syn match csOpSymbols ">\{1,2}" display | |
58 syn match csOpSymbols "<\{1,2}" display | |
57 syn match csOpSymbols "[!><+\-*/]=" display | 59 syn match csOpSymbols "[!><+\-*/]=" display |
58 syn match csOpSymbols "[!*/^]" display | 60 syn match csOpSymbols "[!*/^]" display |
59 syn match csOpSymbols "=>" display | 61 syn match csOpSymbols "=>" display |
60 syn match csEndColon ";" display | 62 syn match csEndColon ";" display |
61 syn match csLogicSymbols "&&" display | 63 syn match csLogicSymbols "&&" display |
62 syn match csLogicSymbols "||" display | 64 syn match csLogicSymbols "||" display |
63 syn match csLogicSymbols "?" display | 65 syn match csLogicSymbols "?" display |
64 syn match csLogicSymbols ":" display | 66 syn match csLogicSymbols ":" display |
67 | |
68 " Generics | |
69 syn region csGeneric matchgroup=csGenericBraces start="<" end=">" oneline contains=csType,csGeneric,csUserType,csUserIdentifier,csUserInterface,csUserMethod | |
65 | 70 |
66 " Comments | 71 " Comments |
67 " | 72 " |
68 " PROVIDES: @csCommentHook | 73 " PROVIDES: @csCommentHook |
69 syn keyword csTodo contained TODO FIXME XXX NOTE HACK TBD | 74 syn keyword csTodo contained TODO FIXME XXX NOTE HACK TBD |
85 syn keyword csXmlTag contained seealso b c i pre sub sup block code note paramref see subscript superscript | 90 syn keyword csXmlTag contained seealso b c i pre sub sup block code note paramref see subscript superscript |
86 syn keyword csXmlTag contained list listheader item term description altcompliant altmember | 91 syn keyword csXmlTag contained list listheader item term description altcompliant altmember |
87 | 92 |
88 syn cluster xmlTagHook add=csXmlTag | 93 syn cluster xmlTagHook add=csXmlTag |
89 | 94 |
90 syn match csXmlCommentLeader +\/\/\/+ contained | 95 syn match csXmlCommentLeader "///" contained |
91 syn match csXmlComment +\/\/\/.*$+ contains=csXmlCommentLeader,@csXml,@Spell | 96 syn match csXmlComment "///.*$" contains=csXmlCommentLeader,@csXml,@Spell keepend |
92 syn include @csXml syntax/xml.vim | 97 syn include @csXml syntax/xml.vim |
93 hi def link xmlRegion Comment | 98 hi def link xmlRegion Comment |
94 | 99 |
95 | 100 |
96 " [1] 9.5 Pre-processing directives | 101 " [1] 9.5 Pre-processing directives |
98 syn region csRegion matchgroup=csPreCondit start="^\s*#\s*region.*$" end="^\s*#\s*endregion" transparent fold contains=TOP | 103 syn region csRegion matchgroup=csPreCondit start="^\s*#\s*region.*$" end="^\s*#\s*endregion" transparent fold contains=TOP |
99 syn region csSummary start="^\s*/// <summary" end="^\%\(\s*///\)\@!" transparent fold keepend | 104 syn region csSummary start="^\s*/// <summary" end="^\%\(\s*///\)\@!" transparent fold keepend |
100 | 105 |
101 | 106 |
102 syn region csClassType start="@\@1<!\<class\>"hs=s+6 end="[:\n{]"me=e-1 contains=csClass | 107 syn region csClassType start="@\@1<!\<class\>"hs=s+6 end="[:\n{]"me=e-1 contains=csClass |
103 syn region csNewType start="@\@1<!\<new\>"hs=s+4 end="[;\n{(<\[]"me=e-1 contains=csNew contains=csNewType | 108 " csUserType may be defined by user scripts/plugins - it should be contained in csNewType |
109 syn region csNewType start="@\@1<!\<new\>"hs=s+4 end="[;\n{(<\[]"me=e-1 contains=csNew,csUserType | |
104 syn region csIsType start=" is "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs | 110 syn region csIsType start=" is "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs |
105 syn region csIsType start=" as "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs | 111 syn region csIsType start=" as "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs |
106 syn keyword csNew new contained | 112 syn keyword csNew new contained |
107 syn keyword csClass class contained | 113 syn keyword csClass class contained |
108 syn keyword csIsAs is as | 114 syn keyword csIsAs is as |
144 | 150 |
145 syn region csInterVerbString matchgroup=csQuote start=+\$@"+ end=+"+ skip=+""+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,csVerbatimQuote,@Spell | 151 syn region csInterVerbString matchgroup=csQuote start=+\$@"+ end=+"+ skip=+""+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,csVerbatimQuote,@Spell |
146 | 152 |
147 syn region csBracketed matchgroup=csParens start=+(+ end=+)+ contained transparent contains=@csAll,csBracketed | 153 syn region csBracketed matchgroup=csParens start=+(+ end=+)+ contained transparent contains=@csAll,csBracketed |
148 | 154 |
149 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 | 155 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 |
150 | 156 |
151 " The default highlighting. | 157 " The default highlighting. |
152 hi def link csType Type | 158 hi def link csType Type |
153 hi def link csClassType Type | 159 hi def link csClassType Type |
154 hi def link csIsType Type | 160 hi def link csIsType Type |
158 hi def link csConditional Conditional | 164 hi def link csConditional Conditional |
159 hi def link csLabel Label | 165 hi def link csLabel Label |
160 hi def link csModifier StorageClass | 166 hi def link csModifier StorageClass |
161 hi def link csConstant Constant | 167 hi def link csConstant Constant |
162 hi def link csException Exception | 168 hi def link csException Exception |
163 hi def link csTypeOf Operator | 169 hi def link csTypeOf Keyword |
164 hi def link csTypeOfStatement Typedef | 170 hi def link csTypeOfStatement Typedef |
165 hi def link csUnspecifiedStatement Statement | 171 hi def link csUnspecifiedStatement Statement |
166 hi def link csUnsupportedStatement Statement | 172 hi def link csUnsupportedStatement Statement |
167 hi def link csUnspecifiedKeyword Keyword | 173 hi def link csUnspecifiedKeyword Keyword |
168 hi def link csNew Statement | 174 hi def link csNew Statement |
196 hi def link csInterpolationDelimiter Delimiter | 202 hi def link csInterpolationDelimiter Delimiter |
197 hi def link csInterpolationAlignDel csInterpolationDelimiter | 203 hi def link csInterpolationAlignDel csInterpolationDelimiter |
198 hi def link csInterpolationFormat csInterpolationDelimiter | 204 hi def link csInterpolationFormat csInterpolationDelimiter |
199 hi def link csInterpolationFormatDel csInterpolationDelimiter | 205 hi def link csInterpolationFormatDel csInterpolationDelimiter |
200 | 206 |
207 hi def link csGenericBraces csBraces | |
208 | |
201 " xml markup | 209 " xml markup |
202 hi def link csXmlCommentLeader Comment | 210 hi def link csXmlCommentLeader Comment |
203 hi def link csXmlComment Comment | 211 hi def link csXmlComment Comment |
204 hi def link csXmlTag Statement | 212 hi def link csXmlTag Statement |
205 | 213 |