| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language |
| 3 |
[ |
| 4 |
<!ENTITY wordsep "(?:[][,?;()]|\.$|\.?\s|$)"> <!-- things that end a TagWord --> |
| 5 |
<!ENTITY sl_word ".*?(?=&wordsep;)"> |
| 6 |
<!ENTITY ml_word ".*?(?=&wordsep;|\*/)"> |
| 7 |
]> |
| 8 |
<language name="Doxygen" |
| 9 |
version="15" |
| 10 |
kateversion="5.0" |
| 11 |
section="Markup" |
| 12 |
extensions="*.dox;*.doxygen" |
| 13 |
mimetype="text/x-doxygen" |
| 14 |
author="Dominik Haumann ([email protected])" |
| 15 |
license="MIT" |
| 16 |
priority="9"> |
| 17 |
<highlighting> |
| 18 |
<!-- NOTE: all tags may begin with a \ or @ char |
| 19 |
so if you add/change tags you have to do it twice --> |
| 20 |
<!-- NOTE: Tags @code/@endcode, @dot/@enddot, @vermatim/@endverbatim, @msc/@endmsc, @f[/@f] |
| 21 |
do not present in keywords due separate handle rules... |
| 22 |
--> |
| 23 |
<list name="TagOnly"> |
| 24 |
<item>\arg</item> <item>@arg</item> |
| 25 |
<item>\author</item> <item>@author</item> |
| 26 |
<item>\authors</item> <item>@authors</item> |
| 27 |
<item>\brief</item> <item>@brief</item> |
| 28 |
<item>\callgraph</item> <item>@callgraph</item> |
| 29 |
<item>\callergraph</item> <item>@callergraph</item> |
| 30 |
<item>\date</item> <item>@date</item> |
| 31 |
<item>\deprecated</item> <item>@deprecated</item> |
| 32 |
<item>\details</item> <item>@details</item> |
| 33 |
<item>\docbookonly</item> <item>@docbookonly</item> |
| 34 |
<item>\else</item> <item>@else</item> |
| 35 |
<item>\endcond</item> <item>@endcond</item> |
| 36 |
<item>\enddocbookonly</item> <item>@enddocbookonly</item> |
| 37 |
<item>\endhtmlonly</item> <item>@endhtmlonly</item> |
| 38 |
<item>\endif</item> <item>@endif</item> |
| 39 |
<item>\endinternal</item> <item>@endinternal</item> |
| 40 |
<item>\endlatexonly</item> <item>@endlatexonly</item> |
| 41 |
<item>\endlink</item> <item>@endlink</item> |
| 42 |
<item>\endmanonly</item> <item>@endmanonly</item> |
| 43 |
<item>\endparblock</item> <item>@endparblock</item> |
| 44 |
<item>\endrtfonly</item> <item>@endrtfonly</item> |
| 45 |
<item>\endsecreflist</item> <item>@endsecreflist</item> |
| 46 |
<item>\endxmlonly</item> <item>@endxmlonly</item> |
| 47 |
<item>\hideinitializer</item> <item>@hideinitializer</item> |
| 48 |
<item>\htmlonly</item> <item>@htmlonly</item> |
| 49 |
<!-- TODO @internal is a candidate to be handled separately, cuz may introduce folding region --> |
| 50 |
<item>\internal</item> <item>@internal</item> |
| 51 |
<item>\invariant</item> <item>@invariant</item> |
| 52 |
<item>\latexonly</item> <item>@latexonly</item> |
| 53 |
<item>\li</item> <item>@li</item> |
| 54 |
<item>\manonly</item> <item>@manonly</item> |
| 55 |
<item>\n</item> <item>@n</item> |
| 56 |
<item>\nosubgrouping</item> <item>@nosubgrouping</item> |
| 57 |
<item>\only</item> <item>@only</item> |
| 58 |
<item>\parblock</item> <item>@parblock</item> |
| 59 |
<item>\post</item> <item>@post</item> |
| 60 |
<item>\pre</item> <item>@pre</item> |
| 61 |
<item>\private</item> <item>@pivate</item> |
| 62 |
<item>\privatesection</item> <item>@pivatesection</item> |
| 63 |
<item>\protected</item> <item>@protected</item> |
| 64 |
<item>\protectedsection</item> <item>@protectedsection</item> |
| 65 |
<item>\public</item> <item>@public</item> |
| 66 |
<item>\publicsection</item> <item>@publicsection</item> |
| 67 |
<item>\pure</item> <item>@pure</item> |
| 68 |
<item>\remark</item> <item>@remark</item> |
| 69 |
<item>\remarks</item> <item>@remarks</item> |
| 70 |
<item>\return</item> <item>@return</item> |
| 71 |
<item>\returns</item> <item>@returns</item> |
| 72 |
<item>\result</item> <item>@result</item> |
| 73 |
<item>\rtfonly</item> <item>@rtfonly</item> |
| 74 |
<item>\sa</item> <item>@sa</item> |
| 75 |
<item>\secreflist</item> <item>@secreflist</item> |
| 76 |
<item>\see</item> <item>@see</item> |
| 77 |
<item>\short</item> <item>@short</item> |
| 78 |
<item>\showinitializer</item> <item>@showinitializer</item> |
| 79 |
<item>\since</item> <item>@since</item> |
| 80 |
<item>\static</item> <item>@static</item> |
| 81 |
<item>\tableofcontents</item> <item>@tableofcontents</item> |
| 82 |
<item>\test</item> <item>@test</item> |
| 83 |
<item>\version</item> <item>@version</item> |
| 84 |
<item>\xmlonly</item> <item>@xmlonly</item> |
| 85 |
</list> |
| 86 |
|
| 87 |
<list name="TagWord"> |
| 88 |
<item>\a</item> <item>@a</item> |
| 89 |
<item>\anchor</item> <item>@anchor</item> |
| 90 |
<item>\b</item> <item>@b</item> |
| 91 |
<item>\c</item> <item>@c</item> |
| 92 |
<item>\cite</item> <item>@cite</item> |
| 93 |
<item>\cond</item> <item>@cond</item> |
| 94 |
<item>\copybrief</item> <item>@copybrief</item> |
| 95 |
<item>\copydetails</item> <item>@copydetails</item> |
| 96 |
<item>\copydoc</item> <item>@copydoc</item> |
| 97 |
<item>\def</item> <item>@def</item> |
| 98 |
<item>\dir</item> <item>@dir</item> |
| 99 |
<item>\dontinclude</item> <item>@dontinclude</item> |
| 100 |
<item>\e</item> <item>@e</item> |
| 101 |
<item>\elseif</item> <item>@elseif</item> |
| 102 |
<item>\em</item> <item>@em</item> |
| 103 |
<item>\enum</item> <item>@enum</item> |
| 104 |
<item>\example</item> <item>@example</item> |
| 105 |
<item>\exception</item> <item>@exception</item> |
| 106 |
<item>\exceptions</item> <item>@exceptions</item> |
| 107 |
<item>\extends</item> <item>@extends</item> |
| 108 |
<item>\file</item> <item>@file</item> |
| 109 |
<item>\htmlinclude</item> <item>@htmlinclude</item> |
| 110 |
<item>\idlexcept</item> <item>@idlexcept</item> |
| 111 |
<item>\if</item> <item>@if</item> |
| 112 |
<item>\ifnot</item> <item>@ifnot</item> |
| 113 |
<item>\implements</item> <item>@implements</item> |
| 114 |
<item>\include</item> <item>@include</item> |
| 115 |
<item>\includelineno</item> <item>@includelineno</item> |
| 116 |
<item>\latexinclude</item> <item>@latexinclude</item> |
| 117 |
<item>\link</item> <item>@link</item> |
| 118 |
<item>\memberof</item> <item>@memberof</item> |
| 119 |
<item>\namespace</item> <item>@namespace</item> |
| 120 |
<item>\p</item> <item>@p</item> |
| 121 |
<item>\package</item> <item>@package</item> |
| 122 |
<item>\property</item> <item>@property</item> |
| 123 |
<item>\relatedalso</item> <item>@relatedalso</item> |
| 124 |
<item>\relatesalso</item> <item>@relatesalso</item> |
| 125 |
<item>\related</item> <item>@related</item> |
| 126 |
<item>\relates</item> <item>@relates</item> |
| 127 |
<item>\retval</item> <item>@retval</item> |
| 128 |
<item>\throw</item> <item>@throw</item> |
| 129 |
<item>\throws</item> <item>@throws</item> |
| 130 |
<item>\verbinclude</item> <item>@verbinclude</item> |
| 131 |
<item>\version</item> <item>@version</item> |
| 132 |
<!-- TODO Introduce separate context for @xrefitem? --> |
| 133 |
<item>\xrefitem</item> <item>@xrefitem</item> |
| 134 |
</list> |
| 135 |
<list name="TagParam"> |
| 136 |
<item>\param</item> <item>@param</item> |
| 137 |
<!-- TODO @tparam has no optional direction actually! --> |
| 138 |
<item>\tparam</item> <item>@tparam</item> |
| 139 |
</list> |
| 140 |
<!-- TODO Better (separate?) highlighting for @image required --> |
| 141 |
<list name="TagWordWord"> |
| 142 |
<item>\image</item> <item>@image</item> |
| 143 |
</list> |
| 144 |
<!-- TODO @union, @struct, @protocol, @interface, @class, @category |
| 145 |
actually takes 3 params, 1 mandatory and 2 optional |
| 146 |
--> |
| 147 |
<!-- TODO @headerfile actually takes 2 params, where last one is optional --> |
| 148 |
<list name="TagWordString"> |
| 149 |
<item>\addtogroup</item> <item>@addtogroup</item> |
| 150 |
<item>\category</item> <item>@category</item> |
| 151 |
<item>\class</item> <item>@class</item> |
| 152 |
<item>\diafile</item> <item>@diafile</item> |
| 153 |
<item>\dotfile</item> <item>@dotfile</item> |
| 154 |
<item>\defgroup</item> <item>@defgroup</item> |
| 155 |
<item>\interface</item> <item>@interface</item> |
| 156 |
<item>\headerfile</item> <item>@headerfile</item> |
| 157 |
<item>\mscfile</item> <item>@mscfile</item> |
| 158 |
<item>\page</item> <item>@page</item> |
| 159 |
<item>\paragraph</item> <item>@paragraph</item> |
| 160 |
<item>\protocol</item> <item>@prtocol</item> |
| 161 |
<item>\ref</item> <item>@ref</item> |
| 162 |
<item>\section</item> <item>@section</item> |
| 163 |
<item>\snippet</item> <item>@snippet</item> |
| 164 |
<item>\struct</item> <item>@struct</item> |
| 165 |
<item>\subpage</item> <item>@subpage</item> |
| 166 |
<item>\subsection</item> <item>@subsection</item> |
| 167 |
<item>\subsubsection</item> <item>@subsubsection</item> |
| 168 |
<item>\union</item> <item>@union</item> |
| 169 |
<item>\weakgroup</item> <item>@weakgroup</item> |
| 170 |
</list> |
| 171 |
<list name="TagString"> |
| 172 |
<item>\addindex</item> <item>@addindex</item> |
| 173 |
<item>\copyright</item> <item>@copyright</item> |
| 174 |
<item>\fn</item> <item>@fn</item> |
| 175 |
<item>\ingroup</item> <item>@ingroup</item> |
| 176 |
<item>\line</item> <item>@line</item> |
| 177 |
<item>\mainpage</item> <item>@mainpage</item> |
| 178 |
<item>\name</item> <item>@name</item> |
| 179 |
<item>\overload</item> <item>@overload</item> |
| 180 |
<item>\par</item> <item>@par</item> |
| 181 |
<item>\skip</item> <item>@skip</item> |
| 182 |
<item>\skipline</item> <item>@skipline</item> |
| 183 |
<item>\typedef</item> <item>@typedef</item> |
| 184 |
<item>\until</item> <item>@until</item> |
| 185 |
<item>\var</item> <item>@var</item> |
| 186 |
<item>\vhdlflow</item> <item>@vhdlflow</item> |
| 187 |
</list> |
| 188 |
<list name="TagEnd"> |
| 189 |
<item>\endcode</item> <item>@endcode</item> |
| 190 |
<item>\endverbatim</item> <item>@endverbatim</item> |
| 191 |
<item>\endmsc</item> <item>@endmsc</item> |
| 192 |
<item>\enddot</item> <item>@enddot</item> |
| 193 |
</list> |
| 194 |
<list name="Note"> |
| 195 |
<item>\note</item> <item>@note</item> |
| 196 |
</list> |
| 197 |
<list name="Warning"> |
| 198 |
<item>\warning</item> <item>@warning</item> |
| 199 |
</list> |
| 200 |
<list name="Attention"> |
| 201 |
<item>\attention</item> <item>@attention</item> |
| 202 |
<item>\bug</item> <item>@bug</item> |
| 203 |
</list> |
| 204 |
<list name="Todo"> |
| 205 |
<item>\todo</item> <item>@todo</item> |
| 206 |
</list> |
| 207 |
|
| 208 |
<contexts> |
| 209 |
<!-- |
| 210 |
Different types of recognized command formats: |
| 211 |
(w/ params specified according doxygen manual (http://www.stack.nl/~dimitri/doxygen/commands.html)) |
| 212 |
|
| 213 |
@tag : TagOnly |
| 214 |
@tag <word> : TagWord |
| 215 |
@tag (rest_of_line) : TagString |
| 216 |
@tag {paragraph} : TagOnly |
| 217 |
@tag <word> <word> : TagWordWord |
| 218 |
@tag <word> (rest_of_line) : TagWordString |
| 219 |
|
| 220 |
TODO Not all commands are handled properly nowadays :( Need few more contexts... |
| 221 |
--> |
| 222 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal"> |
| 223 |
<RegExpr attribute="Comment" context="LineComment" String="//(?:!|(?:/(?=[^/]|$)))<?" /> |
| 224 |
<RegExpr attribute="Comment" context="BlockComment" String="/\*(?:\*[^*/]|!|[*!]<|\*$)" beginRegion="BlockComment" /> |
| 225 |
<RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup" /> |
| 226 |
<RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$" endRegion="MemberGroup" /> |
| 227 |
<RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup" /> |
| 228 |
<RegExpr attribute="Region" context="#stay" String="/\*\s*@\}\s*\*/" endRegion="MemberGroup" /> |
| 229 |
</context> |
| 230 |
<context attribute="Comment" lineEndContext="#pop" name="LineComment"> |
| 231 |
<LineContinue attribute="Comment" context="#stay" /> |
| 232 |
<DetectSpaces /> |
| 233 |
<IncludeRules context="##Comments" /> |
| 234 |
<DetectIdentifier /> |
| 235 |
<AnyChar attribute="Comment" context="SL_StartTag" String="\@" lookAhead="true" /> |
| 236 |
<DetectChar attribute="Comment" context="SL_StartHTMLTag" char="<" lookAhead="true" /> |
| 237 |
<DetectChar attribute="Comment" context="Entities" char="&" lookAhead="true" /> |
| 238 |
</context> |
| 239 |
<context attribute="Comment" lineEndContext="#stay" name="BlockComment"> |
| 240 |
<DetectSpaces /> |
| 241 |
<IncludeRules context="##Comments" /> |
| 242 |
<DetectIdentifier /> |
| 243 |
<AnyChar attribute="Comment" context="ML_StartTag" String="\@" lookAhead="true" /> |
| 244 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 245 |
<DetectChar attribute="Comment" context="ML_StartHTMLTag" char="<" lookAhead="true" /> |
| 246 |
<DetectChar attribute="Comment" context="Entities" char="&" lookAhead="true" /> |
| 247 |
</context> |
| 248 |
|
| 249 |
<!-- NOTE: all contexts beginning with ML_ are for multiline comments |
| 250 |
The following contexts contain a Detect2Chars that looks for a */ sequence |
| 251 |
to end multiline comments. Singleline comments do not have this limitation - |
| 252 |
that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. |
| 253 |
<IncludeRules context="acontext"> could be used instead but it would make context switching |
| 254 |
much more complex and very hard to understand! (But use IncludeRules where the rules don't |
| 255 |
refer to another SL_*/ML_* context, to help maintainability.) |
| 256 |
--> |
| 257 |
<context attribute="Comment" lineEndContext="#pop" name="ML_StartTag"> |
| 258 |
<keyword attribute="Tags" context="#pop!ML_TagWord" String="TagWord" /> |
| 259 |
<keyword attribute="Tags" context="#pop!ML_TagParam" String="TagParam" /> |
| 260 |
<keyword attribute="Tags" context="#pop!ML_TagWordWord" String="TagWordWord" /> |
| 261 |
<keyword attribute="Tags" context="#pop!ML_TagString" String="TagString" /> |
| 262 |
<keyword attribute="Tags" context="#pop!ML_TagWordString" String="TagWordString" /> |
| 263 |
<WordDetect attribute="Tags" context="#pop!ML_Code" String="\code" beginRegion="VerbatimBlock" /> |
| 264 |
<WordDetect attribute="Tags" context="#pop!ML_Code" String="@code" beginRegion="VerbatimBlock" /> |
| 265 |
<WordDetect attribute="Tags" context="#pop!ML_Verbatim" String="\verbatim" beginRegion="VerbatimBlock" /> |
| 266 |
<WordDetect attribute="Tags" context="#pop!ML_Verbatim" String="@verbatim" beginRegion="VerbatimBlock" /> |
| 267 |
<WordDetect attribute="Tags" context="#pop!ML_Formula" String="\f[" beginRegion="VerbatimBlock" /> |
| 268 |
<WordDetect attribute="Tags" context="#pop!ML_Formula" String="@f[" beginRegion="VerbatimBlock" /> |
| 269 |
<StringDetect attribute="Tags" context="#pop!ML_FormulaShort" String="\f$" beginRegion="VerbatimBlock" /> |
| 270 |
<StringDetect attribute="Tags" context="#pop!ML_FormulaShort" String="@f$" beginRegion="VerbatimBlock" /> |
| 271 |
<StringDetect attribute="Tags" context="#pop!ML_FormulaEnv" String="\f{" beginRegion="VerbatimBlock" /> |
| 272 |
<StringDetect attribute="Tags" context="#pop!ML_FormulaEnv" String="@f{" beginRegion="VerbatimBlock" /> |
| 273 |
<WordDetect attribute="Tags" context="#pop!ML_Msc" String="\msc" beginRegion="VerbatimBlock" /> |
| 274 |
<WordDetect attribute="Tags" context="#pop!ML_Msc" String="@msc" beginRegion="VerbatimBlock" /> |
| 275 |
<WordDetect attribute="Tags" context="#pop!ML_Dot" String="\dot" beginRegion="VerbatimBlock" /> |
| 276 |
<WordDetect attribute="Tags" context="#pop!ML_Dot" String="@dot" beginRegion="VerbatimBlock" /> |
| 277 |
<IncludeRules context="Inc_OtherTag" /> |
| 278 |
</context> |
| 279 |
<context attribute="Comment" lineEndContext="#pop" name="ML_StartHTMLTag"> |
| 280 |
<Detect2Chars attribute="Comment" context="#pop" char="<" char1="<" /> |
| 281 |
<RegExpr attribute="HTML Tag" context="#pop!ML_htmltag" String="<\/?[-\w0-9._:@]+" /> |
| 282 |
<StringDetect attribute="HTML Comment" context="#pop!ML_htmlcomment" String="<!--" /> |
| 283 |
<DetectChar attribute="Comment" context="#pop" char="<" /> |
| 284 |
</context> |
| 285 |
|
| 286 |
<!-- tag contexts --> |
| 287 |
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWord"> |
| 288 |
<DetectSpaces /> |
| 289 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 290 |
<keyword attribute="Tags" context="#pop!ML_TagWord" String="TagWord" /> |
| 291 |
<IncludeRules context="ML_Inc_Word" /> |
| 292 |
</context> |
| 293 |
<context attribute="Comment" lineEndContext="#pop" name="ML_TagParam"> |
| 294 |
<DetectSpaces /> |
| 295 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 296 |
<StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[in]" /> |
| 297 |
<StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[out]" /> |
| 298 |
<StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[in,out]" /> |
| 299 |
<IncludeRules context="ML_Inc_Word" /> |
| 300 |
</context> |
| 301 |
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord"> |
| 302 |
<DetectSpaces /> |
| 303 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 304 |
<RegExpr attribute="Word" context="#pop!ML_TagWord" String="&ml_word;" /> |
| 305 |
</context> |
| 306 |
<context attribute="Comment" lineEndContext="#pop" name="ML_TagString"> |
| 307 |
<DetectSpaces /> |
| 308 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 309 |
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> |
| 310 |
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> |
| 311 |
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[-\w0-9._:@]+" /> |
| 312 |
<RegExpr attribute="Description" context="#stay" String="[<*]?[^<*\s]+" /> |
| 313 |
</context> |
| 314 |
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString"> |
| 315 |
<DetectSpaces /> |
| 316 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 317 |
<IncludeRules context="ML_Inc_Word" /> |
| 318 |
</context> |
| 319 |
|
| 320 |
<context name="ML_Inc_Word" attribute="Word" lineEndContext="#pop"> |
| 321 |
<RegExpr attribute="Word" context="#pop" String="&ml_word;" /> |
| 322 |
</context> |
| 323 |
|
| 324 |
|
| 325 |
<!-- html contexts --> |
| 326 |
<context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay"> |
| 327 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 328 |
<Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> |
| 329 |
<DetectChar attribute="HTML Tag" context="#pop" char=">" /> |
| 330 |
<DetectSpaces /> |
| 331 |
<DetectChar attribute="Identifier" context="ML_identifiers" char="=" /> |
| 332 |
</context> |
| 333 |
<context name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay"> |
| 334 |
<DetectSpaces /> |
| 335 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 336 |
<IncludeRules context="##Comments" /> |
| 337 |
<DetectIdentifier /> |
| 338 |
<StringDetect attribute="HTML Comment" context="#pop" String="-->" /> |
| 339 |
</context> |
| 340 |
<context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay"> |
| 341 |
<DetectSpaces /> |
| 342 |
<Detect2Chars attribute="Comment" context="#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 343 |
<DetectChar attribute="Types" context="ML_types1" char="'" /> |
| 344 |
<DetectChar attribute="Types" context="ML_types2" char=""" /> |
| 345 |
</context> |
| 346 |
<context name="ML_types1" attribute="Types" lineEndContext="#stay"> |
| 347 |
<Detect2Chars attribute="Comment" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 348 |
<DetectChar attribute="Types" context="#pop#pop" char="'" /> |
| 349 |
</context> |
| 350 |
<context name="ML_types2" attribute="Types" lineEndContext="#stay"> |
| 351 |
<Detect2Chars attribute="Comment" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" /> |
| 352 |
<DetectChar attribute="Types" context="#pop#pop" char=""" /> |
| 353 |
</context> |
| 354 |
|
| 355 |
<context name="ML_FindNextLine" attribute="Comment" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> |
| 356 |
<DetectSpaces /> |
| 357 |
<Detect2Chars attribute="Comment" context="#pop!ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 358 |
<Detect2Chars attribute="Comment" context="ML_VerbatimPrefix" char="*" char1="*" lookAhead="true" /> |
| 359 |
<DetectChar attribute="Comment" context="#pop" char="*" /> |
| 360 |
</context> |
| 361 |
<context name="ML_VerbatimPrefix" attribute="Comment" lineEndContext="#stay"> |
| 362 |
<DetectChar attribute="Comment" context="#pop" char="*" /> |
| 363 |
</context> |
| 364 |
|
| 365 |
<context name="ML_End_BlockComment" attribute="Comment" lineEndContext="#stay"> |
| 366 |
<Detect2Chars attribute="Error" context="#pop#pop#pop" char="*" char1="/" endRegion="BlockComment"/> |
| 367 |
</context> |
| 368 |
|
| 369 |
<context name="ML_Code" attribute="Code" lineEndContext="ML_FindNextLine"> |
| 370 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 371 |
<WordDetect attribute="Tags" context="#pop" String="\endcode" endRegion="VerbatimBlock" /> |
| 372 |
<WordDetect attribute="Tags" context="#pop" String="@endcode" endRegion="VerbatimBlock" /> |
| 373 |
</context> |
| 374 |
|
| 375 |
<context name="ML_Verbatim" attribute="Verbatim" lineEndContext="ML_FindNextLine"> |
| 376 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 377 |
<WordDetect attribute="Tags" context="#pop" String="\endverbatim" endRegion="VerbatimBlock" /> |
| 378 |
<WordDetect attribute="Tags" context="#pop" String="@endverbatim" endRegion="VerbatimBlock" /> |
| 379 |
</context> |
| 380 |
|
| 381 |
<context name="ML_Formula" attribute="Formulas" lineEndContext="ML_FindNextLine"> |
| 382 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 383 |
<StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" /> |
| 384 |
<StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" /> |
| 385 |
<!-- TODO: How to force LaTeX math context here?? --> |
| 386 |
<!-- <IncludeRules context="##LaTeX" /> --> |
| 387 |
</context> |
| 388 |
|
| 389 |
<context name="ML_FormulaShort" attribute="Formulas" lineEndContext="ML_FindNextLine"> |
| 390 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 391 |
<StringDetect attribute="Tags" context="#pop" String="\f$" endRegion="VerbatimBlock" /> |
| 392 |
<StringDetect attribute="Tags" context="#pop" String="@f$" endRegion="VerbatimBlock" /> |
| 393 |
<!-- TODO: How to force LaTeX math context here?? --> |
| 394 |
<!-- <IncludeRules context="##LaTeX" /> --> |
| 395 |
</context> |
| 396 |
|
| 397 |
<context name="ML_FormulaEnv" attribute="Word" lineEndContext="ML_FindNextLine"> |
| 398 |
<DetectChar attribute="Tags" context="#pop!ML_FormulaEnvStart" char="}" /> |
| 399 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 400 |
</context> |
| 401 |
|
| 402 |
<context name="ML_FormulaEnvStart" attribute="Formulas" lineEndContext="ML_FindNextLine" fallthrough="true" fallthroughContext="#pop!ML_FormulaEnvFormula"> |
| 403 |
<DetectSpaces attribute="Comment" /> |
| 404 |
<DetectChar attribute="Tags" context="#pop!ML_FormulaEnvFormula" char="{" /> |
| 405 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 406 |
</context> |
| 407 |
|
| 408 |
<context name="ML_FormulaEnvFormula" attribute="Formulas" lineEndContext="ML_FindNextLine"> |
| 409 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 410 |
<StringDetect attribute="Tags" context="#pop" String="\f}" endRegion="VerbatimBlock" /> |
| 411 |
<StringDetect attribute="Tags" context="#pop" String="@f}" endRegion="VerbatimBlock" /> |
| 412 |
<!-- TODO: How to force LaTeX math context here?? --> |
| 413 |
<!-- <IncludeRules context="##LaTeX" /> --> |
| 414 |
</context> |
| 415 |
|
| 416 |
<context name="ML_Msc" attribute="Message Sequence Chart" lineEndContext="ML_FindNextLine"> |
| 417 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 418 |
<WordDetect attribute="Tags" context="#pop" String="\endmsc" endRegion="VerbatimBlock" /> |
| 419 |
<WordDetect attribute="Tags" context="#pop" String="@endmsc" endRegion="VerbatimBlock" /> |
| 420 |
</context> |
| 421 |
|
| 422 |
<context name="ML_Dot" attribute="Dot Graph" lineEndContext="ML_FindNextLine"> |
| 423 |
<Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> |
| 424 |
<WordDetect attribute="Tags" context="#pop" String="\enddot" endRegion="VerbatimBlock" /> |
| 425 |
<WordDetect attribute="Tags" context="#pop" String="@enddot" endRegion="VerbatimBlock" /> |
| 426 |
</context> |
| 427 |
|
| 428 |
<!-- NOTE: all contexts beginning with SL_ are for singleline comments --> |
| 429 |
<context attribute="Comment" lineEndContext="#pop" name="SL_StartTag"> |
| 430 |
<keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" /> |
| 431 |
<keyword attribute="Tags" context="#pop!SL_TagParam" String="TagParam" /> |
| 432 |
<keyword attribute="Tags" context="#pop!SL_TagWordWord" String="TagWordWord" /> |
| 433 |
<keyword attribute="Tags" context="#pop!SL_TagString" String="TagString" /> |
| 434 |
<keyword attribute="Tags" context="#pop!SL_TagWordString" String="TagWordString" /> |
| 435 |
<WordDetect attribute="Tags" context="#pop!SL_Code" String="\code" beginRegion="VerbatimBlock" /> |
| 436 |
<WordDetect attribute="Tags" context="#pop!SL_Code" String="@code" beginRegion="VerbatimBlock" /> |
| 437 |
<WordDetect attribute="Tags" context="#pop!SL_Verbatim" String="\verbatim" beginRegion="VerbatimBlock" /> |
| 438 |
<WordDetect attribute="Tags" context="#pop!SL_Verbatim" String="@verbatim" beginRegion="VerbatimBlock" /> |
| 439 |
<WordDetect attribute="Tags" context="#pop!SL_Formula" String="\f[" beginRegion="VerbatimBlock" /> |
| 440 |
<WordDetect attribute="Tags" context="#pop!SL_Formula" String="@f[" beginRegion="VerbatimBlock" /> |
| 441 |
<StringDetect attribute="Tags" context="#pop!SL_FormulaShort" String="\f$" beginRegion="VerbatimBlock" /> |
| 442 |
<StringDetect attribute="Tags" context="#pop!SL_FormulaShort" String="@f$" beginRegion="VerbatimBlock" /> |
| 443 |
<StringDetect attribute="Tags" context="#pop!SL_FormulaEnv" String="\f{" beginRegion="VerbatimBlock" /> |
| 444 |
<StringDetect attribute="Tags" context="#pop!SL_FormulaEnv" String="@f{" beginRegion="VerbatimBlock" /> |
| 445 |
<WordDetect attribute="Tags" context="#pop!SL_Msc" String="\msc" beginRegion="VerbatimBlock" /> |
| 446 |
<WordDetect attribute="Tags" context="#pop!SL_Msc" String="@msc" beginRegion="VerbatimBlock" /> |
| 447 |
<WordDetect attribute="Tags" context="#pop!SL_Dot" String="\dot" beginRegion="VerbatimBlock" /> |
| 448 |
<WordDetect attribute="Tags" context="#pop!SL_Dot" String="@dot" beginRegion="VerbatimBlock" /> |
| 449 |
<IncludeRules context="Inc_OtherTag" /> |
| 450 |
</context> |
| 451 |
<context attribute="Comment" lineEndContext="#pop" name="SL_StartHTMLTag"> |
| 452 |
<Detect2Chars attribute="Comment" context="#pop" char="<" char1="<" /> |
| 453 |
<RegExpr attribute="HTML Tag" context="#pop!SL_htmltag" String="<\/?[-\w0-9._:@]+" /> |
| 454 |
<StringDetect attribute="HTML Comment" context="#pop!SL_htmlcomment" String="<!--" /> |
| 455 |
<DetectChar attribute="Comment" context="#pop" char="<" /> |
| 456 |
</context> |
| 457 |
|
| 458 |
<!-- tag contexts --> |
| 459 |
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWord"> |
| 460 |
<DetectSpaces /> |
| 461 |
<keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" /> |
| 462 |
<IncludeRules context="SL_Inc_Word" /> |
| 463 |
</context> |
| 464 |
<context attribute="Comment" lineEndContext="#pop" name="SL_TagParam"> |
| 465 |
<DetectSpaces /> |
| 466 |
<StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[in]" /> |
| 467 |
<StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[out]" /> |
| 468 |
<StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[in,out]" /> |
| 469 |
<IncludeRules context="SL_Inc_Word" /> |
| 470 |
</context> |
| 471 |
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord"> |
| 472 |
<DetectSpaces /> |
| 473 |
<RegExpr attribute="Word" context="#pop!SL_TagWord" String="&sl_word;" /> |
| 474 |
</context> |
| 475 |
<context attribute="Comment" lineEndContext="#pop" name="SL_TagString"> |
| 476 |
<DetectSpaces /> |
| 477 |
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> |
| 478 |
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> |
| 479 |
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[-\w0-9._:@]+" /> |
| 480 |
<RegExpr attribute="Description" context="#stay" String="<?[^<\s]+" /> |
| 481 |
</context> |
| 482 |
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString"> |
| 483 |
<DetectSpaces /> |
| 484 |
<IncludeRules context="SL_Inc_Word" /> |
| 485 |
</context> |
| 486 |
<context name="SL_Inc_Word" attribute="Word" lineEndContext="#pop"> |
| 487 |
<RegExpr attribute="Word" context="#pop" String="&sl_word;" /> |
| 488 |
</context> |
| 489 |
|
| 490 |
<!-- html contexts --> |
| 491 |
<context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop"> |
| 492 |
<Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> |
| 493 |
<DetectChar attribute="HTML Tag" context="#pop" char=">" /> |
| 494 |
<DetectSpaces /> |
| 495 |
<DetectChar attribute="Identifier" context="SL_identifiers" char="=" /> |
| 496 |
</context> |
| 497 |
<context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop"> |
| 498 |
<DetectSpaces /> |
| 499 |
<IncludeRules context="##Comments" /> |
| 500 |
<DetectIdentifier /> |
| 501 |
<StringDetect attribute="HTML Comment" context="#pop" String="-->" /> |
| 502 |
</context> |
| 503 |
<context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop"> |
| 504 |
<DetectSpaces /> |
| 505 |
<DetectChar attribute="Types" context="SL_types1" char="'" /> |
| 506 |
<DetectChar attribute="Types" context="SL_types2" char=""" /> |
| 507 |
</context> |
| 508 |
<context name="SL_types1" attribute="Types" lineEndContext="#pop"> |
| 509 |
<DetectChar attribute="Types" context="#pop#pop" char="'" /> |
| 510 |
</context> |
| 511 |
<context name="SL_types2" attribute="Types" lineEndContext="#pop"> |
| 512 |
<DetectChar attribute="Types" context="#pop#pop" char=""" /> |
| 513 |
</context> |
| 514 |
|
| 515 |
<context name="SL_FindNextLine" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop#pop"> |
| 516 |
<DetectSpaces /> |
| 517 |
<StringDetect attribute="Comment" context="#pop" String="///" /> |
| 518 |
<StringDetect attribute="Comment" context="#pop" String="//!" /> |
| 519 |
<RegExpr attribute="Comment" context="#pop#pop#pop" String="." lookAhead="true" endRegion="VerbatimBlock" /> |
| 520 |
</context> |
| 521 |
|
| 522 |
<context name="SL_Code" attribute="Code" lineEndContext="SL_FindNextLine"> |
| 523 |
<WordDetect attribute="Tags" context="#pop" String="\endcode" endRegion="VerbatimBlock" /> |
| 524 |
<WordDetect attribute="Tags" context="#pop" String="@endcode" endRegion="VerbatimBlock" /> |
| 525 |
</context> |
| 526 |
|
| 527 |
<context name="SL_Verbatim" attribute="Verbatim" lineEndContext="SL_FindNextLine"> |
| 528 |
<WordDetect attribute="Tags" context="#pop" String="\endverbatim" endRegion="VerbatimBlock" /> |
| 529 |
<WordDetect attribute="Tags" context="#pop" String="@endverbatim" endRegion="VerbatimBlock" /> |
| 530 |
</context> |
| 531 |
|
| 532 |
<context name="SL_Formula" attribute="Formulas" lineEndContext="SL_FindNextLine"> |
| 533 |
<StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" /> |
| 534 |
<StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" /> |
| 535 |
<!-- TODO: How to force LaTeX math context here?? --> |
| 536 |
<!-- <IncludeRules context="##LaTeX" /> --> |
| 537 |
</context> |
| 538 |
|
| 539 |
<context name="SL_FormulaShort" attribute="Formulas" lineEndContext="SL_FindNextLine"> |
| 540 |
<StringDetect attribute="Tags" context="#pop" String="\f$" endRegion="VerbatimBlock" /> |
| 541 |
<StringDetect attribute="Tags" context="#pop" String="@f$" endRegion="VerbatimBlock" /> |
| 542 |
<!-- TODO: How to force LaTeX math context here?? --> |
| 543 |
<!-- <IncludeRules context="##LaTeX" /> --> |
| 544 |
</context> |
| 545 |
|
| 546 |
<context name="SL_FormulaEnv" attribute="Word" lineEndContext="SL_FindNextLine"> |
| 547 |
<DetectChar attribute="Tags" context="#pop!SL_FormulaEnvStart" char="}" /> |
| 548 |
</context> |
| 549 |
|
| 550 |
<context name="SL_FormulaEnvStart" attribute="Formulas" lineEndContext="SL_FindNextLine" fallthrough="true" fallthroughContext="#pop!SL_FormulaEnvFormula"> |
| 551 |
<DetectSpaces attribute="Comment" /> |
| 552 |
<DetectChar attribute="Tags" context="#pop!SL_FormulaEnvFormula" char="{" /> |
| 553 |
</context> |
| 554 |
|
| 555 |
<context name="SL_FormulaEnvFormula" attribute="Formulas" lineEndContext="SL_FindNextLine"> |
| 556 |
<StringDetect attribute="Tags" context="#pop" String="\f}" endRegion="VerbatimBlock" /> |
| 557 |
<StringDetect attribute="Tags" context="#pop" String="@f}" endRegion="VerbatimBlock" /> |
| 558 |
<!-- TODO: How to force LaTeX math context here?? --> |
| 559 |
<!-- <IncludeRules context="##LaTeX" /> --> |
| 560 |
</context> |
| 561 |
|
| 562 |
<context name="SL_Msc" attribute="Message Sequence Chart" lineEndContext="SL_FindNextLine"> |
| 563 |
<WordDetect attribute="Tags" context="#pop" String="\endmsc" endRegion="VerbatimBlock" /> |
| 564 |
<WordDetect attribute="Tags" context="#pop" String="@endmsc" endRegion="VerbatimBlock" /> |
| 565 |
</context> |
| 566 |
|
| 567 |
<context name="SL_Dot" attribute="Dot Graph" lineEndContext="SL_FindNextLine"> |
| 568 |
<WordDetect attribute="Tags" context="#pop" String="\enddot" endRegion="VerbatimBlock" /> |
| 569 |
<WordDetect attribute="Tags" context="#pop" String="@enddot" endRegion="VerbatimBlock" /> |
| 570 |
</context> |
| 571 |
|
| 572 |
<context name="Entities" attribute="Word" lineEndContext="#stay"> |
| 573 |
<RegExpr attribute="Entities" context="#pop" String="&[A-Za-z]+;" /> |
| 574 |
<DetectChar attribute="Comment" context="#pop" char="&" /> |
| 575 |
</context> |
| 576 |
|
| 577 |
<context name="Inc_OtherTag" attribute="Comment" lineEndContext="#pop"> |
| 578 |
<keyword attribute="Note" context="#pop" String="Note" /> |
| 579 |
<keyword attribute="Warning" context="#pop" String="Warning" /> |
| 580 |
<keyword attribute="Attention" context="#pop" String="Attention" /> |
| 581 |
<keyword attribute="Todo" context="#pop" String="Todo" /> |
| 582 |
<keyword attribute="Tags" context="#pop" String="TagOnly" /> |
| 583 |
<Detect2Chars attribute="Region" context="#pop" char="@" char1="{" beginRegion="Group" /> |
| 584 |
<Detect2Chars attribute="Region" context="#pop" char="@" char1="}" endRegion="Group" /> |
| 585 |
<Detect2Chars attribute="Tags" context="#pop!LanguageId" char="\" char1="~" /> |
| 586 |
<Detect2Chars attribute="Tags" context="#pop!LanguageId" char="@" char1="~" /> |
| 587 |
<keyword attribute="Error" context="#pop" String="TagEnd" /> |
| 588 |
<RegExpr attribute="Error" context="#pop" String="[@\\]f[]}]" /> |
| 589 |
<RegExpr attribute="Escape sequence" context="#pop" String="[@\\](?:[#$%&<>"@\\.~=|]|::|---?)" /> |
| 590 |
<RegExpr attribute="Custom Tags" context="#pop" String="[@\\](?:[^@\\ \t\*]|\*(?!/))+" /> |
| 591 |
<AnyChar attribute="Comment" context="#pop" String="\@" /> |
| 592 |
</context> |
| 593 |
|
| 594 |
<context name="LanguageId" attribute="Word" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 595 |
<DetectIdentifier /> |
| 596 |
</context> |
| 597 |
|
| 598 |
</contexts> |
| 599 |
<itemDatas> |
| 600 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 601 |
<itemData name="Escape sequence" defStyleNum="dsSpecialChar" /> |
| 602 |
<itemData name="Tags" defStyleNum="dsAnnotation" bold="1" /> |
| 603 |
<itemData name="Custom Tags" defStyleNum="dsAnnotation" /> |
| 604 |
<itemData name="Word" defStyleNum="dsCommentVar" bold="1" italic="0" /> |
| 605 |
<itemData name="HTML Tag" defStyleNum="dsKeyword" bold="1" italic="0" /> |
| 606 |
<itemData name="Entities" defStyleNum="dsOthers" color="#4086C0" bold="1" italic="1" /> |
| 607 |
<itemData name="Description" defStyleNum="dsDocumentation" /> |
| 608 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 609 |
<itemData name="Region" defStyleNum="dsRegionMarker" /> |
| 610 |
<itemData name="Identifier" defStyleNum="dsOthers" /> |
| 611 |
<itemData name="HTML Comment" defStyleNum="dsComment" /> |
| 612 |
<itemData name="Types" defStyleNum="dsDataType" /> |
| 613 |
<itemData name="Code" defStyleNum="dsComment" /> |
| 614 |
<itemData name="Dot Graph" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> |
| 615 |
<itemData name="Formulas" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> |
| 616 |
<itemData name="Message Sequence Chart" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> |
| 617 |
<itemData name="Verbatim" defStyleNum="dsComment" /> |
| 618 |
<itemData name="Note" defStyleNum="dsInformation" bold="1" italic="0" /> |
| 619 |
<itemData name="Warning" defStyleNum="dsWarning" bold="1" italic="0" /> |
| 620 |
<itemData name="Attention" defStyleNum="dsAnnotation" bold="1" italic="0" /> |
| 621 |
<itemData name="Todo" defStyleNum="dsAnnotation" bold="1" italic="0" /> |
| 622 |
<itemData name="Error" defStyleNum="dsError" /> |
| 623 |
</itemDatas> |
| 624 |
</highlighting> |
| 625 |
<general> |
| 626 |
<keywords casesensitive="1" weakDeliminator="\$" /> |
| 627 |
</general> |
| 628 |
</language> |
| 629 |
<!-- kate: indent-width 2; --> |