blob: 4eb1a7ba523894873416975d57e595ae726d17cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Nemerle syntax highlighting v0.2 by caminoix, approved of and corrected by Kamil Skalski (Nazgul) -->
<language name="Nemerle" version="0.32" kateversion="2.3" section="Sources" extensions="*.n" mimetype="text/x-nemerle" casesensitive="1" author="caminoix + Kamil Skalski (Nazgul)" license="">
<highlighting>
<list name="Attributes">
<item>abstract</item>
<item>def</item>
<item>delegate</item>
<item>event</item>
<item>extern</item>
<item>internal</item>
<item>mutable</item>
<item>override</item>
<item>public</item>
<item>private</item>
<item>protected</item>
<item>sealed</item>
<item>static</item>
<item>volatile</item>
<item>virtual</item>
<item>new</item>
</list>
<list name="CompilationUnits">
<item>macro</item>
<item>namespace</item>
<item>using</item>
<item>\[Record\]</item>
</list>
<list name="DataTypes">
<item>array</item>
<item>bool</item>
<item>byte</item>
<item>char</item>
<item>decimal</item>
<item>double</item>
<item>enum</item>
<item>float</item>
<item>int</item>
<item>list</item>
<item>long</item>
<item>object</item>
<item>sbyte</item>
<item>short</item>
<item>string</item>
<item>uint</item>
<item>ulong</item>
<item>ushort</item>
<item>variant</item>
<item>void</item>
</list>
<list name="Keywords">
<item>_</item>
<item>as</item>
<item>assert</item>
<item>base</item>
<item>catch</item>
<item>checked</item>
<item>do</item>
<item>else</item>
<item>false</item>
<item>finally</item>
<item>for</item>
<item>foreach</item>
<item>fun</item>
<item>get</item>
<item>if</item>
<item>ignore</item>
<item>implements</item>
<item>in</item>
<item>is</item>
<item>lock</item>
<item>match</item>
<item>null</item>
<item>out</item>
<item>params</item>
<item>ref</item>
<item>repeat</item>
<item>set</item>
<item>syntax</item>
<item>this</item>
<item>throw</item>
<item>true</item>
<item>try</item>
<item>typeof</item>
<item>unchecked</item>
<item>unless</item>
<item>when</item>
<item>where</item>
<item>while</item>
<item>with</item>
</list>
<list name="Preprocessing">
<item>#define</item>
<item>#elif</item>
<item>#else</item>
<item>#endif</item>
<item>#endregion</item>
<item>#error</item>
<item>#if</item>
<item>#line</item>
<item>#region</item>
<item>#undef</item>
<item>#warning</item>
<item>#pragma</item>
</list>
<list name="TypeDeclarations">
<item>class</item>
<item>interface</item>
<item>module</item>
<item>struct</item>
<item>type</item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="Comment" context="SingleLineComment" String="//" />
<StringDetect attribute="Comment" context="MultiLineComment" String="/*" />
<DetectChar attribute="String" context="NormalString" char=""" />
<Detect2Chars attribute="String" context="StringInterpolation" char="$" char1=""" />
<Int attribute="Number" context="#stay" />
<Float attribute="Number" context="#stay" />
<keyword attribute="Attribute" context="#stay" String="Attributes" />
<keyword attribute="CompilationUnit" context="#stay" String="CompilationUnits" />
<keyword attribute="DataType" context="#stay" String="DataTypes" />
<keyword attribute="Keyword" context="#stay" String="Keywords" />
<keyword attribute="Preprocessing" context="#stay" String="Preprocessing" />
<keyword attribute="TypeDeclaration" context="#stay" String="TypeDeclarations" />
<DetectChar attribute="Keyword" context="#stay" char="{" beginRegion="Region1" />
<DetectChar attribute="Keyword" context="#stay" char="}" endRegion="Region1" />
<DetectChar attribute="Keyword" context="#stay" char="(" beginRegion="Region2" />
<DetectChar attribute="Keyword" context="#stay" char=")" endRegion="Region2" />
<Detect2Chars attribute="CompilationUnit" context="#stay" char="<" char1="[" beginRegion="Region3" />
<Detect2Chars attribute="CompilationUnit" context="#stay" char="]" char1=">" endRegion="Region3" />
</context>
<context name="SingleLineComment" attribute="Comment" lineEndContext="#pop">
<StringDetect attribute="Comment" String="//" context="#pop" />
</context>
<context name="MultiLineComment" attribute="Comment" lineEndContext="#stay">
<StringDetect attribute="Comment" String="*/" context="#pop" />
</context>
<context name="NormalString" attribute="String" lineEndContext="#stay">
<DetectChar attribute="String" char=""" context="#pop" />
<RegExpr attribute="EscapeSequence" context="#stay" String="\{[0-9]+\}" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1=""" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="t" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="n" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u0008" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000D" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000d" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000A" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000a" />
</context>
<context name="StringInterpolation" attribute="String" lineEndContext="#stay">
<DetectChar attribute="String" char=""" context="#pop" />
<RegExpr attribute="EscapeSequence" context="#stay" String="\{[0-9]+\}" />
<RegExpr attribute="EscapeSequence" context="#stay" String="\$(\S)+\s" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1=""" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="t" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="n" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u0008" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000D" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000d" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000A" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000a" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Number" defStyleNum="dsOthers" color="#00009f" selColor="#0000e9"/>
<itemData name="Attribute" defStyleNum="dsOthers" color="#28712f" selColor="#34923d" />
<itemData name="CompilationUnit" defStyleNum="dsChar" />
<itemData name="DataType" defStyleNum="dsDataType" />
<itemData name="EscapeSequence" defStyleNum="dsBaseN" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Preprocessing" defStyleNum="dsChar" />
<itemData name="TypeDeclaration" defStyleNum="dsOthers" color="#eeb312" selColor="ffc013" bold="1" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//" />
<comment name="multiLine" start="/*" end="*/" />
</comments>
</general>
</language>
|