1 <?xml version="1.0"?>
\r
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">
\r
7 <PROPERTY NAME="lineComment" VALUE=".. "/>
\r
8 <!-- indent after literal blocks and directives -->
\r
9 <PROPERTY NAME="indentNextLines" VALUE=".*::$"/>
\r
12 <RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="FALSE" ESCAPE="\">
\r
15 <EOL_SPAN AT_LINE_START="TRUE" TYPE="KEYWORD3">__</EOL_SPAN>
\r
16 <EOL_SPAN AT_LINE_START="TRUE" TYPE="KEYWORD3">.. _</EOL_SPAN>
\r
18 <!-- section titles -->
\r
19 <SEQ_REGEXP HASH_CHAR="===" TYPE="LABEL">={3,}</SEQ_REGEXP>
\r
20 <SEQ_REGEXP HASH_CHAR="---" TYPE="LABEL">-{3,}</SEQ_REGEXP>
\r
21 <SEQ_REGEXP HASH_CHAR="~~~" TYPE="LABEL">~{3,}</SEQ_REGEXP>
\r
22 <SEQ_REGEXP HASH_CHAR="###" TYPE="LABEL">#{3,}</SEQ_REGEXP>
\r
23 <SEQ_REGEXP HASH_CHAR='"""' TYPE="LABEL">"{3,}</SEQ_REGEXP>
\r
24 <SEQ_REGEXP HASH_CHAR="^^^" TYPE="LABEL">\^{3,}</SEQ_REGEXP>
\r
25 <SEQ_REGEXP HASH_CHAR="+++" TYPE="LABEL">\+{3,}</SEQ_REGEXP>
\r
26 <SEQ_REGEXP HASH_CHAR="***" TYPE="LABEL">\*{3,}</SEQ_REGEXP>
\r
28 <!-- replacement -->
\r
31 AT_LINE_START="TRUE"
\r
33 >\.\.\s\|[^|]+\|</SEQ_REGEXP>
\r
35 <!-- substitution -->
\r
38 AT_LINE_START="FALSE"
\r
40 >\|[^|]+\|</SEQ_REGEXP>
\r
42 <!-- directives: .. name:: -->
\r
45 AT_LINE_START="TRUE"
\r
47 >\.\.\s[A-z][A-z0-9-_]+::</SEQ_REGEXP>
\r
49 <!-- strong emphasis: **...** -->
\r
52 AT_LINE_START="FALSE"
\r
54 >\*\*[^*]+\*\*</SEQ_REGEXP>
\r
56 <!-- emphasis: *...* -->
\r
59 AT_LINE_START="FALSE"
\r
61 >\*[^\s*][^*]*\*</SEQ_REGEXP>
\r
64 <EOL_SPAN AT_LINE_START="TRUE" TYPE="COMMENT1">.. </EOL_SPAN>
\r
66 <!-- links: `...`_ or `...`__ -->
\r
70 >`[A-z0-9]+[^`]+`_{1,2}</SEQ_REGEXP>
\r
72 <!-- footnote reference: [0]_ -->
\r
76 >\[[0-9]+\]_</SEQ_REGEXP>
\r
78 <!-- footnote reference: [#]_ or [#foo]_ -->
\r
82 >\[#[A-z0-9_]*\]_</SEQ_REGEXP>
\r
84 <!-- footnote reference: [*]_ -->
\r
85 <SEQ TYPE="LABEL">[*]_</SEQ>
\r
87 <!-- citation reference: [foo]_ -->
\r
91 >\[[A-z][A-z0-9_-]*\]_</SEQ_REGEXP>
\r
93 <!-- inline literal: ``...``-->
\r
97 >``[^`]+``</SEQ_REGEXP>-->
\r
98 <SPAN TYPE="LITERAL1">
\r
103 <!-- interpreted text: `...` -->
\r
108 >`[^`]+`</SEQ_REGEXP>
\r
110 <SPAN TYPE="KEYWORD1">
\r
115 <SEQ_REGEXP HASH_CHAR="```" TYPE="LABEL">`{3,}</SEQ_REGEXP>
\r
117 <!-- :field list: -->
\r
121 >:[A-z][A-z0-9 =\s\t_]*:</SEQ_REGEXP>
\r
127 >\+-[+-]+</SEQ_REGEXP>
\r
131 >\+=[+=]+</SEQ_REGEXP>
\r