Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 215 lines (186 sloc) 8.939 kb
7bd486ba » tianyicui
2010-12-09 Added a bunch of XML grammars from Kate
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language SYSTEM "language.dtd">
3
4 <!--
5 Mono Basic syntax
6
7 Created: Davide Bettio <davide.bettio@kdemail.net>
8 Date: 09/09/2005
9 Version: 1.01
10 License: GNU General Public License
11 -->
12
13 <language name="MonoBasic" section="Sources" version="1.01" kateversion="2.3" extensions="*.vb" mimetype="" author="Davide Bettio (davide.bettio@kdemail.net)" license="GPL">
14 <highlighting>
15 <list name="keywords">
16 <item> Option </item>
17 <item> Explicit </item>
18 <item> Strict </item>
19 <item> Imports </item>
20 <item> Inherits </item>
21 <item> As </item>
22 <item> New </item>
23 <item> Dim </item>
24 <item> Redim </item>
25 <item> Private </item>
26 <item> Friend </item>
27 <item> Public </item>
28 <item> Const </item>
29 <item> ReadOnly </item>
30 <item> WriteOnly </item>
31 <item> Default </item>
32 <item> Shared </item>
33 <item> Shadows </item>
34 <item> Protected </item>
35 <item> Overloads </item>
36 <item> Overrides </item>
37 <item> NotOverridable </item>
38 <item> NotInheritable </item>
39 <item> MustInherit </item>
40 <item> MustOverride </item>
41 <item> MyBase </item>
42 <item> MyClass </item>
43 <item> Me </item>
44 <item> Delegate </item>
45 <item> Catch </item>
46 <item> Finaly </item>
47 <item> When </item>
48 <item> Throw </item>
49 <item> To </item>
50 <item> Step </item>
51 <item> Then </item>
52 <item> Else </item>
53 <item> True </item>
54 <item> False </item>
55 <item> Nothing </item>
56 <item> Call </item>
57 <item> ByVal </item>
58 <item> ByRef </item>
59 <item> Optional </item>
60 <item> ParamArray </item>
61 <item> Return </item>
62 <item> Declare </item>
63 <item> WithEvents </item>
64 <item> Event </item>
65 <item> RaiseEvent </item>
66 <item> AddHandler </item>
67 <item> And </item>
68 <item> Or </item>
69 <item> Not </item>
70 <item> Xor </item>
71 <item> AndAlso </item>
72 <item> OrElse </item>
73 <item> Goto </item>
74 <item> On </item>
75 <item> Error </item>
76 <item> Resume </item>
77 </list>
78
79 <list name="types">
80 <item> Boolean </item>
81 <item> Char </item>
82 <item> String </item>
83 <item> Integer </item>
84 <item> Long </item>
85 <item> Double </item>
86 <item> Object </item>
87 <item> Exception </item>
88 <item> Date </item>
89 <item> DateTime </item>
90 <item> Int16 </item>
91 <item> Int32 </item>
92 <item> Int64 </item>
93 <item> ParamArray </item>
94 <item> TimeSpan </item>
95 <item> Byte </item>
96 <item> Decimal </item>
97 <item> IntPtr </item>
98 <item> Single </item>
99 <item> Guid </item>
100 </list>
101
102 <contexts>
103 <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
104 <keyword attribute="Keyword" context="#stay" String="keywords"/>
105 <keyword attribute="Type" context="#stay" String="types"/>
106 <DetectChar attribute="String" context="String" char="&quot;"/>
107 <DetectChar attribute="Comment" context="Comment" char="'" />
108
109 <!-- Namespace -->
110 <RegExpr attribute="Keyword" context="#stay" String="\b(Namespace)([\s]|$)" insensitive="true" beginRegion="Namespace1"/>
111 <RegExpr attribute="Keyword" context="#stay" String="End.Namespace.*$" insensitive="true" endRegion="Namespace1"/>
112
113 <!-- Module -->
114 <RegExpr attribute="Keyword" context="#stay" String="\b(Module)([\s]|$)" insensitive="true" beginRegion="Module1"/>
115 <RegExpr attribute="Keyword" context="#stay" String="End.Module.*$" insensitive="true" endRegion="Module1"/>
116
117 <!-- Class -->
118 <RegExpr attribute="Keyword" context="#stay" String="\b(Class)([\s]|$)" insensitive="true" beginRegion="Class1"/>
119 <RegExpr attribute="Keyword" context="#stay" String="End.Class.*$" insensitive="true" endRegion="Class1"/>
120
121 <!-- Interface -->
122 <RegExpr attribute="Keyword" context="#stay" String="\b(Interface)([\s]|$)" insensitive="true" beginRegion="Interface1"/>
123 <RegExpr attribute="Keyword" context="#stay" String="End.Interface.*$" insensitive="true" endRegion="Interface1"/>
124
125 <!-- Structure -->
126 <RegExpr attribute="Keyword" context="#stay" String="\b(Structure)([\s]|$)" insensitive="true" beginRegion="Structure1"/>
127 <RegExpr attribute="Keyword" context="#stay" String="End.Structure.*$" insensitive="true" endRegion="Structure1"/>
128
129 <!-- Enum -->
130 <RegExpr attribute="Keyword" context="#stay" String="\b(Enum)([\s]|$)" insensitive="true" beginRegion="Enum1"/>
131 <RegExpr attribute="Keyword" context="#stay" String="End.Enum.*$" insensitive="true" endRegion="Enum1"/>
132
133 <!-- Property -->
134 <RegExpr attribute="Keyword" context="#stay" String="\b(Property)([\s]|$)" insensitive="true" beginRegion="Property1"/>
135 <RegExpr attribute="Keyword" context="#stay" String="End.Property.*$" insensitive="true" endRegion="Property1"/>
136
137 <!-- Get -->
138 <RegExpr attribute="Keyword" context="#stay" String="\b(Get)([\s]|$)" insensitive="true" beginRegion="Get1"/>
139 <RegExpr attribute="Keyword" context="#stay" String="End.Get.*$" insensitive="true" endRegion="Get1"/>
140
141 <!-- Set -->
142 <RegExpr attribute="Keyword" context="#stay" String="\b(Set)([\s]|$)" insensitive="true" beginRegion="Set1"/>
143 <RegExpr attribute="Keyword" context="#stay" String="End.Set.*$" insensitive="true" endRegion="Set1"/>
144
145 <!-- Sub -->
146 <RegExpr attribute="Keyword" context="#stay" String="\b(Sub)([.\s]|$)" insensitive="true" beginRegion="Sub1"/>
147 <RegExpr attribute="Keyword" context="#stay" String="End.Sub.*$" insensitive="true" endRegion="Sub1"/>
148 <RegExpr attribute="Keyword" context="#stay" String="Exit.Sub.*$" insensitive="true"/>
149
150 <!-- Function -->
151 <RegExpr attribute="Keyword" context="#stay" String="\b(Function)([\s]|$)" insensitive="true" beginRegion="Function1"/>
152 <RegExpr attribute="Keyword" context="#stay" String="End.Function.*$" insensitive="true" endRegion="Function1"/>
153 <RegExpr attribute="Keyword" context="#stay" String="Exit.Function.*$" insensitive="true"/>
154
155 <!-- Try -->
156 <RegExpr attribute="Keyword" context="#stay" String="\b(Try)([\s]|$)" insensitive="true" beginRegion="Try1"/>
157 <RegExpr attribute="Keyword" context="#stay" String="End.Try.*$" insensitive="true" endRegion="Try1"/>
158
159 <!-- If -->
160 <RegExpr attribute="Keyword" context="#stay" String="\b(If)([\s]|$)" insensitive="true" beginRegion="If1"/>
161 <RegExpr attribute="Keyword" context="#stay" String="End.If.*$" insensitive="true" endRegion="If1"/>
162
163 <!-- Select case -->
164 <RegExpr attribute="Keyword" context="#stay" String="Select.Case.*$" insensitive="true" beginRegion="SelectCase1"/>
165 <RegExpr attribute="Keyword" context="#stay" String="End.Select.*$" insensitive="true" endRegion="SelectCase1"/>
166
167 <!-- For -->
168 <RegExpr attribute="Keyword" context="#stay" String="\b(For)([\s]|$)" insensitive="true" beginRegion="For1"/>
169 <RegExpr attribute="Keyword" context="#stay" String="\b(Next)([\s]|$)" insensitive="true" endRegion="For1"/>
170
171 <!-- Do Loop -->
172 <RegExpr attribute="Keyword" context="#stay" String="\b(Do)([\s]|$)" insensitive="true" beginRegion="DoLoop1"/>
173 <RegExpr attribute="Keyword" context="#stay" String="\b(Loop)([\s]|$)" insensitive="true" endRegion="DoLoop1"/>
174
175 <!-- While -->
176 <RegExpr attribute="Keyword" context="#stay" String="\b(While)([\s]|$)" insensitive="true" beginRegion="While1"/>
177 <RegExpr attribute="Keyword" context="#stay" String="End.While.*$" insensitive="true" endRegion="While1"/>
178 <RegExpr attribute="Keyword" context="#stay" String="Exit.While.*$" insensitive="true"/>
179
180 <!-- #Region -->
181 <RegExpr attribute="Preprocessor" context="#stay" String="#Region.*$" insensitive="true" beginRegion="Region1"/>
182 <RegExpr attribute="Preprocessor" context="#stay" String="#End.Region.*$" insensitive="true" endRegion="Region1"/>
183
184 <!-- #If -->
185 <RegExpr attribute="Preprocessor" context="#stay" String="#If.*$" insensitive="true" beginRegion="PreprocessorIf1"/>
186 <RegExpr attribute="Preprocessor" context="#stay" String="#End.If.*$" insensitive="true" endRegion="PreprocessorIf1"/>
187 </context>
188
189 <context attribute="String" lineEndContext="#pop" name="String">
190 <LineContinue attribute="String" context="#pop"/>
191 <HlCStringChar attribute="String Char" context="#stay"/>
192 <DetectChar attribute="String" context="#pop" char="&quot;"/>
193 </context>
194
195 <context name="Comment" attribute="Comment" lineEndContext="#pop"/>
196 </contexts>
197
198 <itemDatas>
199 <itemData name="Normal Text" defStyleNum="dsNormal"/>
200 <itemData name="Keyword" defStyleNum="dsKeyword" color="#000080" bold="0"/>
201 <itemData name="Type" defStyleNum="dsDataType" color="#000080" bold="0"/>
202 <itemData name="String" defStyleNum="dsString" color="#800000"/>
203 <itemData name="Preprocessor" defStyleNum="dsOthers" color="#008000"/>
204 <itemData name="Comment" defStyleNum="dsComment" color="#008000"/>
205 </itemDatas>
206
207 </highlighting>
208
209 <general>
210 <keywords casesensitive="0"/>
211 <comments>
212 <comment name="singleLine" start="'"/>
213 </comments>
214 </general>
215 </language>
Something went wrong with that request. Please try again.