doxygen.xml 27.5 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
4
    <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)">     <!-- things that end a TagWord -->
5
]>
6
<language name="Doxygen"
7
          version="4"
8
          kateversion="5.0"
9 10 11
          section="Markup"
          extensions="*.dox;*.doxygen"
          mimetype="text/x-doxygen"
12 13
          author="Dominik Haumann (dhaumann@kde.org)"
          license="MIT"
14
          priority="9">
15
  <highlighting>
16
    <!-- NOTE: all tags may begin with a \ or @ char
17
         so if you add/change tags you have to do it twice -->
18 19 20
    <!-- NOTE: Tags @code/@endcode, @dot/@enddot, @vermatim/@endverbatim, @msc/@endmsc, @f[/@f]
         do not present in keywords due separate handle rules...
    -->
21
    <list name="TagOnly">
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
      <item>\arg</item>              <item>@arg</item>
      <item>\author</item>           <item>@author</item>
      <item>\authors</item>          <item>@authors</item>
      <item>\brief</item>            <item>@brief</item>
      <item>\callgraph</item>        <item>@callgraph</item>
      <item>\callergraph</item>      <item>@callergraph</item>
      <item>\date</item>             <item>@date</item>
      <item>\deprecated</item>       <item>@deprecated</item>
      <item>\details</item>          <item>@details</item>
      <item>\docbookonly</item>      <item>@docbookonly</item>
      <item>\else</item>             <item>@else</item>
      <item>\endcond</item>          <item>@endcond</item>
      <item>\enddocbookonly</item>   <item>@enddocbookonly</item>
      <item>\endhtmlonly</item>      <item>@endhtmlonly</item>
      <item>\endif</item>            <item>@endif</item>
      <item>\endinternal</item>      <item>@endinternal</item>
      <item>\endlatexonly</item>     <item>@endlatexonly</item>
      <item>\endlink</item>          <item>@endlink</item>
      <item>\endmanonly</item>       <item>@endmanonly</item>
      <item>\endparblock</item>      <item>@endparblock</item>
      <item>\endrtfonly</item>       <item>@endrtfonly</item>
      <item>\endsecreflist</item>    <item>@endsecreflist</item>
      <item>\endxmlonly</item>       <item>@endxmlonly</item>
      <item>\f[</item>               <item>@f[</item>
      <item>\f]</item>               <item>@f]</item>
      <item>\f$</item>               <item>@f$</item>
48
      <!-- TODO Add @f{environment}{ and @f} -->
49 50
      <item>\hideinitializer</item>  <item>@hideinitializer</item>
      <item>\htmlonly</item>         <item>@htmlonly</item>
51
      <!-- TODO @internal is a candidate to be handled separately, cuz may introduce folding region -->
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
      <item>\internal</item>         <item>@internal</item>
      <item>\invariant</item>        <item>@invariant</item>
      <item>\latexonly</item>        <item>@latexonly</item>
      <item>\li</item>               <item>@li</item>
      <item>\manonly</item>          <item>@manonly</item>
      <item>\n</item>                <item>@n</item>
      <item>\nosubgrouping</item>    <item>@nosubgrouping</item>
      <item>\only</item>             <item>@only</item>
      <item>\parblock</item>         <item>@parblock</item>
      <item>\post</item>             <item>@post</item>
      <item>\pre</item>              <item>@pre</item>
      <item>\private</item>          <item>@pivate</item>
      <item>\privatesection</item>   <item>@pivatesection</item>
      <item>\protected</item>        <item>@protected</item>
      <item>\protectedsection</item> <item>@protectedsection</item>
      <item>\public</item>           <item>@public</item>
      <item>\publicsection</item>    <item>@publicsection</item>
      <item>\pure</item>             <item>@pure</item>
      <item>\remark</item>           <item>@remark</item>
      <item>\remarks</item>          <item>@remarks</item>
      <item>\return</item>           <item>@return</item>
      <item>\returns</item>          <item>@returns</item>
      <item>\result</item>           <item>@result</item>
      <item>\rtfonly</item>          <item>@rtfonly</item>
      <item>\sa</item>               <item>@sa</item>
      <item>\secreflist</item>       <item>@secreflist</item>
      <item>\see</item>              <item>@see</item>
      <item>\short</item>            <item>@short</item>
      <item>\showinitializer</item>  <item>@showinitializer</item>
      <item>\since</item>            <item>@since</item>
      <item>\static</item>           <item>@static</item>
      <item>\tableofcontents</item>  <item>@tableofcontents</item>
      <item>\test</item>             <item>@test</item>
      <item>\version</item>          <item>@version</item>
      <item>\xmlonly</item>          <item>@xmlonly</item>
87
      <!-- TODO Introduce separate context for @~ ? -->
88 89 90 91 92 93 94 95 96 97 98 99 100 101
      <item>\#</item>                <item>@#</item>
      <item>\$</item>                <item>@$</item>
      <item>\%</item>                <item>@%</item>
      <item>\&amp;</item>            <item>@&amp;</item>
      <item>\&gt;</item>             <item>@&gt;</item>
      <item>\&lt;</item>             <item>@&lt;</item>
      <item>\&quot;</item>           <item>@&quot;</item>
      <item>\::</item>               <item>@::</item>
      <item>\@</item>                <item>@@</item>
      <item>\\</item>                <item>@\</item>
      <item>\~</item>                <item>@~</item>
      <item>\.</item>                <item>@.</item>
      <item>\--</item>               <item>@--</item>
      <item>\---</item>              <item>@---</item>
102 103 104
    </list>

    <list name="TagWord">
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
      <item>\a</item>                <item>@a</item>
      <item>\anchor</item>           <item>@anchor</item>
      <item>\b</item>                <item>@b</item>
      <item>\c</item>                <item>@c</item>
      <item>\cite</item>             <item>@cite</item>
      <item>\cond</item>             <item>@cond</item>
      <item>\copybrief</item>        <item>@copybrief</item>
      <item>\copydetails</item>      <item>@copydetails</item>
      <item>\copydoc</item>          <item>@copydoc</item>
      <item>\def</item>              <item>@def</item>
      <item>\dir</item>              <item>@dir</item>
      <item>\dontinclude</item>      <item>@dontinclude</item>
      <item>\e</item>                <item>@e</item>
      <item>\elseif</item>           <item>@elseif</item>
      <item>\em</item>               <item>@em</item>
      <item>\enum</item>             <item>@enum</item>
      <item>\example</item>          <item>@example</item>
      <item>\exception</item>        <item>@exception</item>
      <item>\exceptions</item>       <item>@exceptions</item>
      <item>\extends</item>          <item>@extends</item>
      <item>\file</item>             <item>@file</item>
      <item>\htmlinclude</item>      <item>@htmlinclude</item>
      <item>\idlexcept</item>        <item>@idlexcept</item>
      <item>\if</item>               <item>@if</item>
      <item>\ifnot</item>            <item>@ifnot</item>
      <item>\implements</item>       <item>@implements</item>
      <item>\include</item>          <item>@include</item>
      <item>\includelineno</item>    <item>@includelineno</item>
      <item>\latexinclude</item>     <item>@latexinclude</item>
      <item>\link</item>             <item>@link</item>
      <item>\memberof</item>         <item>@memberof</item>
      <item>\namespace</item>        <item>@namespace</item>
      <item>\p</item>                <item>@p</item>
      <item>\package</item>          <item>@package</item>
      <item>\property</item>         <item>@property</item>
      <item>\relatedalso</item>      <item>@relatedalso</item>
      <item>\relatesalso</item>      <item>@relatesalso</item>
      <item>\related</item>          <item>@related</item>
      <item>\relates</item>          <item>@relates</item>
      <item>\retval</item>           <item>@retval</item>
      <item>\throw</item>            <item>@throw</item>
      <item>\throws</item>           <item>@throws</item>
      <item>\verbinclude</item>      <item>@verbinclude</item>
      <item>\version</item>          <item>@version</item>
149
      <!-- TODO Introduce separate context for @xrefitem? -->
150
      <item>\xrefitem</item>         <item>@xrefitem</item>
151 152
    </list>
    <list name="TagParam">
153
      <item>\param</item>            <item>@param</item>
154
      <!-- TODO @tparam has no optional direction actually! -->
155
      <item>\tparam</item>           <item>@tparam</item>
156
    </list>
157
    <!-- TODO Better (separate?) highlighting for @image required -->
158
    <list name="TagWordWord">
159
      <item>\image</item>            <item>@image</item>
160
    </list>
161 162 163 164
      <!-- TODO @union, @struct, @protocol, @interface, @class, @category
           actually takes 3 params, 1 mandatory and 2 optional
        -->
      <!-- TODO @headerfile actually takes 2 params, where last one is optional -->
165
    <list name="TagWordString">
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
      <item>\addtogroup</item>       <item>@addtogroup</item>
      <item>\category</item>         <item>@category</item>
      <item>\class</item>            <item>@class</item>
      <item>\diafile</item>          <item>@diafile</item>
      <item>\dotfile</item>          <item>@dotfile</item>
      <item>\defgroup</item>         <item>@defgroup</item>
      <item>\interface</item>        <item>@interface</item>
      <item>\headerfile</item>       <item>@headerfile</item>
      <item>\mscfile</item>          <item>@mscfile</item>
      <item>\page</item>             <item>@page</item>
      <item>\paragraph</item>        <item>@paragraph</item>
      <item>\protocol</item>         <item>@prtocol</item>
      <item>\ref</item>              <item>@ref</item>
      <item>\section</item>          <item>@section</item>
      <item>\snippet</item>          <item>@snippet</item>
      <item>\struct</item>           <item>@struct</item>
      <item>\subpage</item>          <item>@subpage</item>
      <item>\subsection</item>       <item>@subsection</item>
      <item>\subsubsection</item>    <item>@subsubsection</item>
      <item>\union</item>            <item>@union</item>
      <item>\weakgroup</item>        <item>@weakgroup</item>
187 188
    </list>
    <list name="TagString">
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
      <item>\addindex</item>         <item>@addindex</item>
      <item>\copyright</item>        <item>@copyright</item>
      <item>\fn</item>               <item>@fn</item>
      <item>\ingroup</item>          <item>@ingroup</item>
      <item>\line</item>             <item>@line</item>
      <item>\mainpage</item>         <item>@mainpage</item>
      <item>\name</item>             <item>@name</item>
      <item>\overload</item>         <item>@overload</item>
      <item>\par</item>              <item>@par</item>
      <item>\skip</item>             <item>@skip</item>
      <item>\skipline</item>         <item>@skipline</item>
      <item>\typedef</item>          <item>@typedef</item>
      <item>\until</item>            <item>@until</item>
      <item>\var</item>              <item>@var</item>
      <item>\vhdlflow</item>         <item>@vhdlflow</item>
204
    </list>
205
    <list name="Note">
206
      <item>\note</item>             <item>@note</item>
207 208
    </list>
    <list name="Warning">
209
      <item>\warning</item>          <item>@warning</item>
210 211
    </list>
    <list name="Attention">
212 213
      <item>\attention</item>        <item>@attention</item>
      <item>\bug</item>              <item>@bug</item>
214 215
    </list>
    <list name="Todo">
216
      <item>\todo</item>             <item>@todo</item>
217 218
    </list>

219
    <contexts>
220 221 222 223 224 225 226 227 228 229 230 231
    <!--
      Different types of recognized command formats:
      (w/ params specified according doxygen manual (http://www.stack.nl/~dimitri/doxygen/commands.html))

      @tag                       : TagOnly
      @tag <word>                : TagWord
      @tag (rest_of_line)        : TagString
      @tag {paragraph}           : TagOnly
      @tag <word> <word>         : TagWordWord
      @tag <word> (rest_of_line) : TagWordString

      TODO Not all commands are handled properly nowadays :( Need few more contexts...
232 233
    -->
      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
234 235 236 237 238 239
        <RegExpr attribute="Comment" context="LineComment" String="//(!|(/(?=[^/]|$)))&lt;?" />
        <RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|[*!]&lt;|\*$)" beginRegion="BlockComment" />
        <RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup" />
        <RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$"   endRegion="MemberGroup" />
        <RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup" />
        <RegExpr attribute="Region" context="#stay" String="/\*\s*@\}\s*\*/"   endRegion="MemberGroup" />
240 241
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="LineComment">
242
        <LineContinue attribute="Comment" context="#stay" />
243 244
        <DetectSpaces />
        <IncludeRules context="##Alerts" />
245
        <IncludeRules context="SL_DetectEnv" />
246 247 248 249 250 251
        <keyword attribute="Tags" context="#stay" String="TagOnly" />
        <keyword attribute="Tags" context="SL_TagWord" String="TagWord" />
        <keyword attribute="Tags" context="SL_TagParam" String="TagParam" />
        <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" />
        <keyword attribute="Tags" context="SL_TagString" String="TagString" />
        <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" />
252
        <RegExpr attribute="Custom Tags" context="#stay" String="[@\\][^@\\ \t]+" />
253 254 255
        <DetectIdentifier />
        <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
        <Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
256
        <RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
257 258 259
      </context>
      <context attribute="Comment" lineEndContext="#stay" name="BlockComment">
        <DetectSpaces />
260
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" />
261
        <IncludeRules context="##Alerts" />
262 263
        <Detect2Chars attribute="Region" context="#stay" char="@" char1="{" beginRegion="Group" />
        <Detect2Chars attribute="Region" context="#stay" char="@" char1="}" endRegion="Group" />
264
        <IncludeRules context="SL_DetectEnv" />
265 266 267 268 269 270
        <keyword attribute="Tags" context="#stay" String="TagOnly" />
        <keyword attribute="Tags" context="ML_TagWord" String="TagWord" />
        <keyword attribute="Tags" context="ML_TagParam" String="TagParam" />
        <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" />
        <keyword attribute="Tags" context="ML_TagString" String="TagString" />
        <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" />
271
        <RegExpr attribute="Custom Tags" context="#stay" String="[@\\]([^@\\ \t\*]|\*(?!/))+" />
272 273 274
        <DetectIdentifier />
        <RegExpr attribute="Tags" context="#stay" String="\\(&lt;|&gt;)" />
        <Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
275
        <RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
276 277 278
        <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
      </context>

279 280 281 282 283 284 285 286
      <!-- NOTE: all contexts beginning with ML_ are for multiline comments
                 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.)
      -->
287 288
      <!-- tag contexts -->
      <context attribute="Comment" lineEndContext="#pop" name="ML_TagWord">
289
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
290 291 292
        <IncludeRules context="SL_TagWord" />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="ML_TagParam">
293
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
294 295 296 297 298 299 300 301
        <DetectSpaces />
        <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" />
        <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" />
        <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" />
        <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord">
302
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
303 304 305 306 307 308
        <DetectSpaces />
        <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>
      <!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" -->
      <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord">
309
        <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true" />
310 311 312 313
        <IncludeRules context="SL_Tag2ndWord" />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="ML_TagString">
        <DetectSpaces />
314
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
315 316
        <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
        <Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
317
        <RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
318 319 320
        <RegExpr attribute="Description" context="#stay" String="." />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString">
321
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
322 323 324 325 326
        <IncludeRules context="SL_TagWordString" />
      </context>

      <!-- html contexts -->
      <context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay">
327
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
328
        <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
329 330
        <DetectChar attribute="HTML Tag" context="#pop" char="&gt;" />
        <RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*" />
331 332
      </context>
      <context name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay">
333
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
334 335 336 337
        <IncludeRules context="##Alerts" />
        <StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
      </context>
      <context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay">
338
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
339 340 341 342 343
        <RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
        <DetectChar attribute="Types" context="ML_types1" char="'" />
        <DetectChar attribute="Types" context="ML_types2" char="&quot;" />
      </context>
      <context name="ML_types1" attribute="Types" lineEndContext="#stay">
344
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
345 346 347
        <DetectChar attribute="Types" context="#pop#pop" char="'" />
      </context>
      <context name="ML_types2" attribute="Types" lineEndContext="#stay">
348
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
349 350 351
        <DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
      </context>

352
      <!-- NOTE: all contexts beginning with SL_ are for singleline comments -->
353 354 355
      <!-- tag contexts -->
      <context attribute="Comment" lineEndContext="#pop" name="SL_TagWord">
        <DetectSpaces />
356
        <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true" />
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
        <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="SL_TagParam">
        <DetectSpaces />
        <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" />
        <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" />
        <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" />
        <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord">
        <DetectSpaces />
        <RegExpr attribute="Word" context="SL_Tag2ndWord" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>
      <!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" -->
      <context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord">
        <DetectSpaces />
        <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="SL_TagString">
        <DetectSpaces />
        <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
        <Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
383
        <RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
384 385 386 387 388 389 390 391 392 393 394
        <RegExpr attribute="Description" context="#stay" String="." />
      </context>
      <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString">
        <DetectSpaces />
        <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
        <RegExpr attribute="Word" context="#stay" String="\S" />
      </context>

      <!-- html contexts -->
      <context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop">
        <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
395 396
        <DetectChar attribute="HTML Tag" context="#pop" char="&gt;" />
        <RegExpr attribute="Identifier" context="SL_identifiers" String="\s*=\s*" />
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413
      </context>
      <context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop">
        <IncludeRules context="##Alerts" />
        <StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
      </context>
      <context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop">
        <RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
        <DetectChar attribute="Types" context="SL_types1" char="'" />
        <DetectChar attribute="Types" context="SL_types2" char="&quot;" />
      </context>
      <context name="SL_types1" attribute="Types" lineEndContext="#pop">
        <DetectChar attribute="Types" context="#pop#pop" char="'" />
      </context>
      <context name="SL_types2" attribute="Types" lineEndContext="#pop">
        <DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
      </context>

414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
      <context attribute="Comment" name="SL_DetectEnv" lineEndContext="#pop">
        <RegExpr attribute="Tags" context="Code" String="[@\\]code\b" beginRegion="Code" />
        <RegExpr attribute="Tags" context="Verbatim" String="[@\\]verbatim\b" beginRegion="Verbatim" />
        <RegExpr attribute="Tags" context="Formula" String="[@\\]f\[" beginRegion="Formula" />
        <RegExpr attribute="Tags" context="Msc" String="[@\\]msc\b" beginRegion="Msc" />
        <RegExpr attribute="Tags" context="Dot" String="[@\\]dot\b" beginRegion="Dot" />
        <keyword attribute="Note" context="#stay" String="Note" />
        <keyword attribute="Warning" context="#stay" String="Warning" />
        <keyword attribute="Attention" context="#stay" String="Attention" />
        <keyword attribute="Todo" context="#stay" String="Todo" />
        <RegExpr attribute="Entities" context="#stay" String="&amp;[A-Za-z]+&#59;" />
      </context>

      <context attribute="Comment" name="SL_DetectComment" lineEndContext="#pop">
        <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
        <DetectChar attribute="Comment" context="#stay" char="*" />
        <StringDetect attribute="Comment" context="#stay" String="///" />
      </context>

      <context attribute="Code" lineEndContext="#stay" name="Code">
        <IncludeRules context="SL_DetectComment" />
        <RegExpr attribute="Tags" context="#pop" String="[@\\]endcode\b" endRegion="Code" />
      </context>

      <context attribute="Verbatim" lineEndContext="#stay" name="Verbatim">
        <IncludeRules context="SL_DetectComment" />
        <RegExpr attribute="Tags" context="#pop" String="[@\\]endverbatim\b" endRegion="Verbatim" />
      </context>

      <context attribute="Formulas" lineEndContext="#stay" name="Formula">
        <IncludeRules context="SL_DetectComment" />
        <RegExpr attribute="Tags" context="#pop" String="[@\\]f\]" endRegion="Formula" />
        <!-- TODO: How to force LaTeX math context here?? -->
        <!-- <IncludeRules context="##LaTeX" /> -->
      </context>

      <context attribute="Message Sequence Chart" lineEndContext="#stay" name="Msc">
        <IncludeRules context="SL_DetectComment" />
        <RegExpr attribute="Tags" context="#pop" String="[@\\]endmsc\b" endRegion="Msc" />
      </context>

      <context attribute="Dot Graph" lineEndContext="#stay" name="Dot">
        <IncludeRules context="SL_DetectComment" />
        <RegExpr attribute="Tags" context="#pop" String="[@\\]enddot\b" endRegion="Dot" />
      </context>

  </contexts>
461
    <itemDatas>
462
      <itemData name="Normal Text"  defStyleNum="dsNormal" />
463 464
      <itemData name="Tags"         defStyleNum="dsAnnotation" bold="1" />
      <itemData name="Custom Tags"  defStyleNum="dsAnnotation" />
465
      <itemData name="Word"         defStyleNum="dsCommentVar" bold="1" italic="0" />
466 467
      <itemData name="HTML Tag"     defStyleNum="dsKeyword" color="#000000" bold="1" italic="0" />
      <itemData name="Entities"     defStyleNum="dsOthers" color="#4086C0" bold="1" italic="1" />
468
      <itemData name="Description"  defStyleNum="dsDocumentation" />
469 470 471 472 473 474 475 476 477 478
      <itemData name="Comment"      defStyleNum="dsComment" />
      <itemData name="Region"       defStyleNum="dsRegionMarker" />
      <itemData name="Identifier"   defStyleNum="dsOthers" />
      <itemData name="HTML Comment" defStyleNum="dsComment" />
      <itemData name="Types"        defStyleNum="dsDataType" />
      <itemData name="Code"         defStyleNum="dsComment" />
      <itemData name="Dot Graph"    defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" />
      <itemData name="Formulas"     defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" />
      <itemData name="Message Sequence Chart" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" />
      <itemData name="Verbatim"     defStyleNum="dsComment" />
479 480 481 482
      <itemData name="Note"         defStyleNum="dsInformation" bold="1" italic="0" />
      <itemData name="Warning"      defStyleNum="dsWarning" bold="1" italic="0" />
      <itemData name="Attention"    defStyleNum="dsAnnotation" bold="1" italic="0" />
      <itemData name="Todo"         defStyleNum="dsAnnotation" bold="1" italic="0" />
483 484 485
    </itemDatas>
  </highlighting>
  <general>
486
    <keywords casesensitive="1" weakDeliminator="\$~" />
487 488
  </general>
</language>
489
<!-- kate: indent-width 2; -->