1
<!-- CSharpSyntaxMode.xml
4
Mike Krüger <mkrueger@novell.com>
6
Copyright (c) 2007 Novell, Inc (http://www.novell.com)
8
Permission is hereby granted, free of charge, to any person obtaining a copy
9
of this software and associated documentation files (the "Software"), to deal
10
in the Software without restriction, including without limitation the rights
11
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
copies of the Software, and to permit persons to whom the Software is
13
furnished to do so, subject to the following conditions:
15
The above copyright notice and this permission notice shall be included in
16
all copies or substantial portions of the Software.
18
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
<SyntaxMode name="F#" mimeTypes="text/x-fsharp">
27
<Property name="LineComment">//</Property>
28
<Property name="BlockCommentStart">(*</Property>
29
<Property name="BlockCommentEnd">*)</Property>
30
<Property name="StringQuote">"</Property>
31
<Property name="StringQuote">'</Property>
33
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#if</EolSpan>
34
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#else</EolSpan>
35
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#elif</EolSpan>
36
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#endif</EolSpan>
37
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#load</EolSpan>
38
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#r</EolSpan>
39
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#reference</EolSpan>
40
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#nowarn</EolSpan>
41
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#time</EolSpan>
42
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#q</EolSpan>
43
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#quit</EolSpan>
44
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#help</EolSpan>
45
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#include</EolSpan>
46
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#I</EolSpan>
47
<EolSpan tagColor = "Preprocessor" rule="text.preprocessor">#light</EolSpan>
49
<EolSpan color="Comment(Doc)" rule="XmlDocumentation" tagColor="Comment(DocTag)">///</EolSpan>
50
<EolSpan color="Comment(Line)" rule="Comment" tagColor="Comment(Line)">//</EolSpan>
52
<Span color="Comment(Block)" rule="MultiComment" tagColor="Comment(Line)">
57
<Span color="String(C# @ Verbatim)" rule="VerbatimString" stopateol="false" escape='""'>
62
<Span color="String" rule="String" stopateol="true">
68
<Span color="String" rule="String" stopateol="true" escape='\'>
74
<!-- ' is also used for type parameters therefore we need a regex match to find out if something is a string -->
75
<Match expression="('(.|(\\.+))')">
76
<Group color = "String"/>
77
<Group color = "String"/>
78
<Group color = "String"/>
81
<Match color="Number">CSharpNumber</Match>
83
<!-- It is really impossible to do some intelligent grouping here, because
84
it looks weird no matter what we do... some things are context-sensitive,
85
some things may appear in unexpected place.. so just use single color -->
87
<Keywords color="Keyword(Jump)">
88
<!-- expressions that create some value -->
94
<Keywords color="Keyword(Iteration)">
95
<!-- control flow constructs -->
124
<!-- object model things -->
127
<Word>abstract</Word>
128
<Word>override</Word>
132
<Word>internal</Word>
147
<Word>delegate</Word>
148
<Word>exception</Word>
149
<Word>interface</Word>
153
<Keywords color="Keyword(Operator)">
163
<Word>downcast</Word>
166
<Keywords color="Keyword(Constants)">
171
<Word>__LINE__</Word>
172
<Word>__SOURCE_DIRECTORY__</Word>
173
<Word>__SOURCE_FILE__</Word>
176
<Keywords color="Keyword(Type)">
179
<Keywords color="Keyword(Void)">
182
<Keywords color="Keyword(Namespace)">
184
<Word>namespace</Word>
188
<Keywords color="Keyword(Property)">
191
<Keywords color="Keyword(Declaration)">
194
<Keywords color="Keyword(Parameter)">
198
<Keywords color="Keyword(Operator Declaration)">
201
<Keywords color="Keyword(Other)">
204
<Rule name="text.preprocessor" ignorecase="True">
205
<Span color = "String" rule="String" stopateol = "true">
210
<Keywords color = "Keyword(Constants)">
215
<Keywords color = "Punctuation">
219
<Word>&&</Word>
223
<Keywords color = "Punctuation(Brackets)">
229
<EolSpan color = "Comment(Doc)" rule="XmlDocumentation" tagColor="Comment(DocTag)">///</EolSpan>
230
<EolSpan color = "Comment(Line)" rule="Comment" tagColor="Comment(Line)">//</EolSpan>
233
<Rule name="Comment">
234
<Keywords color="Comment Tag" ignorecase="True">
242
<Rule name="MultiComment">
243
<Span color="Comment(Block)" rule="MultiComment">
248
<Keywords color="Comment Tag" ignorecase="True">
257
<Delimiters></Delimiters>
258
<Match color ="String(Escape)">\\(["\\'ntbrafv]|u[0-9a-fA-F]{4,4}|U[0-9a-fA-F]{8,8}|\d\d\d)</Match>
261
<Rule name = "VerbatimString">
262
<Delimiters></Delimiters>
263
<Match color ="String(Escape)">""</Match>
266
<Rule name="XmlDocumentation">
267
<Delimiters><></Delimiters>
268
<Span color = "Comment(DocTag)" rule = "XmlDocumentationTag">
b'\\ No newline at end of file'