Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/doxygenlua.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd" | 2 | <!DOCTYPE language SYSTEM "language.dtd" | ||
3 | [ | 3 | [ | ||
4 | <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord --> | 4 | <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord --> | ||
5 | ]> | 5 | ]> | ||
6 | <!-- | 6 | <!-- | ||
7 | Version 1.01 by Bruno Massa | 7 | sed -E ' | ||
8 | 8 | s/<Detect2Chars(.*)char="\*" char1="\/"(.*)/<StringDetect\1String="]%1]" dynamic="true"\2/ | |||
9 | Based on the original Doxygen Highlighter version 1.0 from | 9 | s/<context name="ML_/<context dynamic="true" name="ML_/ | ||
10 | Copyright 2004 Dominik Haumann (dhdev@gmx.de) | 10 | ' doxygen.xml > doxygenlua.xml | ||
11 | Copyright 2007 Matthew Woehlke (mw_triad@users.sourceforge.net) | 11 | | ||
12 | 12 | + edit | |||
13 | ********************************************************************** | 13 | - <language> | ||
14 | * This library is free software; you can redistribute it and/or * | 14 | - "Normal Text" context | ||
15 | * modify it under the terms of the GNU Lesser General Public * | 15 | - grep '\\\*' doxygenlua.xml | ||
16 | * License as published by the Free Software Foundation; either * | | |||
17 | * version 2 of the License, or (at your option) any later version. * | | |||
18 | * * | | |||
19 | * This library is distributed in the hope that it will be useful, * | | |||
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | | |||
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | | |||
22 | * Lesser General Public License for more details. * | | |||
23 | * * | | |||
24 | * You should have received a copy of the GNU Lesser General Public * | | |||
25 | * License along with this library; if not, write to the * | | |||
26 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * | | |||
27 | * Boston, MA 02110-1301, USA. * | | |||
28 | ********************************************************************** | | |||
29 | --> | 16 | --> | ||
30 | <language name="DoxygenLua" version="4" kateversion="5.0" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Bruno Massa (brmassa@gmail.com)" license="LGPLv2+"> | 17 | <language name="DoxygenLua" | ||
18 | version="5" | ||||
19 | kateversion="5.0" | ||||
20 | section="Markup" | ||||
21 | extensions="" | ||||
22 | mimetype="" | ||||
23 | author="Dominik Haumann (dhaumann@kde.org)" | ||||
24 | license="MIT"> | ||||
31 | <highlighting> | 25 | <highlighting> | ||
32 | <!-- note: all tags may begin with a \ or @ char | 26 | <!-- NOTE: all tags may begin with a \ or @ char | ||
33 | so if you add/change tags you have to do it twice --> | 27 | so if you add/change tags you have to do it twice --> | ||
28 | <!-- NOTE: Tags @code/@endcode, @dot/@enddot, @vermatim/@endverbatim, @msc/@endmsc, @f[/@f] | ||||
29 | do not present in keywords due separate handle rules... | ||||
30 | --> | ||||
34 | <list name="TagOnly"> | 31 | <list name="TagOnly"> | ||
35 | <item>\arg</item> | 32 | <item>\arg</item> <item>@arg</item> | ||
36 | <item>\attention</item> | 33 | <item>\author</item> <item>@author</item> | ||
37 | <item>\author</item> | 34 | <item>\authors</item> <item>@authors</item> | ||
38 | <item>\callgraph</item> | 35 | <item>\brief</item> <item>@brief</item> | ||
39 | <item>\code</item> | 36 | <item>\callgraph</item> <item>@callgraph</item> | ||
40 | <item>\dot</item> | 37 | <item>\callergraph</item> <item>@callergraph</item> | ||
41 | <item>\else</item> | 38 | <item>\date</item> <item>@date</item> | ||
42 | <item>\endcode</item> | 39 | <item>\deprecated</item> <item>@deprecated</item> | ||
43 | <item>\endcond</item> | 40 | <item>\details</item> <item>@details</item> | ||
44 | <item>\enddot</item> | 41 | <item>\docbookonly</item> <item>@docbookonly</item> | ||
45 | <item>\endhtmlonly</item> | 42 | <item>\else</item> <item>@else</item> | ||
46 | <item>\endif</item> | 43 | <item>\endcond</item> <item>@endcond</item> | ||
47 | <item>\endlatexonly</item> | 44 | <item>\enddocbookonly</item> <item>@enddocbookonly</item> | ||
48 | <item>\endlink</item> | 45 | <item>\endhtmlonly</item> <item>@endhtmlonly</item> | ||
49 | <item>\endmanonly</item> | 46 | <item>\endif</item> <item>@endif</item> | ||
50 | <item>\endverbatim</item> | 47 | <item>\endinternal</item> <item>@endinternal</item> | ||
51 | <item>\endxmlonly</item> | 48 | <item>\endlatexonly</item> <item>@endlatexonly</item> | ||
52 | <item>\f[</item> | 49 | <item>\endlink</item> <item>@endlink</item> | ||
53 | <item>\f]</item> | 50 | <item>\endmanonly</item> <item>@endmanonly</item> | ||
54 | <item>\f$</item> | 51 | <item>\endparblock</item> <item>@endparblock</item> | ||
55 | <item>\hideinitializer</item> | 52 | <item>\endrtfonly</item> <item>@endrtfonly</item> | ||
56 | <item>\htmlonly</item> | 53 | <item>\endsecreflist</item> <item>@endsecreflist</item> | ||
57 | <item>\interface</item> | 54 | <item>\endxmlonly</item> <item>@endxmlonly</item> | ||
58 | <item>\internal</item> | 55 | <item>\f[</item> <item>@f[</item> | ||
59 | <item>\invariant</item> | 56 | <item>\f]</item> <item>@f]</item> | ||
60 | <item>\~</item> | 57 | <item>\f$</item> <item>@f$</item> | ||
61 | <item>\@</item> | 58 | <!-- TODO Add @f{environment}{ and @f} --> | ||
62 | <item>\$</item> | 59 | <item>\hideinitializer</item> <item>@hideinitializer</item> | ||
63 | <item>\\</item> | 60 | <item>\htmlonly</item> <item>@htmlonly</item> | ||
64 | <item>\#</item> | 61 | <!-- TODO @internal is a candidate to be handled separately, cuz may introduce folding region --> | ||
65 | <item>\latexonly</item> | 62 | <item>\internal</item> <item>@internal</item> | ||
66 | <item>\li</item> | 63 | <item>\invariant</item> <item>@invariant</item> | ||
67 | <item>\manonly</item> | 64 | <item>\latexonly</item> <item>@latexonly</item> | ||
68 | <item>\n</item> | 65 | <item>\li</item> <item>@li</item> | ||
69 | <item>\nosubgrouping</item> | 66 | <item>\manonly</item> <item>@manonly</item> | ||
70 | <item>\note</item> | 67 | <item>\n</item> <item>@n</item> | ||
71 | <item>\only</item> | 68 | <item>\nosubgrouping</item> <item>@nosubgrouping</item> | ||
72 | <item>\post</item> | 69 | <item>\only</item> <item>@only</item> | ||
73 | <item>\pre</item> | 70 | <item>\parblock</item> <item>@parblock</item> | ||
74 | <item>\remarks</item> | 71 | <item>\post</item> <item>@post</item> | ||
75 | <item>\return</item> | 72 | <item>\pre</item> <item>@pre</item> | ||
76 | <item>\returns</item> | 73 | <item>\private</item> <item>@pivate</item> | ||
77 | <item>\sa</item> | 74 | <item>\privatesection</item> <item>@pivatesection</item> | ||
78 | <item>\see</item> | 75 | <item>\protected</item> <item>@protected</item> | ||
79 | <item>\showinitializer</item> | 76 | <item>\protectedsection</item> <item>@protectedsection</item> | ||
80 | <item>\since</item> | 77 | <item>\public</item> <item>@public</item> | ||
81 | <item>\test</item> | 78 | <item>\publicsection</item> <item>@publicsection</item> | ||
82 | <item>\todo</item> | 79 | <item>\pure</item> <item>@pure</item> | ||
83 | <item>\verbatim</item> | 80 | <item>\remark</item> <item>@remark</item> | ||
84 | <item>\warning</item> | 81 | <item>\remarks</item> <item>@remarks</item> | ||
85 | <item>\xmlonly</item> | 82 | <item>\return</item> <item>@return</item> | ||
86 | 83 | <item>\returns</item> <item>@returns</item> | |||
87 | <item>@arg</item> | 84 | <item>\result</item> <item>@result</item> | ||
88 | <item>@attention</item> | 85 | <item>\rtfonly</item> <item>@rtfonly</item> | ||
89 | <item>@author</item> | 86 | <item>\sa</item> <item>@sa</item> | ||
90 | <item>@callgraph</item> | 87 | <item>\secreflist</item> <item>@secreflist</item> | ||
91 | <item>@code</item> | 88 | <item>\see</item> <item>@see</item> | ||
92 | <item>@dot</item> | 89 | <item>\short</item> <item>@short</item> | ||
93 | <item>@else</item> | 90 | <item>\showinitializer</item> <item>@showinitializer</item> | ||
94 | <item>@endcode</item> | 91 | <item>\since</item> <item>@since</item> | ||
95 | <item>@endcond</item> | 92 | <item>\static</item> <item>@static</item> | ||
96 | <item>@enddot</item> | 93 | <item>\tableofcontents</item> <item>@tableofcontents</item> | ||
97 | <item>@endhtmlonly</item> | 94 | <item>\test</item> <item>@test</item> | ||
98 | <item>@endif</item> | 95 | <item>\version</item> <item>@version</item> | ||
99 | <item>@endlatexonly</item> | 96 | <item>\xmlonly</item> <item>@xmlonly</item> | ||
100 | <item>@endlink</item> | 97 | <!-- TODO Introduce separate context for @~ ? --> | ||
101 | <item>@endmanonly</item> | 98 | <item>\#</item> <item>@#</item> | ||
102 | <item>@endverbatim</item> | 99 | <item>\$</item> <item>@$</item> | ||
103 | <item>@endxmlonly</item> | 100 | <item>\%</item> <item>@%</item> | ||
104 | <item>@f[</item> | 101 | <item>\&</item> <item>@&</item> | ||
105 | <item>@f]</item> | 102 | <item>\></item> <item>@></item> | ||
106 | <item>@f$</item> | 103 | <item>\<</item> <item>@<</item> | ||
107 | <item>@hideinitializer</item> | 104 | <item>\"</item> <item>@"</item> | ||
108 | <item>@htmlonly</item> | 105 | <item>\::</item> <item>@::</item> | ||
109 | <item>@interface</item> | 106 | <item>\@</item> <item>@@</item> | ||
110 | <item>@internal</item> | 107 | <item>\\</item> <item>@\</item> | ||
111 | <item>@invariant</item> | 108 | <item>\~</item> <item>@~</item> | ||
112 | <item>@~</item> | 109 | <item>\.</item> <item>@.</item> | ||
113 | <item>@@</item> | 110 | <item>\--</item> <item>@--</item> | ||
114 | <item>@$</item> | 111 | <item>\---</item> <item>@---</item> | ||
115 | <item>@\</item> | | |||
116 | <item>@#</item> | | |||
117 | <item>@latexonly</item> | | |||
118 | <item>@li</item> | | |||
119 | <item>@manonly</item> | | |||
120 | <item>@n</item> | | |||
121 | <item>@nosubgrouping</item> | | |||
122 | <item>@note</item> | | |||
123 | <item>@only</item> | | |||
124 | <item>@post</item> | | |||
125 | <item>@pre</item> | | |||
126 | <item>@remarks</item> | | |||
127 | <item>@return</item> | | |||
128 | <item>@returns</item> | | |||
129 | <item>@sa</item> | | |||
130 | <item>@see</item> | | |||
131 | <item>@showinitializer</item> | | |||
132 | <item>@since</item> | | |||
133 | <item>@test</item> | | |||
134 | <item>@todo</item> | | |||
135 | <item>@verbatim</item> | | |||
136 | <item>@warning</item> | | |||
137 | <item>@xmlonly</item> | | |||
138 | </list> | 112 | </list> | ||
139 | 113 | | |||
140 | <list name="TagWord"> | 114 | <list name="TagWord"> | ||
141 | <item>\addtogroup</item> | 115 | <item>\a</item> <item>@a</item> | ||
142 | <item>\a</item> | 116 | <item>\anchor</item> <item>@anchor</item> | ||
143 | <item>\anchor</item> | 117 | <item>\b</item> <item>@b</item> | ||
144 | <item>\b</item> | 118 | <item>\c</item> <item>@c</item> | ||
145 | <item>\c</item> | 119 | <item>\cite</item> <item>@cite</item> | ||
146 | <item>\class</item> | 120 | <item>\cond</item> <item>@cond</item> | ||
147 | <item>\cond</item> | 121 | <item>\copybrief</item> <item>@copybrief</item> | ||
148 | <item>\copydoc</item> | 122 | <item>\copydetails</item> <item>@copydetails</item> | ||
149 | <item>\def</item> | 123 | <item>\copydoc</item> <item>@copydoc</item> | ||
150 | <item>\dontinclude</item> | 124 | <item>\def</item> <item>@def</item> | ||
151 | <item>\dotfile</item> | 125 | <item>\dir</item> <item>@dir</item> | ||
152 | <item>\e</item> | 126 | <item>\dontinclude</item> <item>@dontinclude</item> | ||
153 | <item>\elseif</item> | 127 | <item>\e</item> <item>@e</item> | ||
154 | <item>\em</item> | 128 | <item>\elseif</item> <item>@elseif</item> | ||
155 | <item>\enum</item> | 129 | <item>\em</item> <item>@em</item> | ||
156 | <item>\example</item> | 130 | <item>\enum</item> <item>@enum</item> | ||
157 | <item>\exception</item> | 131 | <item>\example</item> <item>@example</item> | ||
158 | <item>\exceptions</item> | 132 | <item>\exception</item> <item>@exception</item> | ||
159 | <item>\file</item> | 133 | <item>\exceptions</item> <item>@exceptions</item> | ||
160 | <item>\htmlinclude</item> | 134 | <item>\extends</item> <item>@extends</item> | ||
161 | <item>\if</item> | 135 | <item>\file</item> <item>@file</item> | ||
162 | <item>\ifnot</item> | 136 | <item>\htmlinclude</item> <item>@htmlinclude</item> | ||
163 | <item>\include</item> | 137 | <item>\idlexcept</item> <item>@idlexcept</item> | ||
164 | <item>\link</item> | 138 | <item>\if</item> <item>@if</item> | ||
165 | <item>\namespace</item> | 139 | <item>\ifnot</item> <item>@ifnot</item> | ||
166 | <item>\p</item> | 140 | <item>\implements</item> <item>@implements</item> | ||
167 | <item>\package</item> | 141 | <item>\include</item> <item>@include</item> | ||
168 | <item>\ref</item> | 142 | <item>\includelineno</item> <item>@includelineno</item> | ||
169 | <item>\relatesalso</item> | 143 | <item>\latexinclude</item> <item>@latexinclude</item> | ||
170 | <item>\relates</item> | 144 | <item>\link</item> <item>@link</item> | ||
171 | <item>\retval</item> | 145 | <item>\memberof</item> <item>@memberof</item> | ||
172 | <item>\throw</item> | 146 | <item>\namespace</item> <item>@namespace</item> | ||
173 | <item>\throws</item> | 147 | <item>\p</item> <item>@p</item> | ||
174 | <item>\verbinclude</item> | 148 | <item>\package</item> <item>@package</item> | ||
175 | <item>\version</item> | 149 | <item>\property</item> <item>@property</item> | ||
176 | <item>\xrefitem</item> | 150 | <item>\relatedalso</item> <item>@relatedalso</item> | ||
177 | 151 | <item>\relatesalso</item> <item>@relatesalso</item> | |||
178 | <item>@addtogroup</item> | 152 | <item>\related</item> <item>@related</item> | ||
179 | <item>@a</item> | 153 | <item>\relates</item> <item>@relates</item> | ||
180 | <item>@anchor</item> | 154 | <item>\retval</item> <item>@retval</item> | ||
181 | <item>@b</item> | 155 | <item>\throw</item> <item>@throw</item> | ||
182 | <item>@c</item> | 156 | <item>\throws</item> <item>@throws</item> | ||
183 | <item>@class</item> | 157 | <item>\verbinclude</item> <item>@verbinclude</item> | ||
184 | <item>@cond</item> | 158 | <item>\version</item> <item>@version</item> | ||
185 | <item>@copydoc</item> | 159 | <!-- TODO Introduce separate context for @xrefitem? --> | ||
186 | <item>@def</item> | 160 | <item>\xrefitem</item> <item>@xrefitem</item> | ||
187 | <item>@dontinclude</item> | | |||
188 | <item>@dotfile</item> | | |||
189 | <item>@e</item> | | |||
190 | <item>@elseif</item> | | |||
191 | <item>@em</item> | | |||
192 | <item>@enum</item> | | |||
193 | <item>@example</item> | | |||
194 | <item>@exception</item> | | |||
195 | <item>@exceptions</item> | | |||
196 | <item>@file</item> | | |||
197 | <item>@htmlinclude</item> | | |||
198 | <item>@if</item> | | |||
199 | <item>@ifnot</item> | | |||
200 | <item>@include</item> | | |||
201 | <item>@link</item> | | |||
202 | <item>@namespace</item> | | |||
203 | <item>@p</item> | | |||
204 | <item>@package</item> | | |||
205 | <item>@ref</item> | | |||
206 | <item>@relatesalso</item> | | |||
207 | <item>@relates</item> | | |||
208 | <item>@retval</item> | | |||
209 | <item>@throw</item> | | |||
210 | <item>@throws</item> | | |||
211 | <item>@verbinclude</item> | | |||
212 | <item>@version</item> | | |||
213 | <item>@xrefitem</item> | | |||
214 | </list> | 161 | </list> | ||
215 | <list name="TagParam"> | 162 | <list name="TagParam"> | ||
216 | <item>\param</item> | 163 | <item>\param</item> <item>@param</item> | ||
217 | 164 | <!-- TODO @tparam has no optional direction actually! --> | |||
218 | <item>@param</item> | 165 | <item>\tparam</item> <item>@tparam</item> | ||
219 | </list> | 166 | </list> | ||
167 | <!-- TODO Better (separate?) highlighting for @image required --> | ||||
220 | <list name="TagWordWord"> | 168 | <list name="TagWordWord"> | ||
221 | <item>\image</item> | 169 | <item>\image</item> <item>@image</item> | ||
222 | | ||||
223 | <item>@image</item> | | |||
224 | </list> | 170 | </list> | ||
171 | <!-- TODO @union, @struct, @protocol, @interface, @class, @category | ||||
172 | actually takes 3 params, 1 mandatory and 2 optional | ||||
173 | --> | ||||
174 | <!-- TODO @headerfile actually takes 2 params, where last one is optional --> | ||||
225 | <list name="TagWordString"> | 175 | <list name="TagWordString"> | ||
226 | <item>\defgroup</item> | 176 | <item>\addtogroup</item> <item>@addtogroup</item> | ||
227 | <item>\page</item> | 177 | <item>\category</item> <item>@category</item> | ||
228 | <item>\paragraph</item> | 178 | <item>\class</item> <item>@class</item> | ||
229 | <item>\section</item> | 179 | <item>\diafile</item> <item>@diafile</item> | ||
230 | <item>\struct</item> | 180 | <item>\dotfile</item> <item>@dotfile</item> | ||
231 | <item>\subsection</item> | 181 | <item>\defgroup</item> <item>@defgroup</item> | ||
232 | <item>\subsubsection</item> | 182 | <item>\interface</item> <item>@interface</item> | ||
233 | <item>\union</item> | 183 | <item>\headerfile</item> <item>@headerfile</item> | ||
234 | <item>\weakgroup</item> | 184 | <item>\mscfile</item> <item>@mscfile</item> | ||
235 | 185 | <item>\page</item> <item>@page</item> | |||
236 | <item>@defgroup</item> | 186 | <item>\paragraph</item> <item>@paragraph</item> | ||
237 | <item>@page</item> | 187 | <item>\protocol</item> <item>@prtocol</item> | ||
238 | <item>@paragraph</item> | 188 | <item>\ref</item> <item>@ref</item> | ||
239 | <item>@section</item> | 189 | <item>\section</item> <item>@section</item> | ||
240 | <item>@struct</item> | 190 | <item>\snippet</item> <item>@snippet</item> | ||
241 | <item>@subsection</item> | 191 | <item>\struct</item> <item>@struct</item> | ||
242 | <item>@subsubsection</item> | 192 | <item>\subpage</item> <item>@subpage</item> | ||
243 | <item>@union</item> | 193 | <item>\subsection</item> <item>@subsection</item> | ||
244 | <item>@weakgroup</item> | 194 | <item>\subsubsection</item> <item>@subsubsection</item> | ||
195 | <item>\union</item> <item>@union</item> | ||||
196 | <item>\weakgroup</item> <item>@weakgroup</item> | ||||
245 | </list> | 197 | </list> | ||
246 | <list name="TagString"> | 198 | <list name="TagString"> | ||
247 | <item>\addindex</item> | 199 | <item>\addindex</item> <item>@addindex</item> | ||
248 | <item>\brief</item> | 200 | <item>\copyright</item> <item>@copyright</item> | ||
249 | <item>\bug</item> | 201 | <item>\fn</item> <item>@fn</item> | ||
250 | <item>\date</item> | 202 | <item>\ingroup</item> <item>@ingroup</item> | ||
251 | <item>\deprecated</item> | 203 | <item>\line</item> <item>@line</item> | ||
252 | <item>\fn</item> | 204 | <item>\mainpage</item> <item>@mainpage</item> | ||
253 | <item>\ingroup</item> | 205 | <item>\name</item> <item>@name</item> | ||
254 | <item>\line</item> | 206 | <item>\overload</item> <item>@overload</item> | ||
255 | <item>\mainpage</item> | 207 | <item>\par</item> <item>@par</item> | ||
256 | <item>\name</item> | 208 | <item>\skip</item> <item>@skip</item> | ||
257 | <item>\overload</item> | 209 | <item>\skipline</item> <item>@skipline</item> | ||
258 | <item>\par</item> | 210 | <item>\typedef</item> <item>@typedef</item> | ||
259 | <item>\short</item> | 211 | <item>\until</item> <item>@until</item> | ||
260 | <item>\skip</item> | 212 | <item>\var</item> <item>@var</item> | ||
261 | <item>\skipline</item> | 213 | <item>\vhdlflow</item> <item>@vhdlflow</item> | ||
262 | <item>\typedef</item> | 214 | </list> | ||
263 | <item>\until</item> | 215 | <list name="Note"> | ||
264 | <item>\var</item> | 216 | <item>\note</item> <item>@note</item> | ||
265 | 217 | </list> | |||
266 | <item>@addindex</item> | 218 | <list name="Warning"> | ||
267 | <item>@brief</item> | 219 | <item>\warning</item> <item>@warning</item> | ||
268 | <item>@bug</item> | | |||
269 | <item>@date</item> | | |||
270 | <item>@deprecated</item> | | |||
271 | <item>@fn</item> | | |||
272 | <item>@ingroup</item> | | |||
273 | <item>@line</item> | | |||
274 | <item>@mainpage</item> | | |||
275 | <item>@name</item> | | |||
276 | <item>@overload</item> | | |||
277 | <item>@par</item> | | |||
278 | <item>@short</item> | | |||
279 | <item>@skip</item> | | |||
280 | <item>@skipline</item> | | |||
281 | <item>@typedef</item> | | |||
282 | <item>@until</item> | | |||
283 | <item>@var</item> | | |||
284 | </list> | 220 | </list> | ||
221 | <list name="Attention"> | ||||
222 | <item>\attention</item> <item>@attention</item> | ||||
223 | <item>\bug</item> <item>@bug</item> | ||||
224 | </list> | ||||
225 | <list name="Todo"> | ||||
226 | <item>\todo</item> <item>@todo</item> | ||||
227 | </list> | ||||
228 | | ||||
285 | <contexts> | 229 | <contexts> | ||
286 | <!-- different formats: | 230 | <!-- | ||
231 | Different types of recognized command formats: | ||||
232 | (w/ params specified according doxygen manual (http://www.stack.nl/~dimitri/doxygen/commands.html)) | ||||
233 | | ||||
287 | @tag : TagOnly | 234 | @tag : TagOnly | ||
288 | @tag rest_of_line : TagString | | |||
289 | @tag <word> : TagWord | 235 | @tag <word> : TagWord | ||
236 | @tag (rest_of_line) : TagString | ||||
237 | @tag {paragraph} : TagOnly | ||||
290 | @tag <word> <word> : TagWordWord | 238 | @tag <word> <word> : TagWordWord | ||
291 | @tag <word> rest_of_line : TagWordString | 239 | @tag <word> (rest_of_line) : TagWordString | ||
240 | | ||||
241 | TODO Not all commands are handled properly nowadays :( Need few more contexts... | ||||
292 | --> | 242 | --> | ||
293 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | 243 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | ||
294 | <RegExpr attribute="Comment" context="BlockComment" beginRegion="BlockComment" String="--\[(=*)\[" dynamic="true" /> | 244 | <RegExpr attribute="Region" context="#stay" String="--\s*@\{\s*$" beginRegion="MemberGroup" /> | ||
295 | <StringDetect attribute="Comment" context="LineComment" String="--"/> | 245 | <RegExpr attribute="Region" context="#stay" String="--\s*@\}\s*$" endRegion="MemberGroup" /> | ||
246 | <RegExpr attribute="Comment" context="BlockComment" String="--\[(=*)\[" beginRegion="BlockComment" dynamic="true" /> | ||||
247 | <Detect2Chars attribute="Comment" context="LineComment" char="-" char1="-" /> | ||||
296 | </context> | 248 | </context> | ||
297 | <context attribute="Comment" lineEndContext="#pop" name="LineComment"> | 249 | <context attribute="Comment" lineEndContext="#pop" name="LineComment"> | ||
250 | <LineContinue attribute="Comment" context="#stay" /> | ||||
298 | <DetectSpaces /> | 251 | <DetectSpaces /> | ||
299 | <IncludeRules context="##Alerts" /> | 252 | <IncludeRules context="##Alerts" /> | ||
253 | <IncludeRules context="SL_DetectEnv" /> | ||||
300 | <keyword attribute="Tags" context="#stay" String="TagOnly" /> | 254 | <keyword attribute="Tags" context="#stay" String="TagOnly" /> | ||
301 | <keyword attribute="Tags" context="SL_TagWord" String="TagWord" /> | 255 | <keyword attribute="Tags" context="SL_TagWord" String="TagWord" /> | ||
302 | <keyword attribute="Tags" context="SL_TagParam" String="TagParam" /> | 256 | <keyword attribute="Tags" context="SL_TagParam" String="TagParam" /> | ||
303 | <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" /> | 257 | <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" /> | ||
304 | <keyword attribute="Tags" context="SL_TagString" String="TagString" /> | 258 | <keyword attribute="Tags" context="SL_TagString" String="TagString" /> | ||
305 | <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" /> | 259 | <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" /> | ||
260 | <RegExpr attribute="Custom Tags" context="#stay" String="[@\\][^@\\ \t]+" /> | ||||
306 | <DetectIdentifier /> | 261 | <DetectIdentifier /> | ||
307 | <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> | 262 | <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> | ||
308 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | 263 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | ||
309 | <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> | 264 | <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[-\w0-9._:@]+" /> | ||
310 | </context> | 265 | </context> | ||
311 | <context attribute="Comment" lineEndContext="#stay" name="BlockComment" dynamic="true" > | 266 | <context attribute="Comment" lineEndContext="#stay" name="BlockComment"> | ||
312 | <DetectSpaces /> | 267 | <DetectSpaces /> | ||
313 | <RegExpr attribute="Comment" context="#pop" endRegion="BlockComment" String="\]%1\]" dynamic="true" /> | 268 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" endRegion="BlockComment" /> | ||
314 | <IncludeRules context="##Alerts" /> | 269 | <IncludeRules context="##Alerts" /> | ||
315 | <Detect2Chars attribute="Region" context="#stay" char="@" char1="{" /> | 270 | <Detect2Chars attribute="Region" context="#stay" char="@" char1="{" beginRegion="Group" /> | ||
316 | <Detect2Chars attribute="Region" context="#stay" char="@" char1="}" /> | 271 | <Detect2Chars attribute="Region" context="#stay" char="@" char1="}" endRegion="Group" /> | ||
272 | <IncludeRules context="SL_DetectEnv" /> | ||||
317 | <keyword attribute="Tags" context="#stay" String="TagOnly" /> | 273 | <keyword attribute="Tags" context="#stay" String="TagOnly" /> | ||
318 | <keyword attribute="Tags" context="ML_TagWord" String="TagWord" /> | 274 | <keyword attribute="Tags" context="ML_TagWord" String="TagWord" /> | ||
319 | <keyword attribute="Tags" context="ML_TagParam" String="TagParam" /> | 275 | <keyword attribute="Tags" context="ML_TagParam" String="TagParam" /> | ||
320 | <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" /> | 276 | <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" /> | ||
321 | <keyword attribute="Tags" context="ML_TagString" String="TagString" /> | 277 | <keyword attribute="Tags" context="ML_TagString" String="TagString" /> | ||
322 | <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" /> | 278 | <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" /> | ||
279 | <RegExpr attribute="Custom Tags" context="#stay" String="[@\\]([^@\\ \t])+" /> | ||||
323 | <DetectIdentifier /> | 280 | <DetectIdentifier /> | ||
324 | <RegExpr attribute="Tags" context="#stay" String="\\(<|>)" /> | 281 | <RegExpr attribute="Tags" context="#stay" String="\\(<|>)" /> | ||
325 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | 282 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | ||
326 | <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> | 283 | <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[-\w0-9._:@]+" /> | ||
327 | <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> | 284 | <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> | ||
328 | </context> | 285 | </context> | ||
329 | 286 | | |||
330 | <!-- NOTE: all contexts beginning with ML_ are for multiline comments | 287 | <!-- NOTE: all contexts beginning with ML_ are for multiline comments | ||
331 | The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand! (But use IncludeRules where the rules don't refer to another SL_*/ML_* context, to help maintainability.) | 288 | The following contexts contain a Detect2Chars that looks for a */ sequence | ||
289 | to end multiline comments. Singleline comments do not have this limitation - | ||||
290 | that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. | ||||
291 | <IncludeRules context="acontext"> could be used instead but it would make context switching | ||||
292 | much more complex and very hard to understand! (But use IncludeRules where the rules don't | ||||
293 | refer to another SL_*/ML_* context, to help maintainability.) | ||||
332 | --> | 294 | --> | ||
333 | <!-- tag contexts --> | 295 | <!-- tag contexts --> | ||
334 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagWord"> | 296 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagWord"> | ||
335 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 297 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
336 | <IncludeRules context="SL_TagWord" /> | 298 | <IncludeRules context="SL_TagWord" /> | ||
337 | </context> | 299 | </context> | ||
338 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagParam"> | 300 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagParam"> | ||
339 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 301 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
340 | <DetectSpaces /> | 302 | <DetectSpaces /> | ||
341 | <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" /> | 303 | <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" /> | ||
342 | <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" /> | 304 | <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" /> | ||
343 | <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" /> | 305 | <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" /> | ||
344 | <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> | 306 | <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> | ||
345 | <RegExpr attribute="Word" context="#stay" String="\S" /> | 307 | <RegExpr attribute="Word" context="#stay" String="\S" /> | ||
346 | </context> | 308 | </context> | ||
347 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord"> | 309 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord"> | ||
348 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 310 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
349 | <DetectSpaces /> | 311 | <DetectSpaces /> | ||
350 | <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" /> | 312 | <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" /> | ||
351 | <RegExpr attribute="Word" context="#stay" String="\S" /> | 313 | <RegExpr attribute="Word" context="#stay" String="\S" /> | ||
352 | </context> | 314 | </context> | ||
353 | <!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" --> | 315 | <!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" --> | ||
354 | <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord"> | 316 | <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord"> | ||
355 | <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true"/> | 317 | <StringDetect attribute="Comment" context="#pop#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
356 | <IncludeRules context="SL_Tag2ndWord" /> | 318 | <IncludeRules context="SL_Tag2ndWord" /> | ||
357 | </context> | 319 | </context> | ||
358 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagString"> | 320 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagString"> | ||
359 | <DetectSpaces /> | 321 | <DetectSpaces /> | ||
360 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 322 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
361 | <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> | 323 | <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> | ||
362 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | 324 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | ||
363 | <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> | 325 | <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[-\w0-9._:@]+" /> | ||
364 | <RegExpr attribute="Description" context="#stay" String="." /> | 326 | <RegExpr attribute="Description" context="#stay" String="." /> | ||
365 | </context> | 327 | </context> | ||
366 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString"> | 328 | <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString"> | ||
367 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 329 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
368 | <IncludeRules context="SL_TagWordString" /> | 330 | <IncludeRules context="SL_TagWordString" /> | ||
369 | </context> | 331 | </context> | ||
370 | 332 | | |||
371 | <!-- html contexts --> | 333 | <!-- html contexts --> | ||
372 | <context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay"> | 334 | <context dynamic="true" name="ML_htmltag" attribute="Identifier" lineEndContext="#stay"> | ||
373 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 335 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
374 | <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> | 336 | <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> | ||
375 | <DetectChar attribute="HTML Tag" context="#pop" char=">"/> | 337 | <DetectChar attribute="HTML Tag" context="#pop" char=">" /> | ||
376 | <RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*"/> | 338 | <RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*" /> | ||
377 | </context> | 339 | </context> | ||
378 | <context name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay"> | 340 | <context dynamic="true" name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay"> | ||
379 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 341 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
380 | <IncludeRules context="##Alerts" /> | 342 | <IncludeRules context="##Alerts" /> | ||
381 | <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> | 343 | <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> | ||
382 | </context> | 344 | </context> | ||
383 | <context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay"> | 345 | <context dynamic="true" name="ML_identifiers" attribute="Identifier" lineEndContext="#stay"> | ||
384 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 346 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
385 | <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> | 347 | <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> | ||
386 | <DetectChar attribute="Types" context="ML_types1" char="'" /> | 348 | <DetectChar attribute="Types" context="ML_types1" char="'" /> | ||
387 | <DetectChar attribute="Types" context="ML_types2" char=""" /> | 349 | <DetectChar attribute="Types" context="ML_types2" char=""" /> | ||
388 | </context> | 350 | </context> | ||
389 | <context name="ML_types1" attribute="Types" lineEndContext="#stay"> | 351 | <context dynamic="true" name="ML_types1" attribute="Types" lineEndContext="#stay"> | ||
390 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 352 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
391 | <DetectChar attribute="Types" context="#pop#pop" char="'" /> | 353 | <DetectChar attribute="Types" context="#pop#pop" char="'" /> | ||
392 | </context> | 354 | </context> | ||
393 | <context name="ML_types2" attribute="Types" lineEndContext="#stay"> | 355 | <context dynamic="true" name="ML_types2" attribute="Types" lineEndContext="#stay"> | ||
394 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> | 356 | <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" lookAhead="true" /> | ||
395 | <DetectChar attribute="Types" context="#pop#pop" char=""" /> | 357 | <DetectChar attribute="Types" context="#pop#pop" char=""" /> | ||
396 | </context> | 358 | </context> | ||
397 | 359 | | |||
398 | <!-- NOTE: all contexts beginning with SL_ are for singleline comments --> | 360 | <!-- NOTE: all contexts beginning with SL_ are for singleline comments --> | ||
399 | <!-- tag contexts --> | 361 | <!-- tag contexts --> | ||
400 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagWord"> | 362 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagWord"> | ||
401 | <DetectSpaces /> | 363 | <DetectSpaces /> | ||
402 | <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true"/> | 364 | <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true" /> | ||
403 | <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> | 365 | <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> | ||
404 | <RegExpr attribute="Word" context="#stay" String="\S" /> | 366 | <RegExpr attribute="Word" context="#stay" String="\S" /> | ||
405 | </context> | 367 | </context> | ||
406 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagParam"> | 368 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagParam"> | ||
407 | <DetectSpaces /> | 369 | <DetectSpaces /> | ||
408 | <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" /> | 370 | <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" /> | ||
409 | <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" /> | 371 | <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" /> | ||
410 | <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" /> | 372 | <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" /> | ||
Show All 10 Lines | 382 | <context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord"> | |||
421 | <DetectSpaces /> | 383 | <DetectSpaces /> | ||
422 | <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" /> | 384 | <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" /> | ||
423 | <RegExpr attribute="Word" context="#stay" String="\S" /> | 385 | <RegExpr attribute="Word" context="#stay" String="\S" /> | ||
424 | </context> | 386 | </context> | ||
425 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagString"> | 387 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagString"> | ||
426 | <DetectSpaces /> | 388 | <DetectSpaces /> | ||
427 | <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> | 389 | <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> | ||
428 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | 390 | <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> | ||
429 | <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> | 391 | <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[-\w0-9._:@]+" /> | ||
430 | <RegExpr attribute="Description" context="#stay" String="." /> | 392 | <RegExpr attribute="Description" context="#stay" String="." /> | ||
431 | </context> | 393 | </context> | ||
432 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString"> | 394 | <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString"> | ||
433 | <DetectSpaces /> | 395 | <DetectSpaces /> | ||
434 | <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> | 396 | <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> | ||
435 | <RegExpr attribute="Word" context="#stay" String="\S" /> | 397 | <RegExpr attribute="Word" context="#stay" String="\S" /> | ||
436 | </context> | 398 | </context> | ||
437 | 399 | | |||
438 | <!-- html contexts --> | 400 | <!-- html contexts --> | ||
439 | <context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop"> | 401 | <context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop"> | ||
440 | <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> | 402 | <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> | ||
441 | <DetectChar attribute="HTML Tag" context="#pop" char=">"/> | 403 | <DetectChar attribute="HTML Tag" context="#pop" char=">" /> | ||
442 | <RegExpr attribute="Identifier" context="SL_identifiers" String="\s*=\s*"/> | 404 | <RegExpr attribute="Identifier" context="SL_identifiers" String="\s*=\s*" /> | ||
443 | </context> | 405 | </context> | ||
444 | <context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop"> | 406 | <context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop"> | ||
445 | <IncludeRules context="##Alerts" /> | 407 | <IncludeRules context="##Alerts" /> | ||
446 | <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> | 408 | <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> | ||
447 | </context> | 409 | </context> | ||
448 | <context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop"> | 410 | <context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop"> | ||
449 | <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> | 411 | <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> | ||
450 | <DetectChar attribute="Types" context="SL_types1" char="'" /> | 412 | <DetectChar attribute="Types" context="SL_types1" char="'" /> | ||
451 | <DetectChar attribute="Types" context="SL_types2" char=""" /> | 413 | <DetectChar attribute="Types" context="SL_types2" char=""" /> | ||
452 | </context> | 414 | </context> | ||
453 | <context name="SL_types1" attribute="Types" lineEndContext="#pop"> | 415 | <context name="SL_types1" attribute="Types" lineEndContext="#pop"> | ||
454 | <DetectChar attribute="Types" context="#pop#pop" char="'" /> | 416 | <DetectChar attribute="Types" context="#pop#pop" char="'" /> | ||
455 | </context> | 417 | </context> | ||
456 | <context name="SL_types2" attribute="Types" lineEndContext="#pop"> | 418 | <context name="SL_types2" attribute="Types" lineEndContext="#pop"> | ||
457 | <DetectChar attribute="Types" context="#pop#pop" char=""" /> | 419 | <DetectChar attribute="Types" context="#pop#pop" char=""" /> | ||
458 | </context> | 420 | </context> | ||
459 | 421 | | |||
422 | <context attribute="Comment" name="SL_DetectEnv" lineEndContext="#pop"> | ||||
423 | <RegExpr attribute="Tags" context="Code" String="[@\\]code\b" beginRegion="Code" /> | ||||
424 | <RegExpr attribute="Tags" context="Verbatim" String="[@\\]verbatim\b" beginRegion="Verbatim" /> | ||||
425 | <RegExpr attribute="Tags" context="Formula" String="[@\\]f\[" beginRegion="Formula" /> | ||||
426 | <RegExpr attribute="Tags" context="Msc" String="[@\\]msc\b" beginRegion="Msc" /> | ||||
427 | <RegExpr attribute="Tags" context="Dot" String="[@\\]dot\b" beginRegion="Dot" /> | ||||
428 | <keyword attribute="Note" context="#stay" String="Note" /> | ||||
429 | <keyword attribute="Warning" context="#stay" String="Warning" /> | ||||
430 | <keyword attribute="Attention" context="#stay" String="Attention" /> | ||||
431 | <keyword attribute="Todo" context="#stay" String="Todo" /> | ||||
432 | <RegExpr attribute="Entities" context="#stay" String="&[A-Za-z]+;" /> | ||||
433 | </context> | ||||
434 | | ||||
435 | <context attribute="Comment" name="SL_DetectComment" lineEndContext="#pop"> | ||||
436 | <StringDetect attribute="Comment" context="#pop#pop" String="]%1]" dynamic="true" endRegion="BlockComment" /> | ||||
437 | <DetectChar attribute="Comment" context="#stay" char="*" /> | ||||
438 | <StringDetect attribute="Comment" context="#stay" String="///" /> | ||||
439 | </context> | ||||
440 | | ||||
441 | <context attribute="Code" lineEndContext="#stay" name="Code"> | ||||
442 | <IncludeRules context="SL_DetectComment" /> | ||||
443 | <RegExpr attribute="Tags" context="#pop" String="[@\\]endcode\b" endRegion="Code" /> | ||||
444 | </context> | ||||
445 | | ||||
446 | <context attribute="Verbatim" lineEndContext="#stay" name="Verbatim"> | ||||
447 | <IncludeRules context="SL_DetectComment" /> | ||||
448 | <RegExpr attribute="Tags" context="#pop" String="[@\\]endverbatim\b" endRegion="Verbatim" /> | ||||
449 | </context> | ||||
450 | | ||||
451 | <context attribute="Formulas" lineEndContext="#stay" name="Formula"> | ||||
452 | <IncludeRules context="SL_DetectComment" /> | ||||
453 | <RegExpr attribute="Tags" context="#pop" String="[@\\]f\]" endRegion="Formula" /> | ||||
454 | <!-- TODO: How to force LaTeX math context here?? --> | ||||
455 | <!-- <IncludeRules context="##LaTeX" /> --> | ||||
456 | </context> | ||||
457 | | ||||
458 | <context attribute="Message Sequence Chart" lineEndContext="#stay" name="Msc"> | ||||
459 | <IncludeRules context="SL_DetectComment" /> | ||||
460 | <RegExpr attribute="Tags" context="#pop" String="[@\\]endmsc\b" endRegion="Msc" /> | ||||
461 | </context> | ||||
462 | | ||||
463 | <context attribute="Dot Graph" lineEndContext="#stay" name="Dot"> | ||||
464 | <IncludeRules context="SL_DetectComment" /> | ||||
465 | <RegExpr attribute="Tags" context="#pop" String="[@\\]enddot\b" endRegion="Dot" /> | ||||
466 | </context> | ||||
467 | | ||||
460 | </contexts> | 468 | </contexts> | ||
461 | <itemDatas> | 469 | <itemDatas> | ||
462 | <itemData name="Normal Text" defStyleNum="dsNormal" /> | 470 | <itemData name="Normal Text" defStyleNum="dsNormal" /> | ||
463 | <itemData name="Tags" defStyleNum="dsAnnotation" bold="1" italic="0" /> | 471 | <itemData name="Tags" defStyleNum="dsAnnotation" bold="1" /> | ||
472 | <itemData name="Custom Tags" defStyleNum="dsAnnotation" /> | ||||
464 | <itemData name="Word" defStyleNum="dsCommentVar" bold="1" italic="0" /> | 473 | <itemData name="Word" defStyleNum="dsCommentVar" bold="1" italic="0" /> | ||
465 | <itemData name="HTML Tag" defStyleNum="dsKeyword"/> | 474 | <itemData name="HTML Tag" defStyleNum="dsKeyword" color="#000000" bold="1" italic="0" /> | ||
466 | <itemData name="Description" defStyleNum="dsString" /> | 475 | <itemData name="Entities" defStyleNum="dsOthers" color="#4086C0" bold="1" italic="1" /> | ||
467 | <itemData name="Comment" defStyleNum="dsDocumentation"/> | 476 | <itemData name="Description" defStyleNum="dsDocumentation" /> | ||
477 | <itemData name="Comment" defStyleNum="dsComment" /> | ||||
468 | <itemData name="Region" defStyleNum="dsRegionMarker" /> | 478 | <itemData name="Region" defStyleNum="dsRegionMarker" /> | ||
469 | <itemData name="Identifier" defStyleNum="dsOthers" /> | 479 | <itemData name="Identifier" defStyleNum="dsOthers" /> | ||
470 | <itemData name="HTML Comment" defStyleNum="dsComment" /> | 480 | <itemData name="HTML Comment" defStyleNum="dsComment" /> | ||
471 | <itemData name="Types" defStyleNum="dsDataType" /> | 481 | <itemData name="Types" defStyleNum="dsDataType" /> | ||
482 | <itemData name="Code" defStyleNum="dsComment" /> | ||||
483 | <itemData name="Dot Graph" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> | ||||
484 | <itemData name="Formulas" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> | ||||
485 | <itemData name="Message Sequence Chart" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> | ||||
486 | <itemData name="Verbatim" defStyleNum="dsComment" /> | ||||
487 | <itemData name="Note" defStyleNum="dsInformation" bold="1" italic="0" /> | ||||
488 | <itemData name="Warning" defStyleNum="dsWarning" bold="1" italic="0" /> | ||||
489 | <itemData name="Attention" defStyleNum="dsAnnotation" bold="1" italic="0" /> | ||||
490 | <itemData name="Todo" defStyleNum="dsAnnotation" bold="1" italic="0" /> | ||||
472 | </itemDatas> | 491 | </itemDatas> | ||
473 | </highlighting> | 492 | </highlighting> | ||
474 | <general> | 493 | <general> | ||
475 | <comments> | 494 | <keywords casesensitive="1" weakDeliminator="\$~" /> | ||
476 | <comment name="singleLine" start="--" /> | | |||
477 | <comment name="multiLine" start="--[[" end="]]" /> | | |||
478 | </comments> | | |||
479 | <keywords casesensitive="0" weakDeliminator="\$~" /> | | |||
480 | </general> | 495 | </general> | ||
481 | </language> | 496 | </language> | ||
497 | <!-- kate: indent-width 2; --> |