~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/Mono.Texteditor/SyntaxModes/FSharpSyntaxMode.xml

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- CSharpSyntaxMode.xml
 
2
 
 
3
 Author:
 
4
   Mike Krüger <mkrueger@novell.com>
 
5
 
 
6
 Copyright (c) 2007 Novell, Inc (http://www.novell.com)
 
7
 
 
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:
 
14
 
 
15
 The above copyright notice and this permission notice shall be included in
 
16
 all copies or substantial portions of the Software.
 
17
 
 
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
 
24
 THE SOFTWARE. -->
 
25
 
 
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>
 
32
 
 
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>
 
48
 
 
49
        <EolSpan color="Comment(Doc)" rule="XmlDocumentation" tagColor="Comment(DocTag)">///</EolSpan>
 
50
        <EolSpan color="Comment(Line)" rule="Comment" tagColor="Comment(Line)">//</EolSpan>
 
51
 
 
52
        <Span color="Comment(Block)" rule="MultiComment" tagColor="Comment(Line)">
 
53
                <Begin>(*®)</Begin>
 
54
                <End>*)</End>
 
55
        </Span>
 
56
        
 
57
        <Span color="String(C# @ Verbatim)" rule="VerbatimString" stopateol="false" escape='""'>
 
58
                <Begin>@"</Begin>
 
59
                <End>"</End>
 
60
        </Span>
 
61
 
 
62
        <Span color="String" rule="String" stopateol="true">
 
63
                <Begin>"</Begin>
 
64
                <End>"</End>
 
65
        </Span>
 
66
  
 
67
<!-- 
 
68
        <Span color="String" rule="String" stopateol="true" escape='\'>
 
69
                <Begin>[]</Begin>
 
70
                <End>"</End>
 
71
        </Span>
 
72
        -->
 
73
 
 
74
        <!-- ' is also used for type parameters therefore we need a regex match to find out if something is a string -->
 
75
        <Match expression="(&apos;(.|(\\.+))&apos;)">
 
76
                        <Group color = "String"/>
 
77
                        <Group color = "String"/>
 
78
                        <Group color = "String"/>
 
79
        </Match>
 
80
 
 
81
        <Match color="Number">CSharpNumber</Match>
 
82
 
 
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 -->
 
86
 
 
87
        <Keywords color="Keyword(Jump)">
 
88
                <!-- expressions that create some value -->
 
89
                <Word>fun</Word>
 
90
                <Word>function</Word>
 
91
                <Word>new</Word>
 
92
        </Keywords>
 
93
 
 
94
        <Keywords color="Keyword(Iteration)">
 
95
                <!-- control flow constructs -->
 
96
                <Word>finally</Word>
 
97
                <Word>try</Word>
 
98
                <Word>with</Word>
 
99
 
 
100
                <Word>val</Word>
 
101
                <Word>use</Word>
 
102
                <Word>yield</Word>
 
103
                <Word>let!</Word>
 
104
                <Word>use!</Word>
 
105
                <Word>do!</Word>
 
106
                <Word>yield!</Word>
 
107
                <Word>return!</Word>
 
108
                <Word>while</Word>
 
109
                <Word>for</Word>
 
110
 
 
111
                <Word>do</Word>
 
112
                <Word>begin</Word>
 
113
                <Word>done</Word>
 
114
                <Word>elif</Word>
 
115
                <Word>else</Word>
 
116
                <Word>end</Word>
 
117
                <Word>if</Word>
 
118
                <Word>let</Word>
 
119
                <Word>match</Word>
 
120
                <Word>return</Word>
 
121
                <Word>then</Word>
 
122
                <Word>when</Word>
 
123
 
 
124
                <!-- object model things -->
 
125
                <Word>inline</Word>
 
126
                <Word>static</Word>
 
127
                <Word>abstract</Word>
 
128
                <Word>override</Word>
 
129
                <Word>private</Word>
 
130
                <Word>public</Word>
 
131
                <Word>extern</Word>
 
132
                <Word>internal</Word>
 
133
                <Word>mutable</Word>
 
134
                <Word>rec</Word>
 
135
                <Word>void</Word>
 
136
 
 
137
                <Word>global</Word>
 
138
                <Word>base</Word>
 
139
                <Word>default</Word>
 
140
                <Word>inherit</Word>
 
141
                <Word>member</Word>
 
142
                <Word>type</Word>
 
143
 
 
144
                <Word>of</Word>
 
145
                <Word>sig</Word>
 
146
                <Word>class</Word>
 
147
                <Word>delegate</Word>
 
148
                <Word>exception</Word>
 
149
                <Word>interface</Word>
 
150
                <Word>struct</Word>
 
151
        </Keywords>
 
152
 
 
153
        <Keywords color="Keyword(Operator)">
 
154
                <Word>as</Word>
 
155
                <Word>assert</Word>
 
156
                <Word>or</Word>
 
157
                <Word>downto</Word>
 
158
                <Word>in</Word>
 
159
                <Word>to</Word>
 
160
                <Word>upcast</Word>
 
161
                <Word>lazy</Word>
 
162
                <Word>and</Word>
 
163
                <Word>downcast</Word>
 
164
        </Keywords>
 
165
 
 
166
        <Keywords color="Keyword(Constants)">
 
167
                <Word>false</Word>
 
168
                <Word>null</Word>
 
169
                <Word>true</Word>
 
170
                
 
171
                <Word>__LINE__</Word>
 
172
                <Word>__SOURCE_DIRECTORY__</Word>
 
173
                <Word>__SOURCE_FILE__</Word>
 
174
        </Keywords>
 
175
 
 
176
        <Keywords color="Keyword(Type)">
 
177
        </Keywords>
 
178
 
 
179
        <Keywords color="Keyword(Void)">
 
180
        </Keywords>
 
181
 
 
182
        <Keywords color="Keyword(Namespace)">
 
183
                <Word>module</Word>
 
184
                <Word>namespace</Word>
 
185
                <Word>open</Word>
 
186
        </Keywords>
 
187
 
 
188
        <Keywords color="Keyword(Property)">
 
189
        </Keywords>
 
190
 
 
191
        <Keywords color="Keyword(Declaration)">
 
192
        </Keywords>
 
193
 
 
194
        <Keywords color="Keyword(Parameter)">
 
195
        </Keywords>
 
196
 
 
197
 
 
198
        <Keywords color="Keyword(Operator Declaration)">
 
199
        </Keywords>
 
200
 
 
201
        <Keywords color="Keyword(Other)">
 
202
        </Keywords>
 
203
 
 
204
        <Rule name="text.preprocessor" ignorecase="True">
 
205
                <Span color = "String" rule="String" stopateol = "true">
 
206
                        <Begin>"</Begin>
 
207
                        <End>"</End>
 
208
                </Span>
 
209
                
 
210
                <Keywords color = "Keyword(Constants)">
 
211
                        <Word>true</Word>
 
212
                        <Word>false</Word>
 
213
                </Keywords>
 
214
                
 
215
                <Keywords color = "Punctuation">
 
216
                        <Word>==</Word>
 
217
                        <Word>!=</Word>
 
218
                        <Word>!</Word>
 
219
                        <Word>&amp;&amp;</Word>
 
220
                        <Word>||</Word>
 
221
                </Keywords>
 
222
        
 
223
                <Keywords color = "Punctuation(Brackets)">
 
224
                        <Word>(</Word>
 
225
                        <Word>)</Word>
 
226
                </Keywords>
 
227
 
 
228
 
 
229
                <EolSpan color = "Comment(Doc)" rule="XmlDocumentation" tagColor="Comment(DocTag)">///</EolSpan>
 
230
                <EolSpan color = "Comment(Line)" rule="Comment" tagColor="Comment(Line)">//</EolSpan>
 
231
        </Rule>
 
232
        
 
233
        <Rule name="Comment">
 
234
                <Keywords color="Comment Tag" ignorecase="True">
 
235
                        <Word>TODO</Word>
 
236
                        <Word>FIXME</Word>
 
237
                        <Word>HACK</Word>
 
238
                        <Word>UNDONE</Word>
 
239
                </Keywords>
 
240
        </Rule>
 
241
  
 
242
        <Rule name="MultiComment">
 
243
                <Span color="Comment(Block)" rule="MultiComment">
 
244
                        <Begin>(*®)</Begin>
 
245
                        <End>*)</End>
 
246
                </Span>
 
247
 
 
248
                <Keywords color="Comment Tag" ignorecase="True">
 
249
                        <Word>TODO</Word>
 
250
                        <Word>FIXME</Word>
 
251
                        <Word>HACK</Word>
 
252
                        <Word>UNDONE</Word>
 
253
                </Keywords>
 
254
        </Rule>
 
255
 
 
256
        <Rule name="String">
 
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>
 
259
        </Rule>
 
260
        
 
261
        <Rule name = "VerbatimString">
 
262
                <Delimiters></Delimiters>
 
263
                <Match color ="String(Escape)">""</Match>
 
264
        </Rule>
 
265
 
 
266
        <Rule name="XmlDocumentation">
 
267
                <Delimiters>&lt;&gt;</Delimiters>
 
268
                <Span color = "Comment(DocTag)" rule = "XmlDocumentationTag">
 
269
                        <Begin>&lt;</Begin>
 
270
                        <End>&gt;</End>
 
271
                </Span>
 
272
        </Rule>
 
273
 
 
274
</SyntaxMode>
 
 
b'\\ No newline at end of file'