Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/yaml.xml
Show All 21 Lines | 3 | [ | |||
---|---|---|---|---|---|
22 | 22 | | |||
23 | <!-- Key quoted --> | 23 | <!-- Key quoted --> | ||
24 | <!ENTITY keyDQ ""(?:\\.|[^"])+"\s*"> | 24 | <!ENTITY keyDQ ""(?:\\.|[^"])+"\s*"> | ||
25 | <!ENTITY keySQ "'(?:[^']|'')+'\s*"> | 25 | <!ENTITY keySQ "'(?:[^']|'')+'\s*"> | ||
26 | <!-- Literal/folded operator --> | 26 | <!-- Literal/folded operator --> | ||
27 | <!ENTITY literalOp "[\|>][\-\+]?"> | 27 | <!ENTITY literalOp "[\|>][\-\+]?"> | ||
28 | <!-- Key after "?" or "-", used to detect literal/folded operator --> | 28 | <!-- Key after "?" or "-", used to detect literal/folded operator --> | ||
29 | <!ENTITY keyAfterOp "(?:[^"'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)"> | 29 | <!ENTITY keyAfterOp "(?:[^"'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)"> | ||
30 | | ||||
31 | <!ENTITY dataTypes "!!\S+"> | ||||
32 | <!ENTITY alias "&\S+"> | ||||
33 | <!ENTITY reference "\*\S+"> | ||||
30 | ]> | 34 | ]> | ||
31 | 35 | | |||
32 | <!-- Author: Dr Orlovsky MA <maxim@orlovsky.info> //--> | 36 | <!-- Author: Dr Orlovsky MA <maxim@orlovsky.info> //--> | ||
33 | <!-- Modifications, values & support for literal/folded style: | 37 | <!-- Modifications (YAML 1.2), values & support for literal/folded style: | ||
34 | Nibaldo González S. <nibgonz@gmail.com> //--> | 38 | Nibaldo González S. <nibgonz@gmail.com> | ||
35 | <language name="YAML" version="5" kateversion="5.0" section="Markup" | 39 | These modifications are under the MIT license. //--> | ||
36 | extensions="*.yaml;*.yml" mimetype="text/yaml" | 40 | <language name="YAML" version="6" kateversion="5.0" section="Markup" | ||
37 | author="Dr Orlovsky MA (dr.orlovsky@gmail.com)" license="LGPL"> | 41 | extensions="*.yaml;*.yml" mimetype="text/yaml" priority="9" | ||
42 | author="Dr Orlovsky MA (dr.orlovsky@gmail.com), Nibaldo González (nibgonz@gmail.com)" license="LGPL"> | ||||
38 | <highlighting> | 43 | <highlighting> | ||
39 | <contexts> | 44 | <contexts> | ||
40 | <context attribute="Normal Text" lineEndContext="#stay" name="normal" > | 45 | <context attribute="Attribute" lineEndContext="#stay" name="normal" > | ||
41 | <StringDetect attribute="Document Header" context="header" String="---" column="0"/> | 46 | <StringDetect attribute="Document Header" context="header" String="---" column="0"/> | ||
42 | <RegExpr attribute="End of Document" context="EOD" String="^\.\.\.$"/> | 47 | <RegExpr attribute="End of Document" context="EOD" String="^\.\.\.$" column="0"/> | ||
43 | <DetectChar attribute="Directive" context="directive" char="%" column="0"/> | 48 | <DetectChar attribute="Directive" context="directive" char="%" column="0"/> | ||
44 | 49 | | |||
45 | <DetectChar attribute="Comment" context="comment" char="#" /> | 50 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||
46 | 51 | | |||
47 | <!-- Literal/Folded Style --> | 52 | <!-- Literal/Folded Style --> | ||
48 | <IncludeRules context="find-literal-block" /> | 53 | <IncludeRules context="find-literal-block" /> | ||
49 | 54 | | |||
50 | <RegExpr attribute="Operator" firstNonSpace="true" context="dash" String="\-(?=\s|$)" /> | 55 | <RegExpr attribute="Operator" firstNonSpace="true" context="dash" String="\-(?=\s|$)" /> | ||
51 | <DetectChar attribute="Operator" firstNonSpace="true" context="mapping-key" char="?" /> | 56 | <DetectChar attribute="Operator" firstNonSpace="true" context="mapping-key" char="?" /> | ||
52 | 57 | | |||
53 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | 58 | <DetectChar attribute="Operator" firstNonSpace="true" context="list" char="[" beginRegion="List" /> | ||
54 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | 59 | <DetectChar attribute="Operator" firstNonSpace="true" context="hash" char="{" beginRegion="Hash" /> | ||
55 | 60 | | |||
56 | <RegExpr attribute="Data Types" firstNonSpace="true" context="#stay" String="!!\S+" /> | 61 | <RegExpr attribute="Data Types" firstNonSpace="true" context="after-data" String="&dataTypes;" /> | ||
57 | <RegExpr attribute="Alias" firstNonSpace="true" context="#stay" String="&\S+" /> | 62 | <RegExpr attribute="Alias" firstNonSpace="true" context="after-data" String="&alias;" /> | ||
58 | <RegExpr attribute="Reference" firstNonSpace="true" context="#stay" String="\*\S+" /> | 63 | <RegExpr attribute="Reference" firstNonSpace="true" context="after-data" String="&reference;" /> | ||
59 | 64 | | |||
60 | <RegExpr attribute="Key" context="attribute-pre" String="[^"'#\-\s][^:#]*:(?=\s|$)"/> | 65 | <RegExpr attribute="Key" context="dpoints-attribute-pre" String="[^"'#\-\s][^:#]*(?=:(\s|$))"/> | ||
61 | <RegExpr attribute="Key" context="attribute-pre" String="\-([^\s:#][^:#]*)?\:(?=\s|$)"/> | 66 | <RegExpr attribute="Key" context="dpoints-attribute-pre" String="\-([^\s:#][^:#]*)?(?=:(\s|$))"/> | ||
62 | <RegExpr attribute="Key" context="attribute-pre" String="&keyDQ;:(?=\s|$)"/> | 67 | <RegExpr attribute="Key" context="dpoints-attribute-pre" String="&keyDQ;(?=:(\s|$))"/> | ||
63 | <RegExpr attribute="Key" context="attribute-pre" String="&keySQ;:(?=\s|$)"/> | 68 | <RegExpr attribute="Key" context="dpoints-attribute-pre" String="&keySQ;(?=:(\s|$))"/> | ||
64 | <RegExpr attribute="Key" context="attribute-pre" String=":(?=\s|$)"/> | 69 | <RegExpr attribute="Key Points Operator" context="attribute-pre" String=":(?=\s|$)"/> | ||
65 | 70 | | |||
66 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | 71 | <DetectChar attribute="String" firstNonSpace="true" context="string" char="'" beginRegion="String" /> | ||
67 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | 72 | <DetectChar attribute="String" firstNonSpace="true" context="stringx" char=""" beginRegion="String" /> | ||
68 | <IncludeRules context="values-firstnonspace" /> | 73 | <IncludeRules context="values-firstnonspace" /> | ||
69 | <DetectSpaces/> | 74 | <DetectSpaces/> | ||
70 | </context> | 75 | </context> | ||
71 | 76 | | |||
72 | <context attribute="Normal Text" lineEndContext="#pop" name="mapping-key" fallthrough="true" fallthroughContext="#pop"> | 77 | <context attribute="Normal Text" lineEndContext="#pop" name="mapping-key" fallthrough="true" fallthroughContext="#pop"> | ||
78 | <RegExpr attribute="Comment" context="#pop!comment" String="(^|\s+)#" /> | ||||
73 | <DetectSpaces /> | 79 | <DetectSpaces /> | ||
74 | <RegExpr attribute="Operator" context="#pop!dash" String="\-(?=\s|$)" /> | 80 | <RegExpr attribute="Operator" context="#pop!dash" String="\-(?=\s|$)" /> | ||
75 | <RegExpr attribute="Data Types" context="#pop" String="!!\S+" /> | 81 | <RegExpr attribute="Data Types" context="#pop!after-data" String="&dataTypes;" /> | ||
76 | <RegExpr attribute="Alias" context="#pop" String="&\S+" /> | 82 | <RegExpr attribute="Alias" context="#pop!after-data" String="&alias;" /> | ||
77 | <RegExpr attribute="Reference" context="#pop" String="\*\S+" /> | 83 | <RegExpr attribute="Reference" context="#pop!after-data" String="&reference;" /> | ||
84 | | ||||
85 | <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" /> | ||||
86 | <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" /> | ||||
87 | <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" /> | ||||
88 | <DetectChar attribute="String" context="#pop!stringx" char=""" beginRegion="String" /> | ||||
78 | </context> | 89 | </context> | ||
79 | 90 | | |||
80 | <context attribute="List" lineEndContext="#pop" name="dash" fallthrough="true" fallthroughContext="#pop"> | 91 | <context attribute="Normal Text" lineEndContext="#pop" name="dash" fallthrough="true" fallthroughContext="#pop"> | ||
92 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
81 | <DetectSpaces/> | 93 | <DetectSpaces/> | ||
82 | <DetectChar attribute="Comment" context="comment" char="#" /> | 94 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||
83 | <RegExpr attribute="Data Types" context="#stay" String="!!\S+" /> | 95 | <RegExpr attribute="Alias" context="#stay" String="&alias;" /> | ||
84 | <RegExpr attribute="Alias" context="#stay" String="&\S+" /> | 96 | <RegExpr attribute="Reference" context="#stay" String="&reference;" /> | ||
85 | <RegExpr attribute="Reference" context="#stay" String="\*\S+" /> | | |||
86 | <IncludeRules context="values" /> | 97 | <IncludeRules context="values" /> | ||
87 | <DetectChar attribute="Operator" context="#pop!mapping-key" char="?" /> | 98 | <DetectChar attribute="Operator" context="#pop!mapping-key" char="?" /> | ||
88 | <RegExpr attribute="Operator" context="#stay" String="\-(?=\s|$)" /> | 99 | <RegExpr attribute="Operator" context="#stay" String="\-(?=\s|$)" /> | ||
100 | | ||||
101 | <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" /> | ||||
102 | <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" /> | ||||
103 | <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" /> | ||||
104 | <DetectChar attribute="String" context="#pop!stringx" char=""" beginRegion="String" /> | ||||
105 | </context> | ||||
106 | | ||||
107 | <!-- Highlight lists, hashes and strings after a data type, reference or alias --> | ||||
108 | <context attribute="Normal Text" lineEndContext="#pop" name="after-data" fallthrough="true" fallthroughContext="#pop"> | ||||
109 | <RegExpr attribute="Comment" context="#pop!comment" String="(^|\s+)#" /> | ||||
110 | <DetectSpaces /> | ||||
111 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||||
112 | <RegExpr attribute="Alias" context="#stay" String="&alias;" /> | ||||
113 | <RegExpr attribute="Reference" context="#stay" String="&reference;" /> | ||||
114 | | ||||
115 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | ||||
116 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | ||||
117 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | ||||
118 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | ||||
89 | </context> | 119 | </context> | ||
90 | 120 | | |||
91 | <context attribute="Document Header" lineEndContext="#pop" name="header"> | 121 | <context attribute="Document Header" lineEndContext="#pop" name="header"> | ||
92 | <DetectChar attribute="Comment" context="comment" char="#" /> | 122 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||
93 | <RegExpr attribute="Literal/Folded Operator" context="#pop!literal-block-simple" String="&literalOp;(?=&endValue;)" beginRegion="Literal" /> | 123 | <RegExpr attribute="Literal/Folded Operator" context="header-literal-operator" String="\s&literalOp;(?=&endValue;)" lookAhead="true" /> | ||
124 | </context> | ||||
125 | <context attribute="Document Header" lineEndContext="#pop#pop" name="header-literal-operator" fallthrough="true" fallthroughContext="#pop"> | ||||
126 | <DetectSpaces /> | ||||
127 | <RegExpr attribute="Literal/Folded Operator" context="#pop#pop!literal-block-simple" String="&literalOp;" beginRegion="Literal" /> | ||||
94 | </context> | 128 | </context> | ||
95 | 129 | | |||
96 | <context attribute="End of Document" lineEndContext="#stay" name="EOD"> | 130 | <context attribute="End of Document" lineEndContext="#stay" name="EOD"> | ||
97 | </context> | 131 | </context> | ||
98 | 132 | | |||
99 | <context attribute="Directive" lineEndContext="#pop" name="directive"> | 133 | <context attribute="Directive" lineEndContext="#pop" name="directive"> | ||
100 | </context> | 134 | </context> | ||
101 | 135 | | |||
102 | <context attribute="Attribute" lineEndContext="#pop#pop" name="attribute"> | 136 | <context attribute="Attribute" lineEndContext="#pop#pop" name="attribute"> | ||
103 | <DetectChar attribute="Comment" context="comment" char="#" /> | 137 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||
104 | </context> | 138 | </context> | ||
105 | 139 | | |||
106 | <context attribute="Attribute" lineEndContext="#stay" name="list-attribute-inline"> | 140 | <context attribute="Attribute" lineEndContext="#stay" name="list-attribute-inline"> | ||
107 | <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",]" /> | 141 | <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",]" /> | ||
108 | <DetectChar attribute="Comment" context="comment" char="#" /> | 142 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||
109 | </context> | 143 | </context> | ||
110 | <context attribute="Attribute" lineEndContext="#stay" name="hash-attribute-inline"> | 144 | <context attribute="Attribute" lineEndContext="#stay" name="hash-attribute-inline"> | ||
111 | <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",}" /> | 145 | <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",}" /> | ||
112 | <DetectChar attribute="Comment" context="comment" char="#" /> | 146 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||
113 | </context> | 147 | </context> | ||
114 | 148 | | |||
149 | <!-- Attribute --> | ||||
150 | <context attribute="Attribute" lineEndContext="#pop" name="dpoints-attribute-pre" fallthrough="true" fallthroughContext="#pop!attribute-pre"> | ||||
151 | <DetectChar attribute="Key Points Operator" context="#pop!attribute-pre" char=":" /> <!-- Highlight two points after Key --> | ||||
152 | </context> | ||||
115 | <context attribute="Attribute" lineEndContext="#pop" name="attribute-pre" fallthrough="true" fallthroughContext="attribute"> | 153 | <context attribute="Attribute" lineEndContext="#pop" name="attribute-pre" fallthrough="true" fallthroughContext="attribute"> | ||
154 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
116 | <DetectSpaces/> | 155 | <DetectSpaces/> | ||
117 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
118 | <DetectChar attribute="Operator" context="#stay" char="?" /> | 156 | <DetectChar attribute="Operator" context="#stay" char="?" /> | ||
119 | <RegExpr attribute="Data Types" context="#stay" String="!!\S+" /> | 157 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||
120 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | 158 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | ||
121 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | 159 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | ||
122 | <DetectChar attribute="String" context="attribute-string" char="'" beginRegion="String" /> | 160 | <DetectChar attribute="String" context="attribute-string" char="'" beginRegion="String" /> | ||
123 | <DetectChar attribute="String" context="attribute-stringx" char=""" beginRegion="String" /> | 161 | <DetectChar attribute="String" context="attribute-stringx" char=""" beginRegion="String" /> | ||
124 | <RegExpr attribute="Alias" context="#stay" String="&\S+(?=\s+[\[\{])" /> | 162 | <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" /> | ||
125 | <RegExpr attribute="Reference" context="#stay" String="\*\S+(?=\s+[\[\{])" /> | 163 | <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" /> | ||
126 | <RegExpr attribute="Alias" context="attribute" String="&\S+" /> | 164 | <RegExpr attribute="Alias" context="attribute" String="&alias;" /> | ||
127 | <RegExpr attribute="Reference" context="attribute" String="\*\S+" /> | 165 | <RegExpr attribute="Reference" context="attribute" String="&reference;" /> | ||
128 | <IncludeRules context="values" /> | 166 | <IncludeRules context="values" /> | ||
167 | <RegExpr attribute="Literal/Folded Operator" context="#stay" String="&literalOp;(?=&endValue;)" /> | ||||
129 | </context> | 168 | </context> | ||
130 | 169 | | |||
131 | <context attribute="Attribute" lineEndContext="#pop" name="default-attribute-pre-inline"> | 170 | <context attribute="Attribute" lineEndContext="#pop" name="default-attribute-pre-inline"> | ||
171 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
132 | <DetectSpaces/> | 172 | <DetectSpaces/> | ||
133 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
134 | 173 | | |||
135 | <DetectChar attribute="Operator" context="#stay" char="?" /> | 174 | <DetectChar attribute="Operator" context="#stay" char="?" /> | ||
136 | <RegExpr attribute="Data Types" context="#stay" String="!!\S+" /> | 175 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||
137 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | 176 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | ||
138 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | 177 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | ||
139 | <DetectChar attribute="String" context="attribute-string-inline" char="'" beginRegion="String" /> | 178 | <DetectChar attribute="String" context="attribute-string-inline" char="'" beginRegion="String" /> | ||
140 | <DetectChar attribute="String" context="attribute-stringx-inline" char=""" beginRegion="String" /> | 179 | <DetectChar attribute="String" context="attribute-stringx-inline" char=""" beginRegion="String" /> | ||
141 | <RegExpr attribute="Alias" context="#stay" String="&\S+(?=\s+[\[\{])" /> | 180 | <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" /> | ||
142 | <RegExpr attribute="Reference" context="#stay" String="\*\S+(?=\s+[\[\{])" /> | 181 | <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" /> | ||
143 | </context> | 182 | </context> | ||
144 | 183 | | |||
184 | <!-- Attribute Inline, Within List --> | ||||
185 | <context attribute="Attribute" lineEndContext="#pop" name="dpoints-list-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!list-attribute-pre-inline"> | ||||
186 | <DetectChar attribute="Key Points Operator" context="#pop!list-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key --> | ||||
187 | </context> | ||||
145 | <context attribute="Attribute" lineEndContext="#pop" name="list-attribute-pre-inline" fallthrough="true" fallthroughContext="list-attribute-inline"> | 188 | <context attribute="Attribute" lineEndContext="#pop" name="list-attribute-pre-inline" fallthrough="true" fallthroughContext="list-attribute-inline"> | ||
146 | <IncludeRules context="default-attribute-pre-inline" /> | 189 | <IncludeRules context="default-attribute-pre-inline" /> | ||
147 | <RegExpr attribute="Alias" context="list-attribute-inline" String="&\S+" /> | 190 | <RegExpr attribute="Alias" context="list-attribute-inline" String="&alias;" /> | ||
148 | <RegExpr attribute="Reference" context="list-attribute-inline" String="\*\S+" /> | 191 | <RegExpr attribute="Reference" context="list-attribute-inline" String="&reference;" /> | ||
149 | 192 | | |||
150 | <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",]" /> | 193 | <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",]" /> | ||
151 | <IncludeRules context="values-inline" /> | 194 | <IncludeRules context="values-inline" /> | ||
152 | </context> | 195 | </context> | ||
196 | | ||||
197 | <!-- Attribute Inline, Within Hash --> | ||||
198 | <context attribute="Attribute" lineEndContext="#pop" name="dpoints-hash-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!hash-attribute-pre-inline"> | ||||
199 | <DetectChar attribute="Key Points Operator" context="#pop!hash-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key --> | ||||
200 | </context> | ||||
153 | <context attribute="Attribute" lineEndContext="#pop" name="hash-attribute-pre-inline" fallthrough="true" fallthroughContext="hash-attribute-inline"> | 201 | <context attribute="Attribute" lineEndContext="#pop" name="hash-attribute-pre-inline" fallthrough="true" fallthroughContext="hash-attribute-inline"> | ||
154 | <IncludeRules context="default-attribute-pre-inline" /> | 202 | <IncludeRules context="default-attribute-pre-inline" /> | ||
155 | <RegExpr attribute="Alias" context="hash-attribute-inline" String="&\S+" /> | 203 | <RegExpr attribute="Alias" context="hash-attribute-inline" String="&alias;" /> | ||
156 | <RegExpr attribute="Reference" context="hash-attribute-inline" String="\*\S+" /> | 204 | <RegExpr attribute="Reference" context="hash-attribute-inline" String="&reference;" /> | ||
157 | 205 | | |||
158 | <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",}" /> | 206 | <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",}" /> | ||
159 | <IncludeRules context="values-inline" /> | 207 | <IncludeRules context="values-inline" /> | ||
160 | </context> | 208 | </context> | ||
161 | 209 | | |||
210 | <!-- List --> | ||||
162 | <!-- Context "find-values-list" highlights values and then sends to "list-element" --> | 211 | <!-- Context "find-values-list" highlights values and then sends to "list-element" --> | ||
163 | <context attribute="List" lineEndContext="#stay" name="list" fallthrough="true" fallthroughContext="#pop!find-values-list"> | 212 | <context attribute="List" lineEndContext="#stay" name="list" fallthrough="true" fallthroughContext="#pop!find-values-list" noIndentationBasedFolding="true"> | ||
213 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
164 | <DetectSpaces /> | 214 | <DetectSpaces /> | ||
165 | <DetectChar attribute="Operator" context="#pop!find-values-list" char="?" /> | 215 | <DetectChar attribute="Operator" context="#pop!find-values-list" char="?" /> | ||
166 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
167 | </context> | 216 | </context> | ||
168 | <context attribute="List" lineEndContext="#stay" name="list-element"> | 217 | <context attribute="List" lineEndContext="#stay" name="list-element" noIndentationBasedFolding="true"> | ||
169 | <DetectChar attribute="Comment" context="comment" char="#" /> | 218 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||
170 | 219 | | |||
171 | <DetectChar attribute="Operator" context="#pop" char="]" endRegion="List" /> | 220 | <DetectChar attribute="Operator" context="#pop" char="]" endRegion="List" /> | ||
172 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | 221 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | ||
173 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | 222 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | ||
174 | 223 | | |||
175 | <RegExpr attribute="Key" context="list-attribute-pre-inline" String="[^"'#\-,\]\s][^:#,\]]*:(?=\s|$)"/> | 224 | <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="[^"'#\-,\]\s][^:#,\]]*(?=:(\s|$))"/> | ||
176 | <RegExpr attribute="Key" context="list-attribute-pre-inline" String="\-([^\s:#,\]][^:#,\]]*)?\:(?=\s|$)"/> | 225 | <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="\-([^\s:#,\]][^:#,\]]*)?(?=:(\s|$))"/> | ||
177 | <RegExpr attribute="Key" context="list-attribute-pre-inline" String="&keyDQ;:(?=\s|$)"/> | 226 | <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="&keyDQ;(?=:(\s|$))"/> | ||
178 | <RegExpr attribute="Key" context="list-attribute-pre-inline" String="&keySQ;:(?=\s|$)"/> | 227 | <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="&keySQ;(?=:(\s|$))"/> | ||
179 | <RegExpr attribute="Key" context="list-attribute-pre-inline" String=":(?=\s|$)" firstNonSpace="true" /> | 228 | <RegExpr attribute="Key Points Operator" context="list-attribute-pre-inline" String=":(?=\s|$)" firstNonSpace="true" /> | ||
180 | 229 | | |||
181 | <RegExpr attribute="Data Types" context="#stay" String="!!\S+" /> | 230 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||
182 | <RegExpr attribute="Alias" context="#stay" String="&\S+" /> | 231 | <RegExpr attribute="Alias" context="#stay" String="&alias;" /> | ||
183 | <RegExpr attribute="Reference" context="#stay" String="\*\S+" /> | 232 | <RegExpr attribute="Reference" context="#stay" String="&reference;" /> | ||
184 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | 233 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | ||
185 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | 234 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | ||
186 | 235 | | |||
187 | <DetectChar attribute="Operator" context="#pop!list" char="," /> | 236 | <DetectChar attribute="Operator" context="#pop!list" char="," /> | ||
188 | <IncludeRules context="values-list" /> | 237 | <IncludeRules context="values-list" /> | ||
189 | </context> | 238 | </context> | ||
190 | 239 | | |||
191 | <context attribute="Hash" lineEndContext="#stay" name="hash" fallthrough="true" fallthroughContext="#pop!hash-element"> | 240 | <!-- Hash --> | ||
241 | <context attribute="Hash" lineEndContext="#stay" name="hash" fallthrough="true" fallthroughContext="#pop!hash-element" noIndentationBasedFolding="true"> | ||||
242 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
192 | <DetectSpaces /> | 243 | <DetectSpaces /> | ||
193 | <DetectChar attribute="Operator" context="#pop!hash-element" char="?" /> | 244 | <DetectChar attribute="Operator" context="#pop!hash-element" char="?" /> | ||
194 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
195 | </context> | 245 | </context> | ||
196 | <context attribute="Hash" lineEndContext="#stay" name="hash-element"> | 246 | <context attribute="Hash" lineEndContext="#stay" name="hash-element" noIndentationBasedFolding="true"> | ||
247 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
197 | <DetectSpaces/> | 248 | <DetectSpaces/> | ||
198 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
199 | 249 | | |||
200 | <RegExpr attribute="Key" context="hash-attribute-pre-inline" String="[^\s"'#\-,\}\s][^:#,\}]*:(?=\s|$)"/> | 250 | <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="[^\s"'#\-,\}\s][^:#,\}]*(?=:(\s|$))"/> | ||
201 | <RegExpr attribute="Key" context="hash-attribute-pre-inline" String="\-([^\s:#,\}][^:#,\}]*)?\:(?=\s|$)"/> | 251 | <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="\-([^\s:#,\}][^:#,\}]*)?(?=:(\s|$))"/> | ||
202 | <RegExpr attribute="Key" context="hash-attribute-pre-inline" String="&keyDQ;:(?=\s|$)"/> | 252 | <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="&keyDQ;(?=:(\s|$))"/> | ||
203 | <RegExpr attribute="Key" context="hash-attribute-pre-inline" String="&keySQ;:(?=\s|$)"/> | 253 | <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="&keySQ;(?=:(\s|$))"/> | ||
204 | <RegExpr attribute="Key" context="hash-attribute-pre-inline" String=":(?=\s|$)"/> | 254 | <RegExpr attribute="Key Points Operator" context="hash-attribute-pre-inline" String=":(?=\s|$)"/> | ||
205 | 255 | | |||
206 | <DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" /> | 256 | <DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" /> | ||
207 | <DetectChar attribute="Operator" context="#pop!hash" char="," /> | 257 | <DetectChar attribute="Operator" context="#pop!hash" char="," /> | ||
208 | 258 | | |||
209 | <!-- This improves highlighting in keys with multiple lines --> | 259 | <!-- This improves highlighting in keys with multiple lines --> | ||
210 | <RegExpr attribute="Data Types" context="#stay" String="!!\S+" /> | 260 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||
211 | <RegExpr attribute="Alias" context="#stay" String="&\S+" /> | 261 | <RegExpr attribute="Alias" context="#stay" String="&alias;" /> | ||
212 | <RegExpr attribute="Reference" context="#stay" String="\*\S+" /> | 262 | <RegExpr attribute="Reference" context="#stay" String="&reference;" /> | ||
213 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | 263 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | ||
214 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | 264 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | ||
215 | </context> | 265 | </context> | ||
216 | 266 | | |||
217 | <context attribute="String" lineEndContext="#stay" name="attribute-string"> | 267 | <!-- Strings --> | ||
268 | <context attribute="String" lineEndContext="#stay" name="attribute-string" noIndentationBasedFolding="true"> | ||||
218 | <DetectIdentifier /> | 269 | <DetectIdentifier /> | ||
219 | <IncludeRules context="escaped-char-singleq" /> | 270 | <IncludeRules context="escaped-char-singleq" /> | ||
220 | <DetectChar attribute="String" context="attribute-end" char="'" endRegion="String" /> | 271 | <DetectChar attribute="String" context="attribute-end" char="'" endRegion="String" /> | ||
221 | </context> | 272 | </context> | ||
222 | 273 | | |||
223 | <context attribute="String" lineEndContext="#stay" name="attribute-stringx"> | 274 | <context attribute="String" lineEndContext="#stay" name="attribute-stringx" noIndentationBasedFolding="true"> | ||
224 | <DetectIdentifier /> | 275 | <DetectIdentifier /> | ||
225 | <IncludeRules context="escaped-char-doubleq" /> | 276 | <IncludeRules context="escaped-char-doubleq" /> | ||
226 | <DetectChar attribute="String" context="attribute-end" char=""" endRegion="String" /> | 277 | <DetectChar attribute="String" context="attribute-end" char=""" endRegion="String" /> | ||
227 | </context> | 278 | </context> | ||
228 | 279 | | |||
229 | <context attribute="String" lineEndContext="#stay" name="attribute-string-inline"> | 280 | <context attribute="String" lineEndContext="#stay" name="attribute-string-inline" noIndentationBasedFolding="true"> | ||
230 | <DetectIdentifier /> | 281 | <DetectIdentifier /> | ||
231 | <IncludeRules context="escaped-char-singleq" /> | 282 | <IncludeRules context="escaped-char-singleq" /> | ||
232 | <DetectChar attribute="String" context="attribute-end-inline" char="'" endRegion="String" /> | 283 | <DetectChar attribute="String" context="attribute-end-inline" char="'" endRegion="String" /> | ||
233 | </context> | 284 | </context> | ||
234 | 285 | | |||
235 | <context attribute="String" lineEndContext="#stay" name="attribute-stringx-inline"> | 286 | <context attribute="String" lineEndContext="#stay" name="attribute-stringx-inline" noIndentationBasedFolding="true"> | ||
236 | <DetectIdentifier /> | 287 | <DetectIdentifier /> | ||
237 | <IncludeRules context="escaped-char-doubleq" /> | 288 | <IncludeRules context="escaped-char-doubleq" /> | ||
238 | <DetectChar attribute="String" context="attribute-end-inline" char=""" endRegion="String" /> | 289 | <DetectChar attribute="String" context="attribute-end-inline" char=""" endRegion="String" /> | ||
239 | </context> | 290 | </context> | ||
240 | 291 | | |||
241 | <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end"> | 292 | <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end"> | ||
293 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
242 | <DetectSpaces attribute="Normal Text" context="#stay"/> | 294 | <DetectSpaces attribute="Normal Text" context="#stay"/> | ||
243 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
244 | </context> | 295 | </context> | ||
245 | 296 | | |||
246 | <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end-inline"> | 297 | <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end-inline"> | ||
298 | <RegExpr attribute="Comment" context="comment" String="(^|\s+)#" /> | ||||
247 | <DetectSpaces attribute="Normal Text" context="#stay"/> | 299 | <DetectSpaces attribute="Normal Text" context="#stay"/> | ||
248 | <AnyChar attribute="String" context="#pop#pop#pop" lookAhead="true" String="}]"/> | 300 | <AnyChar attribute="String" context="#pop#pop#pop" lookAhead="true" String="}]"/> | ||
249 | <DetectChar attribute="Operator" context="#pop#pop#pop" lookAhead="true" char="," /> | 301 | <DetectChar attribute="Operator" context="#pop#pop#pop" lookAhead="true" char="," /> | ||
250 | <DetectChar attribute="Comment" context="comment" char="#" /> | | |||
251 | </context> | 302 | </context> | ||
252 | 303 | | |||
253 | <context attribute="String" lineEndContext="#stay" name="string"> | 304 | <context attribute="String" lineEndContext="#stay" name="string" noIndentationBasedFolding="true"> | ||
254 | <DetectIdentifier /> | 305 | <DetectIdentifier /> | ||
255 | <IncludeRules context="escaped-char-singleq" /> | 306 | <IncludeRules context="escaped-char-singleq" /> | ||
256 | <DetectChar attribute="String" context="#pop" char="'" endRegion="String" /> | 307 | <DetectChar attribute="String" context="#pop" char="'" endRegion="String" /> | ||
257 | </context> | 308 | </context> | ||
258 | 309 | | |||
259 | <context attribute="String" lineEndContext="#stay" name="stringx"> | 310 | <context attribute="String" lineEndContext="#stay" name="stringx" noIndentationBasedFolding="true"> | ||
260 | <DetectIdentifier /> | 311 | <DetectIdentifier /> | ||
261 | <IncludeRules context="escaped-char-doubleq" /> | 312 | <IncludeRules context="escaped-char-doubleq" /> | ||
262 | <DetectChar attribute="String" context="#pop" char=""" endRegion="String" /> | 313 | <DetectChar attribute="String" context="#pop" char=""" endRegion="String" /> | ||
263 | </context> | 314 | </context> | ||
264 | 315 | | |||
265 | <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-doubleq"> | 316 | <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-doubleq"> | ||
266 | <RegExpr attribute="Escaped Character" context="#stay" String="\\([\s0abtnvfre"/\\N_Lp]|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})"/> | 317 | <RegExpr attribute="Escaped Character" context="#stay" String="\\([\s0abtnvfre"/\\N_Lp]|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})"/> | ||
267 | </context> | 318 | </context> | ||
▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 365 | <context attribute="Normal Text" lineEndContext="#stay" name="find-literal-block"> | |||
346 | <!-- CASE 3: There is a Key before the literal/folded operator (Key indentation is captured). | 397 | <!-- CASE 3: There is a Key before the literal/folded operator (Key indentation is captured). | ||
347 | The text with the Key's indentation plus a space is considered literal. | 398 | The text with the Key's indentation plus a space is considered literal. | ||
348 | Ex: | 399 | Ex: | ||
349 | > key: | | 400 | > key: | | ||
350 | > ^Start the literal text | 401 | > ^Start the literal text | ||
351 | > key: !!type >- | 402 | > key: !!type >- | ||
352 | > ^Start the folded text | 403 | > ^Start the folded text | ||
353 | --> | 404 | --> | ||
405 | <RegExpr attribute="Key Points Operator" context="literal-block-key" column="0" | ||||
406 | String="^(&space;*)\:(?=\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" /> | ||||
354 | <RegExpr attribute="Key" context="literal-block-key" column="0" | 407 | <RegExpr attribute="Key" context="literal-block-key" column="0" | ||
355 | String="^(&space;*)(?:[^"'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)?\:(?=\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" /> | 408 | String="^(&space;*)(?:[^"'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)(?=\:\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" /> | ||
356 | 409 | | |||
357 | <!-- CASE 4: Is there an operator "?" or "-" at the beginning of the line. | 410 | <!-- CASE 4: Is there an operator "?" or "-" at the beginning of the line. | ||
358 | NOTE: Nested characters "-" and "?" are considered as part of the indentation. | 411 | NOTE: Nested characters "-" and "?" are considered as part of the indentation. | ||
359 | Therefore, the indentation of the Key or the last operator "?" or "-" is captured. | 412 | Therefore, the indentation of the Key or the last operator "?" or "-" is captured. | ||
360 | Ex: | 413 | Ex: | ||
361 | > ? | | 414 | > ? | | ||
362 | > ^Start the literal Text | 415 | > ^Start the literal Text | ||
363 | > ? - - | | 416 | > ? - - | | ||
Show All 16 Lines | 426 | <!-- CASE 5: Literal/folded operator after a data type or other content. | |||
380 | > ^Start the literal text | 433 | > ^Start the literal text | ||
381 | --> | 434 | --> | ||
382 | <RegExpr context="start-literal-block-other" lookAhead="true" column="0" | 435 | <RegExpr context="start-literal-block-other" lookAhead="true" column="0" | ||
383 | String="^&space;*(([&\*]|!!)\S+\s+)+&literalOp;&endValue;" /> | 436 | String="^&space;*(([&\*]|!!)\S+\s+)+&literalOp;&endValue;" /> | ||
384 | </context> | 437 | </context> | ||
385 | 438 | | |||
386 | <!-- If the line with the literal operator starts with the "-" or "?" operator. | 439 | <!-- If the line with the literal operator starts with the "-" or "?" operator. | ||
387 | NOTE: The indentation capture is limited to 6 nested operators. --> | 440 | NOTE: The indentation capture is limited to 6 nested operators. --> | ||
388 | <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-withdash"> | 441 | <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-withdash" noIndentationBasedFolding="true"> | ||
389 | <!-- With Key: Capture the Key indentation --> | 442 | <!-- With Key: Capture the Key indentation --> | ||
390 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s2" String="^(&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | 443 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s2" String="^(&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | ||
391 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | 444 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | ||
392 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | 445 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | ||
393 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | 446 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | ||
394 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | 447 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | ||
395 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s7" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | 448 | <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s7" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> | ||
396 | <!-- Without Key: Capture the indentation of the last operator "?" or "-" --> | 449 | <!-- Without Key: Capture the indentation of the last operator "?" or "-" --> | ||
397 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s1" String="^(&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | 450 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s1" String="^(&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | ||
398 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s2" String="^(&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | 451 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s2" String="^(&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | ||
399 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | 452 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | ||
400 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | 453 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | ||
401 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | 454 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | ||
402 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | 455 | <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> | ||
403 | </context> | 456 | </context> | ||
404 | <!-- Capture the indentation of data type, reference or alias --> | 457 | <!-- Capture the indentation of data type, reference or alias --> | ||
405 | <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-other"> | 458 | <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-other" noIndentationBasedFolding="true"> | ||
406 | <!-- The text with the same indentation will be considered literal --> | 459 | <!-- The text with the same indentation will be considered literal --> | ||
407 | <RegExpr attribute="Data Types" context="#pop!literal-block-after-data" String="^(&space;+)!!\S+" column="0" /> | 460 | <RegExpr attribute="Data Types" context="#pop!literal-block-after-data" String="^(&space;+)&dataTypes;" column="0" /> | ||
408 | <RegExpr attribute="Alias" context="#pop!literal-block-after-data" String="^(&space;+)&\S+" column="0" /> | 461 | <RegExpr attribute="Alias" context="#pop!literal-block-after-data" String="^(&space;+)&alias;" column="0" /> | ||
409 | <RegExpr attribute="Reference" context="#pop!literal-block-after-data" String="^(&space;+)\*\S+" column="0" /> | 462 | <RegExpr attribute="Reference" context="#pop!literal-block-after-data" String="^(&space;+)&reference;" column="0" /> | ||
410 | <!-- The text after a space will be considered literal (empty text is captured) --> | 463 | <!-- The text after a space will be considered literal (empty text is captured) --> | ||
411 | <RegExpr attribute="Data Types" context="#pop!literal-block-withdash-s1" String="^()!!\S+" column="0" /> | 464 | <RegExpr attribute="Data Types" context="#pop!literal-block-withdash-s1" String="^()&dataTypes;" column="0" /> | ||
412 | <RegExpr attribute="Alias" context="#pop!literal-block-withdash-s1" String="^()&\S+" column="0" /> | 465 | <RegExpr attribute="Alias" context="#pop!literal-block-withdash-s1" String="^()&alias;" column="0" /> | ||
413 | <RegExpr attribute="Reference" context="#pop!literal-block-withdash-s1" String="^()\*\S+" column="0" /> | 466 | <RegExpr attribute="Reference" context="#pop!literal-block-withdash-s1" String="^()&reference;" column="0" /> | ||
414 | </context> | 467 | </context> | ||
415 | 468 | | |||
416 | <!-- Highlight data/attribute before the literal operator (Note that if there is a line | 469 | <!-- Highlight data/attribute before the literal operator (Note that if there is a line | ||
417 | break within a string or bracket, the literal line will not be highlighted). --> | 470 | break within a string or bracket, the literal line will not be highlighted). --> | ||
418 | <context attribute="Normal Text" lineEndContext="#pop#pop" name="before-literal-operator"> | 471 | <context attribute="Attribute" lineEndContext="#pop#pop" name="before-literal-operator" noIndentationBasedFolding="true"> | ||
419 | <RegExpr attribute="Literal/Folded Operator" context="#pop!end-literal-operator" String="&literalOp;(?=&endValue;)" beginRegion="Literal" /> | 472 | <RegExpr attribute="Literal/Folded Operator" context="#pop!end-literal-operator" String="&literalOp;(?=&endValue;)" beginRegion="Literal" /> | ||
420 | 473 | | |||
421 | <RegExpr attribute="Error" context="#pop#pop" String="([&\*]|!!)\S*&literalOp;(?=&endValue;)" /> | 474 | <RegExpr attribute="Error" context="#pop#pop" String="([&\*]|!!)\S*&literalOp;(?=&endValue;)" /> | ||
422 | <RegExpr attribute="Data Types" context="#stay" String="!!\S+" /> | 475 | <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> | ||
423 | <RegExpr attribute="Alias" context="#stay" String="&\S+" /> | 476 | <RegExpr attribute="Alias" context="#stay" String="&alias;" /> | ||
424 | <RegExpr attribute="Reference" context="#stay" String="\*\S+" /> | 477 | <RegExpr attribute="Reference" context="#stay" String="&reference;" /> | ||
425 | 478 | | |||
426 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | 479 | <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> | ||
427 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | 480 | <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> | ||
428 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | 481 | <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> | ||
429 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | 482 | <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> | ||
430 | </context> | 483 | </context> | ||
431 | <context attribute="Attribute" lineEndContext="#pop#pop" name="key-before-literal-operator"> | 484 | | ||
485 | <context attribute="Normal Text" lineEndContext="#pop#pop" name="dpoints-key-before-literal-operator" fallthrough="true" fallthroughContext="#pop#pop" noIndentationBasedFolding="true"> | ||||
486 | <DetectChar attribute="Key Points Operator" context="#pop!key-before-literal-operator" char=":" /> | ||||
487 | </context> | ||||
488 | <context attribute="Attribute" lineEndContext="#pop#pop" name="key-before-literal-operator" noIndentationBasedFolding="true"> | ||||
432 | <IncludeRules context="before-literal-operator" /> | 489 | <IncludeRules context="before-literal-operator" /> | ||
433 | <DetectChar attribute="Operator" context="#stay" char="?" /> | 490 | <DetectChar attribute="Operator" context="#stay" char="?" /> | ||
434 | </context> | 491 | </context> | ||
435 | <context attribute="Normal Text" lineEndContext="#pop" name="end-literal-operator"> | 492 | <context attribute="Attribute" lineEndContext="#pop" name="end-literal-operator" noIndentationBasedFolding="true"> | ||
436 | <DetectChar attribute="Comment" context="#pop!comment" char="#" /> | 493 | <RegExpr attribute="Comment" context="#pop!comment" String="(^|\s+)#" /> | ||
437 | </context> | 494 | </context> | ||
438 | 495 | | |||
439 | <!-- Common rules for the content of the literal blocks --> | 496 | <!-- Common rules for the content of the literal blocks --> | ||
440 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-default"> | 497 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-default" noIndentationBasedFolding="true"> | ||
441 | <!-- End literal/folded block --> | 498 | <!-- End literal/folded block --> | ||
442 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | 499 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | ||
443 | <!-- Find literal/folded operator --> | 500 | <!-- Find literal/folded operator --> | ||
444 | <RegExpr context="before-literal-operator" String="\S" lookAhead="true" /> | 501 | <RegExpr context="before-literal-operator" String="\S" lookAhead="true" /> | ||
445 | </context> | 502 | </context> | ||
446 | <context attribute="Normal Text" lineEndContext="#pop" name="literal-block-key-default"> | 503 | <context attribute="Normal Text" lineEndContext="#pop" name="literal-block-key-default" noIndentationBasedFolding="true"> | ||
447 | <!-- End literal/folded block --> | 504 | <!-- End literal/folded block --> | ||
448 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | 505 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | ||
449 | <!-- Detect Key before the literal/folded operator --> | 506 | <!-- Detect Key before the literal/folded operator --> | ||
450 | <RegExpr attribute="Key" context="key-before-literal-operator" String="&keyAfterOp;:(?=\s)" /> | 507 | <RegExpr attribute="Key" context="dpoints-key-before-literal-operator" String="&keyAfterOp;(?=:\s)" /> | ||
451 | <RegExpr attribute="Normal Text" context="#pop" String="\S" lookAhead="true" endRegion="Literal" /> | 508 | <RegExpr attribute="Normal Text" context="#pop" String="\S" lookAhead="true" endRegion="Literal" /> | ||
452 | </context> | 509 | </context> | ||
453 | 510 | | |||
454 | <!-- Content of the literal block: --> | 511 | <!-- Content of the literal block: --> | ||
455 | 512 | | |||
456 | <!-- If the literal operator is starting the line (after a space, use block indentation) --> | 513 | <!-- If the literal operator is starting the line (after a space, use block indentation) --> | ||
457 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-only-operator" dynamic="true"> | 514 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-only-operator" dynamic="true" noIndentationBasedFolding="true"> | ||
458 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" /> | 515 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" /> | ||
459 | 516 | | |||
460 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | 517 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | ||
461 | <DetectChar attribute="Comment" context="comment" char="#" /> | 518 | <RegExpr attribute="Comment" context="comment" String="(^|\s)#" /> | ||
462 | <RegExpr context="#pop" String="\S" lookAhead="true" endRegion="Literal" /> | 519 | <RegExpr context="#pop" String="\S" lookAhead="true" endRegion="Literal" /> | ||
463 | </context> | 520 | </context> | ||
464 | <!-- If the literal operator is the first character of a line (or after header) --> | 521 | <!-- If the literal operator is the first character of a line (or after header) --> | ||
465 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-simple"> | 522 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-simple" noIndentationBasedFolding="true"> | ||
466 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^\s.*$" column="0" /> | 523 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^\s.*$" column="0" /> | ||
467 | 524 | | |||
468 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | 525 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | ||
469 | <DetectChar attribute="Comment" context="comment" char="#" /> | 526 | <RegExpr attribute="Comment" context="comment" String="(^|\s)#" /> | ||
470 | </context> | 527 | </context> | ||
471 | <!-- If there is a data type or other content before the liretal operator (use block indentation) --> | 528 | <!-- If there is a data type or other content before the liretal operator (use block indentation) --> | ||
472 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-after-data" dynamic="true"> | 529 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-after-data" dynamic="true" noIndentationBasedFolding="true"> | ||
473 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" /> | 530 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" /> | ||
474 | 531 | | |||
475 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | 532 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | ||
476 | <RegExpr context="before-literal-operator" String="\S" lookAhead="true" /> | 533 | <RegExpr context="before-literal-operator" String="\S" lookAhead="true" /> | ||
477 | </context> | 534 | </context> | ||
478 | <!-- If there is a key before the literal operator --> | 535 | <!-- If there is a key before the literal operator --> | ||
479 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key" dynamic="true"> | 536 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key" dynamic="true" noIndentationBasedFolding="true"> | ||
480 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" /> | 537 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" /> | ||
481 | 538 | | |||
482 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | 539 | <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> | ||
483 | <!-- Attribute of the Key (the Key was previously highlighted) --> | 540 | <!-- Attribute of the Key (the Key was previously highlighted) --> | ||
541 | <RegExpr attribute="Key Points Operator" context="key-before-literal-operator" String=":\s" /> | ||||
484 | <RegExpr context="key-before-literal-operator" String="\S" lookAhead="true" /> | 542 | <RegExpr context="key-before-literal-operator" String="\S" lookAhead="true" /> | ||
485 | </context> | 543 | </context> | ||
486 | 544 | | |||
487 | <!-- If there are dashes/"?" before the literal operator --> | 545 | <!-- If there are dashes/"?" before the literal operator --> | ||
488 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s1" dynamic="true"> | 546 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s1" dynamic="true" noIndentationBasedFolding="true"> | ||
489 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" /> | 547 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" /> | ||
490 | <IncludeRules context="literal-block-default" /> | 548 | <IncludeRules context="literal-block-default" /> | ||
491 | </context> | 549 | </context> | ||
492 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s2" dynamic="true"> | 550 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s2" dynamic="true" noIndentationBasedFolding="true"> | ||
493 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" /> | 551 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" /> | ||
494 | <IncludeRules context="literal-block-default" /> | 552 | <IncludeRules context="literal-block-default" /> | ||
495 | </context> | 553 | </context> | ||
496 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s3" dynamic="true"> | 554 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s3" dynamic="true" noIndentationBasedFolding="true"> | ||
497 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" /> | 555 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" /> | ||
498 | <IncludeRules context="literal-block-default" /> | 556 | <IncludeRules context="literal-block-default" /> | ||
499 | </context> | 557 | </context> | ||
500 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s4" dynamic="true"> | 558 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s4" dynamic="true" noIndentationBasedFolding="true"> | ||
501 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" /> | 559 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" /> | ||
502 | <IncludeRules context="literal-block-default" /> | 560 | <IncludeRules context="literal-block-default" /> | ||
503 | </context> | 561 | </context> | ||
504 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s5" dynamic="true"> | 562 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s5" dynamic="true" noIndentationBasedFolding="true"> | ||
505 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" /> | 563 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" /> | ||
506 | <IncludeRules context="literal-block-default" /> | 564 | <IncludeRules context="literal-block-default" /> | ||
507 | </context> | 565 | </context> | ||
508 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s6" dynamic="true"> | 566 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s6" dynamic="true" noIndentationBasedFolding="true"> | ||
509 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" /> | 567 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" /> | ||
510 | <IncludeRules context="literal-block-default" /> | 568 | <IncludeRules context="literal-block-default" /> | ||
511 | </context> | 569 | </context> | ||
512 | <!-- If there are dashes/"?" and a Key before the literal operator --> | 570 | <!-- If there are dashes/"?" and a Key before the literal operator --> | ||
513 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s2" dynamic="true"> | 571 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s2" dynamic="true" noIndentationBasedFolding="true"> | ||
514 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" /> | 572 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" /> | ||
515 | <IncludeRules context="literal-block-key-default" /> | 573 | <IncludeRules context="literal-block-key-default" /> | ||
516 | </context> | 574 | </context> | ||
517 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s3" dynamic="true"> | 575 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s3" dynamic="true" noIndentationBasedFolding="true"> | ||
518 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" /> | 576 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" /> | ||
519 | <IncludeRules context="literal-block-key-default" /> | 577 | <IncludeRules context="literal-block-key-default" /> | ||
520 | </context> | 578 | </context> | ||
521 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s4" dynamic="true"> | 579 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s4" dynamic="true" noIndentationBasedFolding="true"> | ||
522 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" /> | 580 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" /> | ||
523 | <IncludeRules context="literal-block-key-default" /> | 581 | <IncludeRules context="literal-block-key-default" /> | ||
524 | </context> | 582 | </context> | ||
525 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s5" dynamic="true"> | 583 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s5" dynamic="true" noIndentationBasedFolding="true"> | ||
526 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" /> | 584 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" /> | ||
527 | <IncludeRules context="literal-block-key-default" /> | 585 | <IncludeRules context="literal-block-key-default" /> | ||
528 | </context> | 586 | </context> | ||
529 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s6" dynamic="true"> | 587 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s6" dynamic="true" noIndentationBasedFolding="true"> | ||
530 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" /> | 588 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" /> | ||
531 | <IncludeRules context="literal-block-key-default" /> | 589 | <IncludeRules context="literal-block-key-default" /> | ||
532 | </context> | 590 | </context> | ||
533 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s7" dynamic="true"> | 591 | <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s7" dynamic="true" noIndentationBasedFolding="true"> | ||
534 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6%7&space;{6}\s.*$" dynamic="true" column="0" /> | 592 | <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6%7&space;{6}\s.*$" dynamic="true" column="0" /> | ||
535 | <IncludeRules context="literal-block-key-default" /> | 593 | <IncludeRules context="literal-block-key-default" /> | ||
536 | </context> | 594 | </context> | ||
537 | </contexts> | 595 | </contexts> | ||
538 | 596 | | |||
539 | <itemDatas> | 597 | <itemDatas> | ||
540 | <itemData name="Normal Text" defStyleNum="dsNormal" /> | 598 | <itemData name="Normal Text" defStyleNum="dsAttribute" /> | ||
541 | <itemData name="List" defStyleNum="dsNormal" /> | 599 | <itemData name="Attribute" defStyleNum="dsAttribute" /> | ||
542 | <itemData name="Hash" defStyleNum="dsNormal" /> | 600 | <itemData name="List" defStyleNum="dsAttribute" /> | ||
601 | <itemData name="Hash" defStyleNum="dsAttribute" /> | ||||
543 | <itemData name="Comment" defStyleNum="dsComment" /> | 602 | <itemData name="Comment" defStyleNum="dsComment" /> | ||
544 | <itemData name="End of Document" defStyleNum="dsComment" /> | 603 | <itemData name="End of Document" defStyleNum="dsComment" /> | ||
545 | <itemData name="Attribute" defStyleNum="dsAttribute" /> | 604 | <itemData name="Document Header" defStyleNum="dsPreprocessor" /> | ||
546 | <itemData name="Document Header" defStyleNum="dsOthers" /> | 605 | <itemData name="Data Types" defStyleNum="dsOthers" /> | ||
547 | <itemData name="Data Types" defStyleNum="dsDataType" /> | 606 | <itemData name="Alias" defStyleNum="dsOthers" /> | ||
548 | <itemData name="Alias" defStyleNum="dsDataType" /> | 607 | <itemData name="Reference" defStyleNum="dsOthers" /> | ||
549 | <itemData name="Reference" defStyleNum="dsDataType" /> | 608 | <itemData name="Key" defStyleNum="dsFunction" bold="1" /> | ||
550 | <itemData name="Key" defStyleNum="dsFunction" /> | 609 | <itemData name="Directive" defStyleNum="dsPreprocessor" /> | ||
551 | <itemData name="Directive" defStyleNum="dsOthers" /> | 610 | <itemData name="Key Points Operator" defStyleNum="dsKeyword" /> | ||
552 | <itemData name="Operator" defStyleNum="dsKeyword" /> | 611 | <itemData name="Operator" defStyleNum="dsKeyword" /> | ||
553 | <itemData name="String" defStyleNum="dsString" /> | 612 | <itemData name="String" defStyleNum="dsString" /> | ||
554 | <itemData name="Escaped Character" defStyleNum="dsSpecialChar" /> | 613 | <itemData name="Escaped Character" defStyleNum="dsSpecialChar" /> | ||
555 | <itemData name="Literal/Folded Operator" defStyleNum="dsString" bold="1" /> | 614 | <itemData name="Literal/Folded Operator" defStyleNum="dsChar" bold="1" /> | ||
556 | <itemData name="Literal/Folded Block" defStyleNum="dsNormal" /> | 615 | <itemData name="Literal/Folded Block" defStyleNum="dsNormal" /> | ||
557 | <itemData name="Null" defStyleNum="dsChar" /> | 616 | <itemData name="Null" defStyleNum="dsChar" /> | ||
558 | <itemData name="Boolean" defStyleNum="dsChar" /> | 617 | <itemData name="Boolean" defStyleNum="dsChar" /> | ||
559 | <itemData name="Integer" defStyleNum="dsDecVal" /> | 618 | <itemData name="Integer" defStyleNum="dsDecVal" /> | ||
560 | <itemData name="Float" defStyleNum="dsFloat" /> | 619 | <itemData name="Float" defStyleNum="dsFloat" /> | ||
561 | <itemData name="Error" defStyleNum="dsError" /> | 620 | <itemData name="Error" defStyleNum="dsError" /> | ||
562 | <itemData name="Alert" defStyleNum="dsAlert" backgroundColor="#EF9A9A" /> | 621 | <itemData name="Alert" defStyleNum="dsAlert" backgroundColor="#EF9A9A" /> | ||
563 | </itemDatas> | 622 | </itemDatas> | ||
564 | </highlighting> | 623 | </highlighting> | ||
565 | 624 | | |||
566 | <general> | 625 | <general> | ||
626 | <folding indentationsensitive="1" /> | ||||
627 | <emptyLines> | ||||
628 | <emptyLine regexpr="(?:\s+|\s*#.*)"/> | ||||
629 | </emptyLines> | ||||
567 | <comments> | 630 | <comments> | ||
568 | <comment name="singleLine" start="#" position="afterwhitespace" /> | 631 | <comment name="singleLine" start="#" position="afterwhitespace" /> | ||
569 | </comments> | 632 | </comments> | ||
570 | <keywords casesensitive="1"/> | 633 | <keywords casesensitive="1"/> | ||
571 | </general> | 634 | </general> | ||
572 | </language> | 635 | </language> |