| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- Kate syntax highlighting for Objective Caml version 4.02 in the standard and revised syntaxes, with Ocamldoc comments. --> |
| 3 |
|
| 4 |
<!DOCTYPE language |
| 5 |
[ |
| 6 |
<!-- Regular expresion constants: --> |
| 7 |
<!ENTITY LOWER "a-z\300-\326\330-\337"> <!-- Lowercase Latin-1 letters. --> |
| 8 |
<!ENTITY UPPER "A-Z\340-\366\370-\377"> <!-- Uppercase Latin-1 letters. --> |
| 9 |
<!ENTITY LETTER "&LOWER;&UPPER;"> <!-- All Latin-1 letters. --> |
| 10 |
<!ENTITY LIDENT "[&LOWER;_][&LETTER;0-9_']*"> <!-- Lowercase OCaml identifiers. --> |
| 11 |
<!ENTITY UIDENT "`?[&UPPER;][&LETTER;0-9_']*"> <!-- Uppercase OCaml identifiers. --> |
| 12 |
<!ENTITY IDENT "`?[&LETTER;][&LETTER;0-9_']*"> <!-- All OCaml identifiers. --> |
| 13 |
<!ENTITY ESC "(\\[ntbr'"\\]|\\[0-9]{3}|\\x[0-9A-Fa-f]{2})"> <!-- OCaml character code escapes. --> |
| 14 |
<!ENTITY DEC "[0-9][0-9_]*"> <!-- Decimal digits with underscores. --> |
| 15 |
]> |
| 16 |
<language name="Objective Caml" |
| 17 |
extensions="*.ml;*.mli" |
| 18 |
mimetype="text/x-ocaml" |
| 19 |
section="Sources" |
| 20 |
version="10" |
| 21 |
priority="10" |
| 22 |
kateversion="5.79" |
| 23 |
author="Glyn Webster ([email protected]) and Vincent Hugot ([email protected])" |
| 24 |
license="LGPL" > |
| 25 |
|
| 26 |
<highlighting> |
| 27 |
<list name="qtest keywords"> |
| 28 |
<item>in</item> |
| 29 |
<item>as</item> |
| 30 |
<item>forall</item> |
| 31 |
</list> |
| 32 |
<list name="Keywords"> |
| 33 |
<item>and</item> |
| 34 |
<item>as</item> |
| 35 |
<item>assert</item> |
| 36 |
<item>asr</item> |
| 37 |
<item>begin</item> |
| 38 |
<item>class</item> |
| 39 |
<item>closed</item> |
| 40 |
<item>constraint</item> |
| 41 |
<item>do</item> |
| 42 |
<item>done</item> |
| 43 |
<item>downto</item> |
| 44 |
<item>else</item> |
| 45 |
<item>end</item> |
| 46 |
<item>exception</item> |
| 47 |
<item>external</item> |
| 48 |
<item>false</item> |
| 49 |
<item>for</item> |
| 50 |
<item>fun</item> |
| 51 |
<item>function</item> |
| 52 |
<item>functor</item> |
| 53 |
<item>if</item> |
| 54 |
<item>in</item> |
| 55 |
<item>include</item> |
| 56 |
<item>inherit</item> |
| 57 |
<item>land</item> |
| 58 |
<item>lazy</item> |
| 59 |
<item>let</item> |
| 60 |
<item>lor</item> |
| 61 |
<item>lsl</item> |
| 62 |
<item>lsr</item> |
| 63 |
<item>lxor</item> |
| 64 |
<item>match</item> |
| 65 |
<item>method</item> |
| 66 |
<item>mod</item> |
| 67 |
<item>module</item> |
| 68 |
<item>mutable</item> |
| 69 |
<item>new</item> |
| 70 |
<item>nonrec</item> |
| 71 |
<item>object</item> |
| 72 |
<item>of</item> |
| 73 |
<item>open</item> |
| 74 |
<item>or</item> |
| 75 |
<item>parser</item> |
| 76 |
<item>private</item> |
| 77 |
<item>rec</item> |
| 78 |
<item>sig</item> |
| 79 |
<item>struct</item> |
| 80 |
<item>then</item> |
| 81 |
<item>to</item> |
| 82 |
<item>true</item> |
| 83 |
<item>try</item> |
| 84 |
<item>type</item> |
| 85 |
<item>val</item> |
| 86 |
<item>virtual</item> |
| 87 |
<item>when</item> |
| 88 |
<item>while</item> |
| 89 |
<item>with</item> |
| 90 |
</list> |
| 91 |
|
| 92 |
<!-- Revised Syntax keywords are highlighted as identifiers by default. --> |
| 93 |
<!-- Change their highlighting colour to match the standard keywords --> |
| 94 |
<!-- if you intend to use the Camlp4 Revised Syntax. --> |
| 95 |
<list name="Revised Syntax Keywords"> |
| 96 |
<item>declare</item> |
| 97 |
<item>value</item> |
| 98 |
<item>where</item> |
| 99 |
</list> |
| 100 |
|
| 101 |
<list name="Pervasive Functions"> |
| 102 |
<item>abs</item> |
| 103 |
<item>abs_float</item> |
| 104 |
<item>acos</item> |
| 105 |
<item>asin</item> |
| 106 |
<item>at_exit</item> |
| 107 |
<item>atan</item> |
| 108 |
<item>atan2</item> |
| 109 |
<item>bool_of_string</item> |
| 110 |
<item>ceil</item> |
| 111 |
<item>char_of_int</item> |
| 112 |
<item>classify_float</item> |
| 113 |
<item>close_in</item> |
| 114 |
<item>close_in_noerr</item> |
| 115 |
<item>close_out</item> |
| 116 |
<item>close_out_noerr</item> |
| 117 |
<item>compare</item> |
| 118 |
<item>copysign</item> |
| 119 |
<item>cos</item> |
| 120 |
<item>cosh</item> |
| 121 |
<item>decr</item> |
| 122 |
<item>do_at_exit</item> |
| 123 |
<item>epsilon_float</item> |
| 124 |
<item>exp</item> |
| 125 |
<item>expm1</item> |
| 126 |
<item>float</item> |
| 127 |
<item>float_of_int</item> |
| 128 |
<item>float_of_string</item> |
| 129 |
<item>floor</item> |
| 130 |
<item>flush</item> |
| 131 |
<item>flush_all</item> |
| 132 |
<item>format_of_string</item> |
| 133 |
<item>frexp</item> |
| 134 |
<item>fst</item> |
| 135 |
<item>hypot</item> |
| 136 |
<item>ignore</item> |
| 137 |
<item>in_channel_length</item> |
| 138 |
<item>incr</item> |
| 139 |
<item>infinity</item> |
| 140 |
<item>input</item> |
| 141 |
<item>input_binary_int</item> |
| 142 |
<item>input_byte</item> |
| 143 |
<item>input_char</item> |
| 144 |
<item>input_line</item> |
| 145 |
<item>input_value</item> |
| 146 |
<item>int_of_char</item> |
| 147 |
<item>int_of_float</item> |
| 148 |
<item>int_of_string</item> |
| 149 |
<item>ldexp</item> |
| 150 |
<item>lnot</item> |
| 151 |
<item>log</item> |
| 152 |
<item>log10</item> |
| 153 |
<item>log1p</item> |
| 154 |
<item>max</item> |
| 155 |
<item>max_float</item> |
| 156 |
<item>max_int</item> |
| 157 |
<item>min</item> |
| 158 |
<item>min_float</item> |
| 159 |
<item>min_int</item> |
| 160 |
<item>mod_float</item> |
| 161 |
<item>modf</item> |
| 162 |
<item>nan</item> |
| 163 |
<item>neg_infinity</item> |
| 164 |
<item>not</item> |
| 165 |
<item>open_in</item> |
| 166 |
<item>open_in_bin</item> |
| 167 |
<item>open_in_gen</item> |
| 168 |
<item>open_out</item> |
| 169 |
<item>open_out_bin</item> |
| 170 |
<item>open_out_gen</item> |
| 171 |
<item>out_channel_length</item> |
| 172 |
<item>output</item> |
| 173 |
<item>output_binary_int</item> |
| 174 |
<item>output_byte</item> |
| 175 |
<item>output_bytes</item> |
| 176 |
<item>output_char</item> |
| 177 |
<item>output_string</item> |
| 178 |
<item>output_substring</item> |
| 179 |
<item>output_value</item> |
| 180 |
<item>pos_in</item> |
| 181 |
<item>pos_out</item> |
| 182 |
<item>pred</item> |
| 183 |
<item>prerr_bytes</item> |
| 184 |
<item>prerr_char</item> |
| 185 |
<item>prerr_endline</item> |
| 186 |
<item>prerr_float</item> |
| 187 |
<item>prerr_int</item> |
| 188 |
<item>prerr_newline</item> |
| 189 |
<item>prerr_string</item> |
| 190 |
<item>print_bytes</item> |
| 191 |
<item>print_char</item> |
| 192 |
<item>print_endline</item> |
| 193 |
<item>print_float</item> |
| 194 |
<item>print_int</item> |
| 195 |
<item>print_newline</item> |
| 196 |
<item>print_string</item> |
| 197 |
<item>read_float</item> |
| 198 |
<item>read_int</item> |
| 199 |
<item>read_line</item> |
| 200 |
<item>really_input</item> |
| 201 |
<item>really_input_string</item> |
| 202 |
<item>ref</item> |
| 203 |
<item>seek_in</item> |
| 204 |
<item>seek_out</item> |
| 205 |
<item>set_binary_mode_in</item> |
| 206 |
<item>set_binary_mode_out</item> |
| 207 |
<item>sin</item> |
| 208 |
<item>sinh</item> |
| 209 |
<item>snd</item> |
| 210 |
<item>sqrt</item> |
| 211 |
<item>stderr</item> |
| 212 |
<item>stdin</item> |
| 213 |
<item>stdout</item> |
| 214 |
<item>string_of_bool</item> |
| 215 |
<item>string_of_float</item> |
| 216 |
<item>string_of_format</item> |
| 217 |
<item>string_of_int</item> |
| 218 |
<item>succ</item> |
| 219 |
<item>tan</item> |
| 220 |
<item>tanh</item> |
| 221 |
<item>truncate</item> |
| 222 |
<item>unsafe_really_input</item> |
| 223 |
<item>valid_float_lexem</item> |
| 224 |
</list> |
| 225 |
|
| 226 |
<!-- These pervasive functions control program flow, --> |
| 227 |
<!-- so some people like to highlight them as keywords: --> |
| 228 |
<list name="Flow Control Functions"> |
| 229 |
<item>exit</item> |
| 230 |
<item>failwith</item> |
| 231 |
<item>invalid_arg</item> |
| 232 |
<item>raise</item> |
| 233 |
<item>raise_notrace</item> |
| 234 |
</list> |
| 235 |
|
| 236 |
<list name="Pervasive Types"> |
| 237 |
<item>array</item> |
| 238 |
<item>bool</item> |
| 239 |
<item>bytes</item> |
| 240 |
<item>char</item> |
| 241 |
<item>exn</item> |
| 242 |
<item>float</item> |
| 243 |
<item>format4</item> |
| 244 |
<item>format6</item> |
| 245 |
<item>fpclass</item> |
| 246 |
<item>in_channel</item> |
| 247 |
<item>int</item> |
| 248 |
<item>int32</item> |
| 249 |
<item>int64</item> |
| 250 |
<item>lazy_t</item> |
| 251 |
<item>list</item> |
| 252 |
<item>nativeint</item> |
| 253 |
<item>open_flag</item> |
| 254 |
<item>option</item> |
| 255 |
<item>out_channel</item> |
| 256 |
<item>real</item> |
| 257 |
<item>ref</item> |
| 258 |
<item>string</item> |
| 259 |
<item>unit</item> |
| 260 |
</list> |
| 261 |
|
| 262 |
<list name="Pervasive Variant Tags"> |
| 263 |
<item>FP_infinite</item> |
| 264 |
<item>FP_nan</item> |
| 265 |
<item>FP_normal</item> |
| 266 |
<item>FP_subnormal</item> |
| 267 |
<item>FP_zero</item> |
| 268 |
<item>None</item> |
| 269 |
<item>Open_append</item> |
| 270 |
<item>Open_binary</item> |
| 271 |
<item>Open_creat</item> |
| 272 |
<item>Open_excl</item> |
| 273 |
<item>Open_nonblock</item> |
| 274 |
<item>Open_rdonly</item> |
| 275 |
<item>Open_text</item> |
| 276 |
<item>Open_trunc</item> |
| 277 |
<item>Open_wronly</item> |
| 278 |
<item>Some</item> |
| 279 |
</list> |
| 280 |
|
| 281 |
<list name="Pervasive Exceptions"> |
| 282 |
<item>Assert_failure</item> |
| 283 |
<item>Division_by_zero</item> |
| 284 |
<item>End_of_file</item> |
| 285 |
<item>Exit</item> |
| 286 |
<item>Failure</item> |
| 287 |
<item>Invalid_argument</item> |
| 288 |
<item>Match_failure</item> |
| 289 |
<item>Not_found</item> |
| 290 |
<item>Out_of_memory</item> |
| 291 |
<item>Stack_overflow</item> |
| 292 |
<item>Sys_blocked_io</item> |
| 293 |
<item>Sys_error</item> |
| 294 |
<item>Undefined_recursive_module</item> |
| 295 |
</list> |
| 296 |
|
| 297 |
<list name="Standard Library Modules"> |
| 298 |
<item>Arg</item> |
| 299 |
<item>Array</item> |
| 300 |
<item>ArrayLabels</item> |
| 301 |
<item>Buffer</item> |
| 302 |
<item>Bytes</item> |
| 303 |
<item>Callback</item> |
| 304 |
<item>Char</item> |
| 305 |
<item>Complex</item> |
| 306 |
<item>Digest</item> |
| 307 |
<item>Ephemeron</item> |
| 308 |
<item>Filename</item> |
| 309 |
<item>Format</item> |
| 310 |
<item>Gc</item> |
| 311 |
<item>Genlex</item> |
| 312 |
<item>Hashtbl</item> |
| 313 |
<item>Int32</item> |
| 314 |
<item>Int64</item> |
| 315 |
<item>Lazy</item> |
| 316 |
<item>Lexing</item> |
| 317 |
<item>List</item> |
| 318 |
<item>ListLabels</item> |
| 319 |
<item>Map</item> |
| 320 |
<item>Marshal</item> |
| 321 |
<item>MoreLabels</item> |
| 322 |
<item>Nativeint</item> |
| 323 |
<item>Oo</item> |
| 324 |
<item>Parsing</item> |
| 325 |
<item>Printexc</item> |
| 326 |
<item>Printf</item> |
| 327 |
<item>Queue</item> |
| 328 |
<item>Random</item> |
| 329 |
<item>Scanf</item> |
| 330 |
<item>Set</item> |
| 331 |
<item>Sort</item> |
| 332 |
<item>Spacetime</item> |
| 333 |
<item>Stack</item> |
| 334 |
<item>StdLabels</item> |
| 335 |
<item>Stream</item> |
| 336 |
<item>String</item> |
| 337 |
<item>StringLabels</item> |
| 338 |
<item>Sys</item> |
| 339 |
<item>Uchar</item> |
| 340 |
<item>Weak</item> |
| 341 |
</list> |
| 342 |
|
| 343 |
<contexts> |
| 344 |
|
| 345 |
<context name="Code" lineEndContext="#stay" attribute="Operator"> |
| 346 |
|
| 347 |
<!-- ] and ]} close code samples in Ocamldoc, so --> |
| 348 |
<!-- nested [ ] and { } brackets have to be allowed for: --> |
| 349 |
<DetectChar char="[" context="Nested Code 1" attribute="Operator" /> |
| 350 |
<DetectChar char="{" context="Nested Code 2" attribute="Operator" /> |
| 351 |
|
| 352 |
<!-- Comments. --> |
| 353 |
<!-- A (** begins a special comment with Ocamldoc documentation markup. --> |
| 354 |
<StringDetect String="(**)" context="#stay" attribute="Comment" /> |
| 355 |
<StringDetect String="(**" context="Ocamldoc" attribute="Comment" beginRegion="comment" /> |
| 356 |
<RegExpr String="\(\*\$(T|Q|R|=)" context="qtest header" attribute="qtest body style" beginRegion="comment" /> |
| 357 |
<Detect2Chars char="(" char1="*" context="Comment" attribute="Comment" beginRegion="comment" /> |
| 358 |
|
| 359 |
<!-- Interpreter directives. --> |
| 360 |
<!-- (These are lines where the first symbol is a '#' followed by an identifier. --> |
| 361 |
<!-- Such lines could also be part of a method call split over two lines but --> |
| 362 |
<!-- it's unlikey anyone would code like that.) --> |
| 363 |
<RegExpr String="#&IDENT;.*$" context="#stay" firstNonSpace="true" attribute="Directive"/> |
| 364 |
|
| 365 |
<!-- String, character and Camlp4 "quotation" constants. --> |
| 366 |
<!-- Note: If you must modify the pattern for characters be precise: --> |
| 367 |
<!-- single quotes have several meanings in Ocaml. --> |
| 368 |
<DetectChar char=""" context="String" attribute="String" /> |
| 369 |
<RegExpr String="'(&ESC;|[^'])'" context="#stay" attribute="Character" /> |
| 370 |
<Detect2Chars char="<" char1="<" context="Camlp4 Quotation" attribute="Camlp4 Quotation" /> |
| 371 |
<RegExpr String="<:&IDENT;<" context="Camlp4 Quotation" attribute="Camlp4 Quotation" /> |
| 372 |
|
| 373 |
<!-- Identifiers and keywords. --> |
| 374 |
<keyword String="Keywords" context="#stay" attribute="Keyword" /> |
| 375 |
<keyword String="Revised Syntax Keywords" context="#stay" attribute="Revised Syntax Keyword" /> |
| 376 |
<keyword String="Flow Control Functions" context="#stay" attribute="Flow Control Functions" /> |
| 377 |
<keyword String="Pervasive Functions" context="#stay" attribute="Pervasive Functions" /> |
| 378 |
<keyword String="Pervasive Types" context="#stay" attribute="Pervasive Types" /> |
| 379 |
<keyword String="Pervasive Exceptions" context="#stay" attribute="Pervasive Exceptions" /> |
| 380 |
<keyword String="Pervasive Variant Tags" context="#stay" attribute="Pervasive Variant Tags" /> |
| 381 |
<keyword String="Standard Library Modules" context="#stay" attribute="Standard Library Modules" /> |
| 382 |
<RegExpr String="&LIDENT;" context="#stay" attribute="Lowercase Identifier" /> |
| 383 |
<RegExpr String="&UIDENT;" context="#stay" attribute="Uppercase Identifier" /> |
| 384 |
|
| 385 |
<!-- Numeric constants. --> |
| 386 |
<!-- Note that they may contain underscores. --> |
| 387 |
<RegExpr String="-?0[xX][0-9A-Fa-f_]+" context="#stay" attribute="Hexadecimal" /> |
| 388 |
<RegExpr String="-?0[oO][0-7_]+" context="#stay" attribute="Octal" /> |
| 389 |
<RegExpr String="-?0[bB][01_]+" context="#stay" attribute="Binary" /> |
| 390 |
<RegExpr String="-?&DEC;(\.&DEC;([eE][-+]?&DEC;)?|[eE][-+]?&DEC;)" context="#stay" attribute="Float" /> |
| 391 |
<RegExpr String="-?&DEC;" context="#stay" attribute="Decimal" /> |
| 392 |
|
| 393 |
<IncludeRules context="Unmatched Closing Brackets" /> |
| 394 |
</context> |
| 395 |
|
| 396 |
<context name="Nested Code 1" lineEndContext="#stay" attribute="Operator"> |
| 397 |
<DetectChar char="]" context="#pop" attribute="Operator" /> |
| 398 |
<IncludeRules context="Code" includeAttrib="true" /> |
| 399 |
</context> |
| 400 |
|
| 401 |
<context name="Nested Code 2" lineEndContext="#stay" attribute="Operator"> |
| 402 |
<DetectChar char="}" context="#pop" attribute="Operator" /> |
| 403 |
<IncludeRules context="Code" includeAttrib="true" /> |
| 404 |
</context> |
| 405 |
|
| 406 |
<context name="String" lineEndContext="#stay" attribute="String"> |
| 407 |
<DetectChar char=""" context="#pop" attribute="String" /> |
| 408 |
<!-- A backslash at the end of a line in a string indicates --> |
| 409 |
<!-- that the string will continue on the next line: --> |
| 410 |
<RegExpr String="&ESC;|\\$" context="#stay" attribute="Escaped Characters" /> |
| 411 |
</context> |
| 412 |
|
| 413 |
<context name="qtest header" lineEndContext="qtest" attribute="Operator"> |
| 414 |
<keyword String="qtest keywords" attribute="Keyword" /> |
| 415 |
<DetectChar char="&" context="qtest param" attribute="qtest param style" /> |
| 416 |
<RegExpr String="&LIDENT;" context="#stay" attribute="qtest header style"/> |
| 417 |
</context> |
| 418 |
|
| 419 |
<context name="qtest param" lineEndContext="qtest" attribute="qtest param style"> |
| 420 |
</context> |
| 421 |
|
| 422 |
<context name="qtest" lineEndContext="#stay" attribute="qtest body style"> |
| 423 |
<Detect2Chars char="*" char1=')' context="#pop" attribute="qtest body style" endRegion="comment" /> |
| 424 |
<IncludeRules context="Code" includeAttrib="true" /> |
| 425 |
</context> |
| 426 |
|
| 427 |
<context name="Comment" lineEndContext="#stay" attribute="Comment"> |
| 428 |
<Detect2Chars char="*" char1=")" context="#pop" attribute="Comment" endRegion="comment" /> |
| 429 |
<!-- Support for nested comments: --> |
| 430 |
<Detect2Chars char="(" char1="*" context="Comment" attribute="Comment" beginRegion="comment" /> |
| 431 |
<!-- Strings in Ocaml comments must be well-formed: --> |
| 432 |
<DetectChar char=""" context="String in Comment" attribute="String in Comment" /> |
| 433 |
|
| 434 |
<DetectSpaces /> |
| 435 |
<IncludeRules context="##Comments" /> |
| 436 |
</context> |
| 437 |
|
| 438 |
<context name="String in Comment" lineEndContext="#stay" attribute="String in Comment"> |
| 439 |
<DetectChar char=""" context="#pop" attribute="String in Comment" /> |
| 440 |
<IncludeRules context="String" /> |
| 441 |
</context> |
| 442 |
|
| 443 |
<!-- Camlp4 Quotations. These are source code literals used by the Campl4 preprocessor. --> |
| 444 |
<!-- The only escapes allowed in a Camlp4 quotation are for the quotation start and stop symbols. --> |
| 445 |
<context name="Camlp4 Quotation" lineEndContext="#stay" attribute="Camlp4 Quotation"> |
| 446 |
<Detect2Chars char=">" char1=">" context="#pop" attribute="Camlp4 Quotation" /> |
| 447 |
<Detect2Chars char="<" char1="<" context="Camlp4 Quotation" attribute="Camlp4 Quotation" /> |
| 448 |
<RegExpr String="<:&IDENT;<" context="Camlp4 Quotation" attribute="Camlp4 Quotation" /> |
| 449 |
<RegExpr String="\\(\\|>>|<<|<:&IDENT;<)" context="#stay" attribute="Escaped Characters" /> |
| 450 |
</context> |
| 451 |
|
| 452 |
<!-- Ocamldoc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 453 |
|
| 454 |
<context name="Ocamldoc" lineEndContext="#stay" attribute="Ocamldoc Text"> |
| 455 |
<Detect2Chars char="*" char1=")" context="#pop" attribute="Comment" endRegion="comment" /> |
| 456 |
|
| 457 |
<!-- A backslash escapes markup characters: --> |
| 458 |
<RegExpr String="\\." context="#stay" attribute="Escaped Characters" /> |
| 459 |
|
| 460 |
<!-- Support for nested comments and strings: --> |
| 461 |
<StringDetect String="(**)" context="#stay" attribute="Comment" /> |
| 462 |
<StringDetect String="(**" context="Ocamldoc" attribute="Comment" beginRegion="comment" /> |
| 463 |
<Detect2Chars char="(" char1="*" context="Comment" attribute="Comment" beginRegion="comment" /> |
| 464 |
|
| 465 |
<!-- Strings in Ocaml comments must be well-formed: --> |
| 466 |
<DetectChar char=""" context="String in Comment" attribute="String in Comment" /> |
| 467 |
|
| 468 |
<!-- Nested Markup: --> |
| 469 |
<DetectChar char="[" context="Ocamldoc Code" attribute="Ocamldoc Markup" /> |
| 470 |
<Detect2Chars char="{" char1="[" context="Ocamldoc Preformatted" attribute="Ocamldoc Markup" /> |
| 471 |
<Detect2Chars char="{" char1="%" context="Ocamldoc LaTeX" attribute="Ocamldoc Markup" /> |
| 472 |
<Detect2Chars char="{" char1="^" context="Nested Ocamldoc" attribute="Ocamldoc Markup" /> |
| 473 |
<RegExpr String="[{]v(\s|$)" context="Ocamldoc Verbatim" attribute="Ocamldoc Markup" /> |
| 474 |
<RegExpr String="[{]b(\s|$)" context="Ocamldoc Bold" attribute="Ocamldoc Markup" /> |
| 475 |
<RegExpr String="[{]i(\s|$)" context="Ocamldoc Italic" attribute="Ocamldoc Markup" /> |
| 476 |
<RegExpr String="[{]e(\s|$)" context="Ocamldoc Emphasised" attribute="Ocamldoc Markup" /> |
| 477 |
<RegExpr String="[{][0-9]+(:&IDENT;)?\s" context="Ocamldoc Heading" attribute="Ocamldoc Markup" /> |
| 478 |
<RegExpr String="[{][{]:&IDENT;[}]" context="Ocamldoc Link" attribute="Ocamldoc Markup" /> |
| 479 |
<RegExpr String="[{]!([a-z]+:)?" context="Ocamldoc References" attribute="Ocamldoc Markup" /> |
| 480 |
<RegExpr String="[{]&IDENT;(\s|$)" context="Nested Ocamldoc" attribute="Ocamldoc Markup" /> |
| 481 |
|
| 482 |
<RegExpr String="@see\s*(<[^>]*>|"[^"]*"|'[^']*')" context="#stay" attribute="Ocamldoc Markup" /> |
| 483 |
<RegExpr String="@(param|raise)\s*" context="Ocamldoc Identifier" attribute="Ocamldoc Markup" /> |
| 484 |
<RegExpr String="@(author|before|deprecated|return|since|version)" context="#stay" attribute="Ocamldoc Markup" /> |
| 485 |
<RegExpr String="@&IDENT;" context="#stay" attribute="Ocamldoc Custom Tag" /> |
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
<!-- A dash at the start of a line is a bullet point. --> |
| 490 |
<RegExpr String="^[ 	]*-\s" context="#stay" attribute="Ocamldoc Markup" column="0" /> |
| 491 |
|
| 492 |
<IncludeRules context="Unmatched Closing Brackets" /> |
| 493 |
</context> |
| 494 |
|
| 495 |
<context name="Ocamldoc Code" lineEndContext="#stay" attribute="Operator"> |
| 496 |
<DetectChar char="]" context="#pop" attribute="Ocamldoc Markup" /> |
| 497 |
<IncludeRules context="Code" includeAttrib="true" /> |
| 498 |
</context> |
| 499 |
|
| 500 |
<context name="Ocamldoc Preformatted" lineEndContext="#stay" attribute="Operator"> |
| 501 |
<Detect2Chars char="]" char1="}" context="#pop" attribute="Ocamldoc Markup" /> |
| 502 |
<IncludeRules context="Code" includeAttrib="true" /> |
| 503 |
</context> |
| 504 |
|
| 505 |
<context name="Ocamldoc Verbatim" lineEndContext="#stay" attribute="Ocamldoc Text"> |
| 506 |
<Detect2Chars char="v" char1="}" context="#pop" attribute="Ocamldoc Markup" /> |
| 507 |
</context> |
| 508 |
|
| 509 |
<context name="Ocamldoc LaTeX" lineEndContext="#stay" attribute="Ocamldoc LaTeX"> |
| 510 |
<Detect2Chars char="%" char1="}" context="#pop" attribute="Ocamldoc Markup" /> |
| 511 |
<IncludeRules context="##LaTeX" /> |
| 512 |
</context> |
| 513 |
|
| 514 |
<!-- A single qualified Ocaml identifier, perhaps preceeded by whitespace. } --> |
| 515 |
<context name="Ocamldoc Identifier" lineEndContext="#stay" attribute="Mismatched Brackets"> |
| 516 |
<RegExpr String="&IDENT;(\.&IDENT;)*" context="#pop" attribute="Ocamldoc Link" /> |
| 517 |
<Detect2Chars char="*" char1=")" context="#pop" attribute="Mismatched Brackets" /> |
| 518 |
<DetectSpaces /> |
| 519 |
</context> |
| 520 |
|
| 521 |
<context name="Nested Ocamldoc" lineEndContext="#stay" attribute="Operator"> |
| 522 |
<DetectChar char="}" context="#pop" attribute="Ocamldoc Markup" /> |
| 523 |
<Detect2Chars char="*" char1=")" context="#pop" attribute="Mismatched Brackets" /> |
| 524 |
<IncludeRules context="Ocamldoc" includeAttrib="true" /> |
| 525 |
</context> |
| 526 |
|
| 527 |
<context name="Ocamldoc Bold" lineEndContext="#stay" attribute="Ocamldoc Bold"> |
| 528 |
<IncludeRules context="Nested Ocamldoc" /> |
| 529 |
</context> |
| 530 |
|
| 531 |
<context name="Ocamldoc Italic" lineEndContext="#stay" attribute="Ocamldoc Italic"> |
| 532 |
<IncludeRules context="Nested Ocamldoc" /> |
| 533 |
</context> |
| 534 |
|
| 535 |
<context name="Ocamldoc Emphasised" lineEndContext="#stay" attribute="Ocamldoc Emphasised"> |
| 536 |
<IncludeRules context="Nested Ocamldoc" /> |
| 537 |
</context> |
| 538 |
|
| 539 |
<context name="Ocamldoc Heading" lineEndContext="#stay" attribute="Ocamldoc Heading"> |
| 540 |
<IncludeRules context="Nested Ocamldoc" /> |
| 541 |
</context> |
| 542 |
|
| 543 |
<context name="Ocamldoc Link" lineEndContext="#stay" attribute="Ocamldoc Link"> |
| 544 |
<IncludeRules context="Nested Ocamldoc" /> |
| 545 |
</context> |
| 546 |
|
| 547 |
<!-- A list of qualified Ocaml identifiers, seperated by whitespace and ending with a } --> |
| 548 |
<context name="Ocamldoc References" lineEndContext="#stay" attribute="Mismatched Brackets"> |
| 549 |
<DetectChar char="}" context="#pop" attribute="Ocamldoc Markup" /> |
| 550 |
<Detect2Chars char="*" char1=")" context="#pop" attribute="Mismatched Brackets" /> |
| 551 |
<RegExpr String="&IDENT;(\.&IDENT;)*" context="#stay" attribute="Ocamldoc Link" /> |
| 552 |
<DetectSpaces context="#stay" attribute="Ocamldoc Markup" /> |
| 553 |
</context> |
| 554 |
|
| 555 |
<!-- Unmatched closing brackets- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 556 |
|
| 557 |
<context name="Unmatched Closing Brackets" lineEndContext="#stay" attribute="Operator"> |
| 558 |
<Detect2Chars char="*" char1=")" context="#pop" attribute="Mismatched Brackets" /> |
| 559 |
<Detect2Chars char="v" char1="}" context="#stay" attribute="Mismatched Brackets" /> |
| 560 |
<Detect2Chars char="]" char1="}" context="#stay" attribute="Mismatched Brackets" /> |
| 561 |
<Detect2Chars char="%" char1="}" context="#stay" attribute="Mismatched Brackets" /> |
| 562 |
<AnyChar String="]}" context="#stay" attribute="Mismatched Brackets" /> |
| 563 |
</context> |
| 564 |
</contexts> |
| 565 |
|
| 566 |
<itemDatas> |
| 567 |
<itemData name="Operator" defStyleNum="dsNormal" /> |
| 568 |
<itemData name="Keyword" defStyleNum="dsKeyword" /> |
| 569 |
<itemData name="Revised Syntax Keyword" defStyleNum="dsNormal" /> |
| 570 |
<itemData name="Lowercase Identifier" defStyleNum="dsNormal" /> |
| 571 |
<itemData name="Uppercase Identifier" defStyleNum="dsNormal" italic="true" /> |
| 572 |
|
| 573 |
<!-- Lowercase pervasive identifiers: --> |
| 574 |
<itemData name="Flow Control Functions" defStyleNum="dsDataType" /> |
| 575 |
<itemData name="Pervasive Functions" defStyleNum="dsDataType" /> |
| 576 |
<itemData name="Pervasive Types" defStyleNum="dsDataType" /> |
| 577 |
|
| 578 |
<!-- Uppercase pervasive identifiers: --> |
| 579 |
<itemData name="Pervasive Exceptions" defStyleNum="dsDataType" italic="true" /> |
| 580 |
<itemData name="Pervasive Variant Tags" defStyleNum="dsDataType" italic="true" /> |
| 581 |
<itemData name="Standard Library Modules" defStyleNum="dsDataType" italic="true" /> |
| 582 |
|
| 583 |
<itemData name="Decimal" defStyleNum="dsDecVal" /> |
| 584 |
<itemData name="Hexadecimal" defStyleNum="dsBaseN" /> |
| 585 |
<itemData name="Octal" defStyleNum="dsBaseN" /> |
| 586 |
<itemData name="Binary" defStyleNum="dsBaseN" /> |
| 587 |
<itemData name="Float" defStyleNum="dsFloat" /> |
| 588 |
|
| 589 |
<itemData name="Character" defStyleNum="dsChar" /> |
| 590 |
<itemData name="String" defStyleNum="dsString" /> |
| 591 |
<itemData name="Camlp4 Quotation" defStyleNum="dsString" /> |
| 592 |
<itemData name="Escaped Characters" defStyleNum="dsChar" /> |
| 593 |
|
| 594 |
<itemData name="Directive" defStyleNum="dsOthers" /> |
| 595 |
|
| 596 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 597 |
<itemData name="String in Comment" defStyleNum="dsComment" bold="true" /> |
| 598 |
<itemData name="Mismatched Brackets" defStyleNum="dsError" /> |
| 599 |
|
| 600 |
<itemData name="Ocamldoc Markup" defStyleNum="dsOthers" /> |
| 601 |
<itemData name="Ocamldoc Text" defStyleNum="dsComment" italic="false" /> |
| 602 |
<itemData name="Ocamldoc Bold" defStyleNum="dsComment" italic="false" bold="true" /> |
| 603 |
<itemData name="Ocamldoc Italic" defStyleNum="dsComment" italic="true" bold="false" /> |
| 604 |
<itemData name="Ocamldoc Emphasised" defStyleNum="dsComment" italic="true" bold="true" /> |
| 605 |
<itemData name="Ocamldoc Heading" defStyleNum="dsComment" italic="false" bold="true" underline="true" /> |
| 606 |
<itemData name="Ocamldoc Link" defStyleNum="dsComment" italic="false" underline="true" color="#0000ff" /> |
| 607 |
<itemData name="Ocamldoc LaTeX" defStyleNum="dsComment" italic="false" /> |
| 608 |
<itemData name="Ocamldoc Custom Tag" defStyleNum="dsOthers" italic="true" /> |
| 609 |
|
| 610 |
<itemData name="qtest header style" defStyleNum="dsNormal" backgroundColor="#FFEBE0" /> |
| 611 |
<itemData name="qtest param style" defStyleNum="dsNormal" italic="true" color="#7788FF" /> |
| 612 |
<!-- backgroundColor="#EEEEFF" --> |
| 613 |
<itemData name="qtest body style" defStyleNum="dsNormal" bold="true" backgroundColor="#D6FFEB" /> |
| 614 |
</itemDatas> |
| 615 |
</highlighting> |
| 616 |
|
| 617 |
<general> |
| 618 |
<keywords casesensitive="true" /> |
| 619 |
<comments> |
| 620 |
<comment name="multiLine" start="(*" end="*)" region ="comment" /> |
| 621 |
</comments> |
| 622 |
</general> |
| 623 |
</language> |
| 624 |
<!-- kate: space-indent on; indent-width 2; replace-tabs on; --> |