Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/jam.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 2 | <!DOCTYPE language SYSTEM "language.dtd" | ||
3 | [ | ||||
4 | <!ENTITY ident "([^\t $"\\]+|\$(?!\()|\\.)+"> | ||||
5 | ]> | ||||
3 | <!-- | 6 | <!-- | ||
4 | Copyright (C) 2006 Mildred <silkensedai@online.fr>. | 7 | Copyright (C) 2006 Mildred <silkensedai@online.fr>. | ||
5 | 8 | | |||
6 | Permission is hereby granted, free of charge, to any person obtaining a copy | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
7 | of this software and associated documentation files (the "Software"), to | 10 | of this software and associated documentation files (the "Software"), to | ||
8 | deal in the Software without restriction, including without limitation the | 11 | deal in the Software without restriction, including without limitation the | ||
9 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | 12 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
10 | sell copies of the Software, and to permit persons to whom the Software is | 13 | sell copies of the Software, and to permit persons to whom the Software is | ||
11 | furnished to do so, subject to the following conditions: | 14 | furnished to do so, subject to the following conditions: | ||
12 | 15 | | |||
13 | The above copyright notice and this permission notice shall be included in | 16 | The above copyright notice and this permission notice shall be included in | ||
14 | all copies or substantial portions of the Software. | 17 | all copies or substantial portions of the Software. | ||
15 | 18 | | |||
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | 24 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
22 | IN THE SOFTWARE. | 25 | IN THE SOFTWARE. | ||
23 | --> | 26 | --> | ||
24 | <language name="Jam" version="3" kateversion="2.4" section="Other" extensions="Jam*;*.jam" mimetype="text/x-jam;text/x-Jamfile;text/x-Jamrules;text/x-Jambase" author="Mildred (silkensedai@online.fr)" license="MIT"> | 27 | <language name="Jam" version="4" kateversion="5.0" section="Other" extensions="Jam*;*.jam" mimetype="text/x-jam;text/x-Jamfile;text/x-Jamrules;text/x-Jambase" author="Mildred (silkensedai@online.fr)" license="MIT"> | ||
25 | <!-- | 28 | <!-- | ||
26 | Changelog | 29 | Changelog | ||
27 | 0.2 | 30 | 0.2 | ||
28 | * now tokens like [ ] { } ( ) : ; are not detected if there is no whitespace before and after | 31 | * now tokens like [ ] { } ( ) : ; are not detected if there is no whitespace before and after | ||
29 | * Jam* files are handled (example Jamrules or Jambase) | 32 | * Jam* files are handled (example Jamrules or Jambase) | ||
30 | * different colors | 33 | * different colors | ||
31 | * Subvariables are handled (example : $(varname[$(v)]) | 34 | * Subvariables are handled (example : $(varname[$(v)]) | ||
32 | * Include bash highlighting inside actions blocks | 35 | * Include bash highlighting inside actions blocks | ||
33 | * rules names are found in rules definitions | 36 | * rules names are found in rules definitions | ||
34 | * highlight the variable reference in rule definitions after 'bind' | 37 | * highlight the variable reference in rule definitions after 'bind' | ||
35 | 0.3 | 38 | 0.3 | ||
36 | * because weakDelimiter isn't supported, it is not possible to just have some locals delimiters for the tokens and globals delimiters as default. So it's not possible to have our usual double click to select. | 39 | * because weakDelimiter isn't supported, it is not possible to just have some locals delimiters for the tokens and globals delimiters as default. So it's not possible to have our usual double click to select. | ||
37 | * 'actions action_name bind var' instead of 'actions bind var action_name' | 40 | * 'actions action_name bind var' instead of 'actions bind var action_name' | ||
38 | * bun in syntax 'rule Rulename : param param ...' ':' is not recognized. fixed | 41 | * bun in syntax 'rule Rulename : param param ...' ':' is not recognized. fixed | ||
39 | * fixed some bugs found when looking at Jambase (peacemeal -> piecemeal, ...) | 42 | * fixed some bugs found when looking at Jambase (peacemeal -> piecemeal, ...) | ||
40 | * variables recognized in strings | 43 | * variables recognized in strings | ||
41 | * named parameters for rules ... the syntax has changed : 'rule rulename param : param : param {' | 44 | * named parameters for rules ... the syntax has changed : 'rule rulename param : param : param {' | ||
42 | * changed section from Scripts to Other | 45 | * changed section from Scripts to Other | ||
43 | Feature request to Kate dev. | 46 | Feature request to Kate dev. | ||
44 | * returnContext attribute | 47 | * returnContext attribute | ||
45 | * ability to enter a new context after a #pop | 48 | * ability to enter a new context after a #pop | ||
46 | * when you include rules from foreign contexts (here Bash), having the ability to prepend some rules to all foreign contexts for example to terminate the included context before it naturally ends. | 49 | * when you include rules from foreign contexts (here Bash), having the ability to prepend some rules to all foreign contexts for example to terminate the included context before it naturally ends. | ||
50 | | ||||
51 | 0.4 | ||||
52 | * fix `x=`: is a rule named `x=`, not a variable | ||||
53 | * fix `exe onxxxxx`: is a rule call, not a variable | ||||
54 | * fix `ifxxx`, `rulexxx`, etc: not keywords | ||||
55 | * fix `variable default = xxx ;` | ||||
56 | * fix keywords and operators in a condition: they must be separated by spaces | ||||
57 | * fix `on target` | ||||
58 | * fix `switch` | ||||
59 | * fix `class` and `module` | ||||
60 | * fix `for local x` | ||||
61 | * new styles: Feature and FeatureOperator for `<xxx>`, `-<xxx>`, `<xxx>abc:<yyy>abc`, `<xxx>abc/<yyy>abc`, `<xxx>abc&&def` | ||||
62 | * don't use black color in Rule | ||||
47 | --> | 63 | --> | ||
48 | <highlighting> | 64 | <highlighting> | ||
49 | <list name="keywords"> | 65 | <list name="keywords"> | ||
50 | <item>actions</item> | | |||
51 | <item>break</item> | 66 | <item>break</item> | ||
52 | <item>continue</item> | 67 | <item>continue</item> | ||
53 | <item>for</item> | | |||
54 | <item>in</item> | | |||
55 | <item>if</item> | | |||
56 | <item>else</item> | 68 | <item>else</item> | ||
57 | <item>include</item> | | |||
58 | <item>local</item> | 69 | <item>local</item> | ||
59 | <item>on</item> | 70 | </list> | ||
60 | <item>return</item> | 71 | <list name="keywordIf"> | ||
61 | <item>rule</item> | 72 | <item>if</item> | ||
62 | <item>switch</item> | | |||
63 | <item>case</item> | | |||
64 | <item>while</item> | 73 | <item>while</item> | ||
65 | </list> | 74 | </list> | ||
66 | <list name="keywordLocal"> | 75 | <list name="keywordAcceptRule"> | ||
67 | <item>local</item> | 76 | <item>include</item> | ||
77 | <item>return</item> | ||||
68 | </list> | 78 | </list> | ||
79 | <list name="keywordClass"><item>class</item></list> | ||||
80 | <list name="keywordModule"><item>module</item></list> | ||||
81 | <list name="keywordSwitch"><item>switch</item></list> | ||||
82 | <list name="keywordActions"><item>actions</item></list> | ||||
83 | <list name="keywordRule"><item>rule</item></list> | ||||
84 | <list name="keywordFor"><item>for</item></list> | ||||
85 | <list name="keywordOn"><item>on</item></list> | ||||
86 | <list name="keywordReturn"><item>return</item></list> | ||||
87 | <list name="keywordIn"><item>in</item></list> | ||||
88 | <list name="keywordCase"><item>case</item></list> | ||||
89 | <list name="keywordLocal"><item>local</item></list> | ||||
90 | | ||||
69 | <list name="actionAttribute"> | 91 | <list name="actionAttribute"> | ||
70 | <item>existing</item> | 92 | <item>existing</item> | ||
71 | <item>ignore</item> | 93 | <item>ignore</item> | ||
72 | <item>piecemeal</item> | 94 | <item>piecemeal</item> | ||
73 | <item>quietly</item> | 95 | <item>quietly</item> | ||
74 | <item>together</item> | 96 | <item>together</item> | ||
75 | <item>updated</item> | 97 | <item>updated</item> | ||
76 | </list> | 98 | </list> | ||
77 | <list name="actionAttributeBind"> | 99 | <list name="actionAttributeBind"> | ||
78 | <item>bind</item> | 100 | <item>bind</item> | ||
79 | </list> | 101 | </list> | ||
80 | <list name="tokenColon"><item>:</item></list> | 102 | | ||
81 | <list name="tokenSemicolon"><item>;</item></list> | 103 | <list name="onTarget"><item>target</item></list> | ||
82 | <list name="tokenSquareOpen"><item>[</item></list> | 104 | | ||
83 | <list name="tokenSquareClose"><item>]</item></list> | 105 | <list name="features"> | ||
84 | <list name="tokenBraceOpen"><item>(</item></list> | 106 | <item><address-model></item> | ||
85 | <list name="tokenBraceClose"><item>)</item></list> | 107 | <item><address-sanitizer></item> | ||
86 | <list name="tokenBlockOpen"><item>{</item></list> | 108 | <item><allow-system-cflags></item> | ||
87 | <list name="tokenBlockClose"><item>}</item></list> | 109 | <item><allow-system-libs></item> | ||
110 | <item><architecture></item> | ||||
111 | <item><archiver></item> | ||||
112 | <item><asciidoctor-attribute></item> | ||||
113 | <item><asciidoctor-backend></item> | ||||
114 | <item><asciidoctor-doctype></item> | ||||
115 | <item><assembler></item> | ||||
116 | <item><boostbook></item> | ||||
117 | <item><build></item> | ||||
118 | <item><build-name></item> | ||||
119 | <item><c++-template-depth></item> | ||||
120 | <item><catalog></item> | ||||
121 | <item><cflags></item> | ||||
122 | <item><compileflags></item> | ||||
123 | <item><compiler></item> | ||||
124 | <item><compiler-filter></item> | ||||
125 | <item><cxxflags></item> | ||||
126 | <item><debug-symbols></item> | ||||
127 | <item><def-file></item> | ||||
128 | <item><define></item> | ||||
129 | <item><dll-path></item> | ||||
130 | <item><doxygen:param></item> | ||||
131 | <item><doxygen:xml-imagedir></item> | ||||
132 | <item><embed-manifest></item> | ||||
133 | <item><embed-manifest-file></item> | ||||
134 | <item><file></item> | ||||
135 | <item><format></item> | ||||
136 | <item><hardcode-dll-paths></item> | ||||
137 | <item><idl-compiler></item> | ||||
138 | <item><implicit-dependency></item> | ||||
139 | <item><import></item> | ||||
140 | <item><include></item> | ||||
141 | <item><includes></item> | ||||
142 | <item><inlining></item> | ||||
143 | <item><install-dependencies></item> | ||||
144 | <item><install-source-root></item> | ||||
145 | <item><install-type></item> | ||||
146 | <item><instruction-set></item> | ||||
147 | <item><libdir></item> | ||||
148 | <item><library></item> | ||||
149 | <item><link></item> | ||||
150 | <item><linker></item> | ||||
151 | <item><linkflags></item> | ||||
152 | <item><local-visibility></item> | ||||
153 | <item><location></item> | ||||
154 | <item><location-prefix></item> | ||||
155 | <item><mc-compiler></item> | ||||
156 | <item><name></item> | ||||
157 | <item><optimization></item> | ||||
158 | <item><parallelism></item> | ||||
159 | <item><path></item> | ||||
160 | <item><pkg-config></item> | ||||
161 | <item><pkg-config-define></item> | ||||
162 | <item><prefix></item> | ||||
163 | <item><profiling></item> | ||||
164 | <item><ranlib></item> | ||||
165 | <item><rc></item> | ||||
166 | <item><rc-type></item> | ||||
167 | <item><reftitle></item> | ||||
168 | <item><relevant></item> | ||||
169 | <item><resource-compiler></item> | ||||
170 | <item><root></item> | ||||
171 | <item><runtime-debugging></item> | ||||
172 | <item><runtime-link></item> | ||||
173 | <item><sass-line-numbers></item> | ||||
174 | <item><sass-style></item> | ||||
175 | <item><search></item> | ||||
176 | <item><setup></item> | ||||
177 | <item><setup-amd64></item> | ||||
178 | <item><setup-i386></item> | ||||
179 | <item><setup-ia64></item> | ||||
180 | <item><source></item> | ||||
181 | <item><sysroot></item> | ||||
182 | <item><target-os></item> | ||||
183 | <item><testing.arg></item> | ||||
184 | <item><testing.launcher></item> | ||||
185 | <item><thread-sanitizer></item> | ||||
186 | <item><threading></item> | ||||
187 | <item><toolset></item> | ||||
188 | <item><undefined-sanitizer></item> | ||||
189 | <item><use></item> | ||||
190 | <item><variable></item> | ||||
191 | <item><variant></item> | ||||
192 | <item><verbatim-options></item> | ||||
193 | <item><version></item> | ||||
194 | <item><visibility></item> | ||||
195 | <item><warnings></item> | ||||
196 | <item><warnings-as-errors></item> | ||||
197 | <item><xsl:param></item> | ||||
198 | <item><xsl:path></item> | ||||
199 | <item><xslt></item> | ||||
200 | <item><xslt-dir></item> | ||||
201 | </list> | ||||
202 | | ||||
88 | <contexts> | 203 | <contexts> | ||
89 | 204 | | |||
90 | <context attribute="Normal" lineEndContext="#stay" name="Normal"> | 205 | <context attribute="Normal" lineEndContext="#stay" name="Normal"> | ||
91 | <IncludeRules context="Preprocess"/> | 206 | <IncludeRules context="Preprocess"/> | ||
92 | <keyword attribute="Error" context="#stay" String="tokenBlockClose" endRegion="block" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 207 | <WordDetect attribute="Error" context="#stay" String="}" endRegion="block"/> | ||
93 | <IncludeRules context="Statement"/> | 208 | <IncludeRules context="Statement"/> | ||
94 | </context> | 209 | </context> | ||
95 | 210 | | |||
96 | <context attribute="Normal" lineEndContext="#stay" name="Block"> | 211 | <context attribute="Normal" lineEndContext="#stay" name="Block"> | ||
97 | <IncludeRules context="Preprocess"/> | 212 | <IncludeRules context="Preprocess"/> | ||
98 | <keyword attribute="Operator" context="#pop" String="tokenBlockClose" endRegion="block" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 213 | <WordDetect attribute="Operator" context="#pop" String="}" endRegion="block"/> | ||
99 | <IncludeRules context="Statement"/> | 214 | <IncludeRules context="Statement"/> | ||
100 | </context> | 215 | </context> | ||
101 | 216 | | |||
102 | <context attribute="Normal" lineEndContext="#stay" name="Statement"> | 217 | <context attribute="Normal" lineEndContext="#stay" name="Statement"> | ||
103 | <IncludeRules context="Preprocess"/> | 218 | <IncludeRules context="Preprocess"/> | ||
104 | <StringDetect attribute="Keyword" context="ActionDefinition" String="actions"/> | 219 | <keyword attribute="Keyword" context="ActionDefinition" String="keywordActions"/> | ||
105 | <StringDetect attribute="Keyword" context="RuleDefinition" String="rule"/> | 220 | <keyword attribute="Keyword" context="RuleDefinition" String="keywordRule"/> | ||
106 | <StringDetect attribute="Keyword" context="ForStatement" String="for"/> | 221 | <keyword attribute="Keyword" context="ForStatement" String="keywordFor"/> | ||
107 | <StringDetect attribute="Keyword" context="IfStatement" String="if"/> | 222 | <keyword attribute="Keyword" context="IfStatement" String="keywordIf"/> | ||
108 | <StringDetect attribute="Keyword" context="IfStatement" String="while"/> | 223 | <keyword attribute="Keyword" context="Rule" String="keywordAcceptRule"/> | ||
109 | <StringDetect attribute="Keyword" context="Rule" String="include"/> | 224 | <keyword attribute="Keyword" context="OnPreStment" String="keywordOn"/> | ||
110 | <StringDetect attribute="Keyword" context="OnPreStment" String="on"/> | 225 | <keyword attribute="Keyword" context="SwitchStatement" String="keywordSwitch"/> | ||
111 | <StringDetect attribute="Keyword" context="Rule" String="return"/> | 226 | <keyword attribute="Keyword" context="ClassStatement" String="keywordClass"/> | ||
112 | <StringDetect attribute="Keyword" context="CaseCond" String="case"/> | 227 | <keyword attribute="Keyword" context="ModuleStatement" String="keywordModule"/> | ||
113 | <keyword attribute="Keyword" context="#stay" String="keywordLocal"/> | | |||
114 | <keyword attribute="Keyword" context="#stay" String="keywords"/> | 228 | <keyword attribute="Keyword" context="#stay" String="keywords"/> | ||
115 | <keyword attribute="Operator" context="Block" String="tokenBlockOpen" beginRegion="block" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 229 | <WordDetect attribute="Operator" context="Block" String="{" beginRegion="block"/> | ||
116 | <RegExpr attribute="VarAssign" context="VarAssign" String="[^\t ]+[\t ]*[\+\?]?=" lookAhead="true"/> | 230 | <RegExpr attribute="VarAssign" context="Assignment" String="[^\t ]+[\t ]+(?=([+?]?=|on|default)([\t ]|$))" /> | ||
117 | <RegExpr attribute="VarAssign" context="VarAssign" String="[^\t ]+[\t ]+on" lookAhead="true"/> | 231 | <RegExpr attribute="Rule" context="Rule" String="([^\t ][^\t ]+|[^{}\t ])"/> | ||
118 | <keyword attribute="Operator" context="#stay" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
119 | <keyword attribute="Operator" context="#stay" String="tokenSemicolon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
120 | <keyword attribute="Operator" context="#stay" String="tokenBraceOpen" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
121 | <keyword attribute="Operator" context="#stay" String="tokenBraceClose" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
122 | <RegExpr attribute="Rule" context="Rule" String="([^\t ][^\t ]+|[^\{\}\t ])"/> | | |||
123 | </context> | 232 | </context> | ||
124 | 233 | | |||
125 | <!-- General instructions --> | 234 | <!-- General instructions --> | ||
126 | 235 | | |||
127 | <context attribute="Normal" lineEndContext="#stay" name="Rule"> | 236 | <context attribute="Normal" lineEndContext="#stay" name="Rule"> | ||
128 | <IncludeRules context="Preprocess"/> | 237 | <IncludeRules context="Preprocess"/> | ||
129 | <keyword attribute="Operator" context="#stay" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 238 | <WordDetect attribute="Operator" context="#stay" String=":"/> | ||
130 | <keyword attribute="Operator" context="#pop" String="tokenSemicolon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 239 | <WordDetect attribute="Operator" context="#pop" String=";"/> | ||
240 | <IncludeRules context="ValueIdentifier"/> | ||||
131 | </context> | 241 | </context> | ||
132 | 242 | | |||
133 | <context attribute="Normal" lineEndContext="#stay" name="CaseCond"> | 243 | <context attribute="Normal" lineEndContext="#stay" name="ValueIdentifier"> | ||
244 | <DetectChar attribute="Feature" context="Feature" char="<"/> | ||||
245 | <RegExpr attribute="FeatureOperator" context="#stay" String="-(?=<)"/> | ||||
246 | <RegExpr attribute="Normal" context="#stay" String="([^\t $&"\\]+|\$(?!\()|&(?!&)|\\.)+"/> | ||||
247 | <!-- auto-completion only --> | ||||
248 | <keyword attribute="Feature" context="#stay" String="features"/> | ||||
249 | </context> | ||||
250 | | ||||
251 | <context attribute="Normal" lineEndContext="#pop" name="Feature" fallthrough="true" fallthroughContext="#pop"> | ||||
252 | <AnyChar attribute="Error" context="#pop" String="	 " /> | ||||
253 | <DetectChar attribute="Feature" context="#pop!Property" char=">"/> | ||||
254 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||||
255 | <DetectChar attribute="String" context="String" char="""/> | ||||
256 | <RegExpr attribute="Feature" context="#stay" String="([^\t $>"#\\]+|\$(?!\()|\\.)+"/> | ||||
257 | </context> | ||||
258 | | ||||
259 | <context attribute="Normal" lineEndContext="#pop" name="Property" fallthrough="true" fallthroughContext="#pop"> | ||||
260 | <AnyChar attribute="Normal" context="#pop" String="	 " /> | ||||
261 | <Detect2Chars attribute="FeatureOperator" context="#pop" char="&" char1="&"/> | ||||
262 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||||
263 | <DetectChar attribute="String" context="String" char="""/> | ||||
264 | <RegExpr attribute="FeatureOperator" context="#pop!PropertyFeature" String="[:/,](?=[<\t ]|$)"/> | ||||
265 | <RegExpr attribute="Normal" context="#stay" String="([^\t $:&":/,#\\]+|\$(?!\()|&(?!&)|[:/,](?!<)|\\.)+"/> | ||||
266 | </context> | ||||
267 | | ||||
268 | <context attribute="Normal" lineEndContext="#pop" name="PropertyFeature" fallthrough="true" fallthroughContext="#pop"> | ||||
269 | <DetectChar attribute="Feature" context="#pop!Feature" char="<"/> | ||||
270 | </context> | ||||
271 | | ||||
272 | <context attribute="Normal" lineEndContext="#stay" name="OnPreStment" fallthrough="true" fallthroughContext="#pop"> | ||||
273 | <DetectSpaces/> | ||||
274 | <keyword attribute="Keyword" context="OnTargetPreStment" String="onTarget"/> | ||||
275 | </context> | ||||
276 | | ||||
277 | <context attribute="Normal" lineEndContext="#stay" name="OnTargetPreStment" fallthrough="true" fallthroughContext="#pop"> | ||||
134 | <IncludeRules context="Preprocess"/> | 278 | <IncludeRules context="Preprocess"/> | ||
135 | <keyword attribute="Operator" context="#pop" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 279 | <WordDetect attribute="Operator" context="#stay" String=":"/> | ||
280 | <WordDetect attribute="Operator" context="#pop#pop" String=";"/> | ||||
281 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
136 | </context> | 282 | </context> | ||
137 | 283 | | |||
138 | <context attribute="Normal" lineEndContext="#stay" name="OnPreStment"> | 284 | <context attribute="Normal" lineEndContext="#stay" name="ClassStatement"> | ||
139 | <IncludeRules context="Preprocess"/> | 285 | <IncludeRules context="Preprocess"/> | ||
140 | <RegExpr attribute="Normal" context="#pop" String="[^\t ]+"/> | 286 | <WordDetect attribute="Operator" context="#pop!ClassStatement2" String="{" beginRegion="block"/> | ||
141 | <RegExpr attribute="Normal" context="#pop" String="." lookAhead="true"/> | 287 | <WordDetect attribute="Operator" context="#stay" String=":"/> | ||
288 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
142 | </context> | 289 | </context> | ||
143 | 290 | | |||
144 | <!-- Assigment --> | 291 | <context attribute="Normal" lineEndContext="#stay" name="ModuleStatement"> | ||
292 | <DetectSpaces/> | ||||
293 | <RegExpr attribute="Normal" context="#pop" String="&ident;"/> | ||||
294 | </context> | ||||
295 | | ||||
296 | <context attribute="Normal" lineEndContext="#stay" name="ClassStatement2"> | ||||
297 | <DetectSpaces attribute="Normal"/> | ||||
298 | <Detect2Chars attribute="CommentTitle" context="CommentTitle" char="#" char1="#"/> | ||||
299 | <DetectChar attribute="Comment" context="Comment" char="#"/> | ||||
300 | <WordDetect attribute="Operator" context="#pop" String="}" endRegion="block"/> | ||||
301 | <keyword attribute="Keyword" context="MethodDefinition" String="keywordRule"/> | ||||
302 | <RegExpr attribute="Error" context="#stay" String="&ident;"/> | ||||
303 | </context> | ||||
145 | 304 | | |||
146 | <context attribute="Variable" lineEndContext="#stay" name="VarAssign"> | 305 | <context attribute="Normal" lineEndContext="#stay" name="MethodDefinition"> | ||
147 | <IncludeRules context="Preprocess"/> | 306 | <IncludeRules context="Preprocess"/> | ||
148 | <RegExpr attribute="VarAssign" context="Assigment" String="[^\t ]+[\t ]*[\+\?]?=" lookAhead="true"/> | 307 | <WordDetect attribute="Error" context="#stay" String=":"/> | ||
149 | <RegExpr attribute="VarAssign" context="Assigment" String="[^\t ]+[\t ]+on" lookAhead="true"/> | 308 | <WordDetect attribute="Operator" context="MethodDefinition2" String="{" beginRegion="block"/> | ||
150 | <RegExpr attribute="VarAssign" context="Assigment" String="[\+\?]?=" lookAhead="true"/> | 309 | <RegExpr attribute="Rule" context="VarnameList" String="&ident;"/> | ||
151 | <keyword attribute="Operator" context="#stay" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
152 | <keyword attribute="Operator" context="#pop" String="tokenSemicolon" lookAhead="true" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
153 | </context> | 310 | </context> | ||
154 | 311 | | |||
155 | <context attribute="Normal" lineEndContext="#stay" name="Assigment"> | 312 | <context attribute="Normal" lineEndContext="#stay" name="MethodDefinition2"> | ||
313 | <DetectSpaces/> | ||||
314 | <WordDetect attribute="Operator" context="#pop#pop" String="}" endRegion="block"/> | ||||
315 | <IncludeRules context="Statement"/> | ||||
316 | </context> | ||||
317 | | ||||
318 | <!-- Assignment --> | ||||
319 | | ||||
320 | <context attribute="Normal" lineEndContext="#stay" name="Assignment"> | ||||
321 | <DetectChar attribute="Operator" context="Assignment2" char="="/> | ||||
322 | <Detect2Chars attribute="Operator" context="Assignment2" char="+" char1="="/> | ||||
323 | <Detect2Chars attribute="Operator" context="Assignment2" char="?" char1="="/> | ||||
324 | <Detect2Chars attribute="Operator" context="AssignmentOn" char="o" char1="n"/> | ||||
325 | <StringDetect attribute="Keyword" context="AssignmentDefault" String="default"/> | ||||
326 | </context> | ||||
327 | | ||||
328 | <context attribute="Normal" lineEndContext="#stay" name="Assignment2"> | ||||
156 | <IncludeRules context="Preprocess"/> | 329 | <IncludeRules context="Preprocess"/> | ||
157 | <StringDetect attribute="Operator" context="#stay" String="on"/> | 330 | <WordDetect attribute="Operator" context="#pop#pop" String=";"/> | ||
158 | <StringDetect attribute="Operator" context="Assigment2" String="="/> | 331 | <IncludeRules context="ValueIdentifier"/> | ||
159 | <StringDetect attribute="Operator" context="Assigment2" String="+="/> | | |||
160 | <StringDetect attribute="Operator" context="Assigment2" String="?="/> | | |||
161 | <keyword attribute="Operator" context="#pop#pop" String="tokenSemicolon" lookAhead="true" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | | |||
162 | <RegExpr attribute="VarAssign" context="#stay" String="[^\t ]+"/> | | |||
163 | </context> | 332 | </context> | ||
164 | 333 | | |||
165 | <context attribute="Normal" lineEndContext="#stay" name="Assigment2"> | 334 | <context attribute="Normal" lineEndContext="#stay" name="AssignmentOn"> | ||
166 | <IncludeRules context="Preprocess"/> | 335 | <IncludeRules context="Preprocess"/> | ||
167 | <keyword attribute="Operator" context="#pop#pop#pop" String="tokenSemicolon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 336 | <DetectChar attribute="Operator" context="#pop!Assignment2" char="="/> | ||
337 | <Detect2Chars attribute="Operator" context="#pop!Assignment2" char="+" char1="="/> | ||||
338 | <Detect2Chars attribute="Operator" context="#pop!Assignment2" char="?" char1="="/> | ||||
339 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
340 | </context> | ||||
341 | | ||||
342 | <context attribute="Error" lineEndContext="#stay" name="AssignmentDefault"> | ||||
343 | <DetectSpaces attribute="Normal"/> | ||||
344 | <DetectChar attribute="Operator" context="#pop!Assignment2" char="="/> | ||||
168 | </context> | 345 | </context> | ||
169 | 346 | | |||
170 | <!-- Sub statements --> | 347 | <!-- Sub statements --> | ||
171 | 348 | | |||
172 | <context attribute="Normal" lineEndContext="#stay" name="SubStatement"> | 349 | <context attribute="Normal" lineEndContext="#stay" name="SubStatement" fallthrough="true" fallthroughContext="SubRule"> | ||
350 | <DetectSpaces/> | ||||
351 | <Detect2Chars attribute="Keyword" context="OnSubStatement" char="o" char1="n"/> | ||||
352 | </context> | ||||
353 | | ||||
354 | <context attribute="Normal" lineEndContext="#stay" name="OnSubStatement" fallthrough="true" fallthroughContext="OnSubStatement2"> | ||||
355 | <DetectSpaces/> | ||||
356 | <keyword attribute="Keyword" context="#pop!SubRule" String="onTarget"/> | ||||
357 | </context> | ||||
358 | | ||||
359 | <context attribute="Normal" lineEndContext="#stay" name="OnSubStatement2"> | ||||
173 | <IncludeRules context="Preprocess"/> | 360 | <IncludeRules context="Preprocess"/> | ||
174 | <StringDetect attribute="Keyword" context="OnPreStment" String="on"/> | 361 | <keyword attribute="Keyword" context="#stay" String="keywordReturn"/> | ||
175 | <RegExpr attribute="Rule" context="SubRule" String="[^\t ]+"/> | 362 | <WordDetect attribute="Operator" context="#stay" String=":"/> | ||
176 | <keyword attribute="Operator" context="#pop" String="tokenSquareClose" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 363 | <WordDetect attribute="Operator" context="#pop#pop#pop" String="]"/> | ||
364 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
177 | </context> | 365 | </context> | ||
178 | 366 | | |||
179 | <context attribute="Normal" lineEndContext="#stay" name="SubRule"> | 367 | <context attribute="Normal" lineEndContext="#stay" name="SubRule"> | ||
180 | <IncludeRules context="Preprocess"/> | 368 | <IncludeRules context="Preprocess"/> | ||
181 | <keyword attribute="Operator" context="#stay" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 369 | <WordDetect attribute="Operator" context="#stay" String=":"/> | ||
182 | <keyword attribute="Operator" context="#pop#pop" String="tokenSquareClose" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 370 | <WordDetect attribute="Operator" context="#pop#pop" String="]"/> | ||
371 | <RegExpr attribute="Feature" context="Property" String="<[^\t >]+>"/> | ||||
372 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
373 | <!-- auto-completion only --> | ||||
374 | <keyword attribute="Feature" context="#stay" String="features"/> | ||||
183 | </context> | 375 | </context> | ||
184 | 376 | | |||
185 | <!-- Actions, Rules definitions --> | 377 | <!-- Actions, Rules definitions --> | ||
186 | 378 | | |||
187 | <context attribute="Normal" lineEndContext="#stay" name="ActionDefinition"> | 379 | <context attribute="Normal" lineEndContext="#stay" name="ActionDefinition"> | ||
188 | <IncludeRules context="Preprocess"/> | 380 | <IncludeRules context="Preprocess"/> | ||
189 | <keyword attribute="Error" context="#stay" String="actionAttributeBind"/> | 381 | <keyword attribute="Error" context="#stay" String="actionAttributeBind"/> | ||
190 | <keyword attribute="actionAttribute" context="#stay" String="actionAttribute"/> | 382 | <keyword attribute="actionAttribute" context="#stay" String="actionAttribute"/> | ||
191 | <StringDetect attribute="Operator" context="ActionBody" String="{"/> | 383 | <WordDetect attribute="Operator" context="ActionBody" String="{" beginRegion="block"/> | ||
192 | <RegExpr attribute="Action" context="ActionDefinitionFull" String="[^\t ]+"/> | 384 | <RegExpr attribute="Action" context="ActionDefinitionFull" String="&ident;"/> | ||
193 | <DetectSpaces attribute="Normal"/> | 385 | <DetectSpaces attribute="Normal"/> | ||
194 | </context> | 386 | </context> | ||
195 | 387 | | |||
196 | <context attribute="Error" lineEndContext="#stay" name="ActionDefinitionFull"> | 388 | <context attribute="Error" lineEndContext="#stay" name="ActionDefinitionFull"> | ||
197 | <IncludeRules context="Preprocess"/> | 389 | <IncludeRules context="Preprocess"/> | ||
198 | <DetectSpaces attribute="Normal"/> | 390 | <WordDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | ||
199 | <StringDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | | |||
200 | <keyword attribute="actionAttribute" context="ActionDefinitionBind" String="actionAttributeBind"/> | 391 | <keyword attribute="actionAttribute" context="ActionDefinitionBind" String="actionAttributeBind"/> | ||
201 | </context> | 392 | </context> | ||
202 | 393 | | |||
203 | <context attribute="Normal" lineEndContext="#stay" name="ActionDefinitionBind"> | 394 | <context attribute="Normal" lineEndContext="#stay" name="ActionDefinitionBind"> | ||
204 | <IncludeRules context="Preprocess"/> | 395 | <IncludeRules context="Preprocess"/> | ||
205 | <StringDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | 396 | <WordDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | ||
206 | <RegExpr attribute="Varname" context="#stay" String="[^\t ]+"/> | 397 | <RegExpr attribute="Varname" context="#stay" String="&ident;"/> | ||
207 | </context> | 398 | </context> | ||
208 | 399 | | |||
209 | <context attribute="ActionText" lineEndContext="#stay" name="ActionBody"> | 400 | <context attribute="ActionText" lineEndContext="#stay" name="ActionBody"> | ||
210 | <StringDetect attribute="Comment" context="Comment" String="#"/> | 401 | <DetectChar attribute="Comment" context="Comment" char="#"/> | ||
211 | <StringDetect attribute="VariableDelimiter" context="Variable" String="$("/> | 402 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||
212 | <StringDetect attribute="Operator" context="#pop#pop" String="}"/> | 403 | <WordDetect attribute="Operator" context="#pop#pop" String="}" endRegion="block"/> | ||
213 | <IncludeRules context="##Bash"/> | 404 | <IncludeRules context="##Bash"/> | ||
214 | </context> | 405 | </context> | ||
215 | 406 | | |||
216 | <context attribute="Normal" lineEndContext="#stay" name="RuleDefinition"> | 407 | <context attribute="Normal" lineEndContext="#stay" name="RuleDefinition"> | ||
217 | <IncludeRules context="Preprocess"/> | 408 | <IncludeRules context="Preprocess"/> | ||
218 | <keyword attribute="Error" context="#stay" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 409 | <WordDetect attribute="Error" context="#stay" String=":"/> | ||
219 | <keyword attribute="Operator" context="#pop" String="tokenBlockOpen" lookAhead="true" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 410 | <WordDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | ||
220 | <RegExpr attribute="Rule" context="VarnameList" String="[^\t ]+"/> | 411 | <RegExpr attribute="Rule" context="VarnameList" String="&ident;"/> | ||
221 | </context> | 412 | </context> | ||
222 | 413 | | |||
223 | <context attribute="Normal" lineEndContext="#stay" name="VarnameList"> | 414 | <context attribute="Normal" lineEndContext="#stay" name="VarnameList"> | ||
224 | <IncludeRules context="Preprocess"/> | 415 | <IncludeRules context="Preprocess"/> | ||
225 | <keyword attribute="Operator" context="VarnameList" String="tokenColon" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 416 | <WordDetect attribute="Operator" context="VarnameList" String=":"/> | ||
226 | <keyword attribute="Operator" context="#pop" String="tokenBlockOpen" lookAhead="true" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 417 | <WordDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | ||
227 | <RegExpr attribute="Varname" context="#stay" String="[^\t ]+"/> | 418 | <AnyChar attribute="VariableAttribute" context="#stay" String="?+*"/> | ||
419 | <RegExpr attribute="Varname" context="#stay" String="&ident;"/> | ||||
228 | </context> | 420 | </context> | ||
229 | 421 | | |||
230 | <!-- For, While, If --> | 422 | <!-- for, while, if, switch --> | ||
231 | 423 | | |||
232 | <context attribute="Normal" lineEndContext="#stay" name="ForStatement"> | 424 | <context attribute="Normal" lineEndContext="#stay" name="ForStatement" fallthrough="true" fallthroughContext="#pop!ForStatement2"> | ||
425 | <DetectSpaces/> | ||||
426 | <keyword attribute="Keyword" context="#pop!ForStatement2" String="keywordLocal"/> | ||||
427 | </context> | ||||
428 | | ||||
429 | <context attribute="Normal" lineEndContext="#stay" name="ForStatement2"> | ||||
233 | <IncludeRules context="Preprocess"/> | 430 | <IncludeRules context="Preprocess"/> | ||
234 | <StringDetect attribute="Operator" context="ForList" String="in"/> | 431 | <keyword attribute="Operator" context="ForList" String="keywordIn"/> | ||
235 | <RegExpr attribute="Varname" context="#stay" String="[^\t ]+"/> | 432 | <RegExpr attribute="Varname" context="#stay" String="&ident;"/> | ||
236 | </context> | 433 | </context> | ||
237 | 434 | | |||
238 | <context attribute="Normal" lineEndContext="#stay" name="ForList"> | 435 | <context attribute="Normal" lineEndContext="#stay" name="ForList"> | ||
239 | <IncludeRules context="Preprocess"/> | 436 | <IncludeRules context="Preprocess"/> | ||
240 | <keyword attribute="Operator" context="#pop#pop" String="tokenBlockOpen" lookAhead="true" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 437 | <WordDetect attribute="Operator" context="#pop#pop" String="{" lookAhead="true"/> | ||
438 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
241 | </context> | 439 | </context> | ||
242 | 440 | | |||
243 | <context attribute="Normal" lineEndContext="#stay" name="IfStatement"> | 441 | <context attribute="Normal" lineEndContext="#stay" name="IfStatement"> | ||
244 | <IncludeRules context="Preprocess"/> | 442 | <IncludeRules context="Preprocess"/> | ||
245 | <StringDetect attribute="Operator" context="#stay" String="="/> | 443 | <RegExpr attribute="Operator" context="#stay" String="([=<>!]?=|[<>!()]|&&|\|\||in)(?=[ \t]|$)"/> | ||
246 | <StringDetect attribute="Operator" context="#stay" String="!="/> | 444 | <WordDetect attribute="Operator" context="#pop" String="{" lookAhead="true"/> | ||
247 | <StringDetect attribute="Operator" context="#stay" String="<"/> | 445 | <RegExpr attribute="Feature" context="Property" String="<[^\t >]+>"/> | ||
248 | <StringDetect attribute="Operator" context="#stay" String="<="/> | 446 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||
249 | <StringDetect attribute="Operator" context="#stay" String=">"/> | 447 | <!-- auto-completion only --> | ||
250 | <StringDetect attribute="Operator" context="#stay" String=">="/> | 448 | <keyword attribute="Feature" context="#stay" String="features"/> | ||
251 | <StringDetect attribute="Operator" context="#stay" String="in"/> | 449 | </context> | ||
252 | <StringDetect attribute="Operator" context="#stay" String="!"/> | 450 | | ||
253 | <StringDetect attribute="Operator" context="#stay" String="&&"/> | 451 | <context attribute="Normal" lineEndContext="#stay" name="SwitchStatement"> | ||
254 | <StringDetect attribute="Operator" context="#stay" String="||"/> | 452 | <IncludeRules context="Preprocess"/> | ||
255 | <keyword attribute="Operator" context="#stay" String="tokenBraceOpen" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 453 | <DetectChar attribute="Comment" context="Comment" char="#"/> | ||
256 | <keyword attribute="Operator" context="#stay" String="tokenBraceClose" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 454 | <WordDetect attribute="Operator" context="#pop!SwitchStatement2" String="{" beginRegion="block"/> | ||
257 | <keyword attribute="Operator" context="#pop" String="tokenBlockOpen" lookAhead="true" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 455 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||
456 | </context> | ||||
457 | | ||||
458 | <context attribute="Normal" lineEndContext="#stay" name="SwitchStatement2"> | ||||
459 | <DetectSpaces attribute="Normal"/> | ||||
460 | <Detect2Chars attribute="CommentTitle" context="CommentTitle" char="#" char1="#"/> | ||||
461 | <DetectChar attribute="Comment" context="Comment" char="#"/> | ||||
462 | <WordDetect attribute="Operator" context="#pop" String="}" endRegion="block"/> | ||||
463 | <keyword attribute="Operator" context="CaseCond" String="keywordCase"/> | ||||
464 | <RegExpr attribute="Error" context="#stay" String="&ident;"/> | ||||
465 | </context> | ||||
466 | | ||||
467 | <context attribute="Normal" lineEndContext="#stay" name="CaseCond"> | ||||
468 | <DetectSpaces attribute="Normal"/> | ||||
469 | <Detect2Chars attribute="CommentTitle" context="CommentTitle" char="#" char1="#"/> | ||||
470 | <DetectChar attribute="Comment" context="Comment" char="#"/> | ||||
471 | <WordDetect attribute="Operator" context="#pop!CaseStatement" String=":"/> | ||||
472 | <WordDetect attribute="Error" context="#pop" String=";"/> | ||||
473 | <RegExpr attribute="Normal" context="#stay" String="&ident;"/> | ||||
474 | </context> | ||||
475 | | ||||
476 | <context attribute="Normal" lineEndContext="#stay" name="CaseStatement"> | ||||
477 | <IncludeRules context="Preprocess"/> | ||||
478 | <WordDetect attribute="Operator" context="#stay" String=":"/> | ||||
479 | <WordDetect attribute="Operator" context="#pop" String=";"/> | ||||
480 | <IncludeRules context="ValueIdentifier"/> | ||||
258 | </context> | 481 | </context> | ||
259 | 482 | | |||
260 | <!-- Variables, Strings, Comments --> | 483 | <!-- Variables, Strings, Comments --> | ||
261 | 484 | | |||
262 | <context attribute="Normal" lineEndContext="#stay" name="Preprocess"> | 485 | <context attribute="Normal" lineEndContext="#stay" name="Preprocess"> | ||
263 | <RegExpr attribute="Normal" context="#stay" String="\\("|\w)"/> | 486 | <DetectSpaces attribute="Normal"/> | ||
264 | <StringDetect attribute="CommentTitle" context="CommentTitle" String="##"/> | 487 | <Detect2Chars attribute="CommentTitle" context="CommentTitle" char="#" char1="#"/> | ||
265 | <StringDetect attribute="Comment" context="Comment" String="#"/> | 488 | <DetectChar attribute="Comment" context="Comment" char="#"/> | ||
266 | <StringDetect attribute="VariableDelimiter" context="Variable" String="$("/> | 489 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||
267 | <StringDetect attribute="String" context="String" String="""/> | 490 | <DetectChar attribute="String" context="String" char="""/> | ||
268 | <keyword attribute="Operator" context="SubStatement" String="tokenSquareOpen" weakDelimiter=":;{}()[].!+,-<=>%&/?^|~\*,"/> | 491 | <WordDetect attribute="Operator" context="SubStatement" String="["/> | ||
269 | </context> | 492 | </context> | ||
270 | 493 | | |||
271 | <context attribute="Variable" lineEndContext="Error" name="Variable"> | 494 | <context attribute="Variable" lineEndContext="Error" name="Variable"> | ||
272 | <StringDetect attribute="VariableDelimiter" context="Variable" String="$("/> | 495 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||
273 | <StringDetect attribute="VariableDelimiter" context="#pop" String=")"/> | 496 | <DetectChar attribute="VariableDelimiter" context="#pop" char=")"/> | ||
274 | <StringDetect attribute="VariableAttribute" context="VariableRange" String="["/> | 497 | <DetectChar attribute="VariableAttribute" context="VariableRange" char="["/> | ||
275 | <StringDetect attribute="VariableAttribute" context="VariableAttribute" String=":"/> | 498 | <DetectChar attribute="VariableAttribute" context="VariableAttribute" char=":"/> | ||
276 | </context> | 499 | </context> | ||
277 | 500 | | |||
278 | <context attribute="VariableAttribute" lineEndContext="Error" name="VariableRange"> | 501 | <context attribute="VariableAttribute" lineEndContext="Error" name="VariableRange"> | ||
279 | <StringDetect attribute="VariableDelimiter" context="Variable" String="$("/> | 502 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||
280 | <StringDetect attribute="VariableAttribute" context="#pop" String="]"/> | 503 | <DetectChar attribute="VariableAttribute" context="#pop" char="]"/> | ||
281 | </context> | 504 | </context> | ||
282 | 505 | | |||
283 | <context attribute="VariableAttribute" lineEndContext="Error" name="VariableAttribute"> | 506 | <context attribute="VariableAttribute" lineEndContext="Error" name="VariableAttribute"> | ||
284 | <StringDetect attribute="VariableDelimiter" context="Variable" String="$("/> | 507 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||
285 | <StringDetect attribute="Variable" context="#pop" String=")" lookAhead="true"/> | 508 | <DetectChar attribute="Variable" context="#pop" char=")" lookAhead="true"/> | ||
286 | </context> | 509 | </context> | ||
287 | 510 | | |||
288 | <context attribute="Comment" lineEndContext="#pop" name="Comment"> | 511 | <context attribute="Comment" lineEndContext="#pop" name="Comment"> | ||
289 | <RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)"/> | 512 | <DetectSpaces/> | ||
513 | <IncludeRules context="##Alerts" /> | ||||
514 | <DetectIdentifier/> | ||||
290 | </context> | 515 | </context> | ||
291 | 516 | | |||
292 | <context attribute="CommentTitle" lineEndContext="#pop" name="CommentTitle"> | 517 | <context attribute="CommentTitle" lineEndContext="#pop" name="CommentTitle"> | ||
293 | <IncludeRules context="Comment"/> | 518 | <IncludeRules context="Comment"/> | ||
294 | </context> | 519 | </context> | ||
295 | 520 | | |||
296 | <context attribute="String" lineEndContext="#stay" name="String"> | 521 | <context attribute="String" lineEndContext="#stay" name="String"> | ||
297 | <StringDetect attribute="VariableDelimiter" context="Variable" String="$("/> | 522 | <Detect2Chars attribute="VariableDelimiter" context="Variable" char="$" char1="("/> | ||
298 | <StringDetect attribute="EscapeSeq" context="#stay" String="\""/> | 523 | <Detect2Chars attribute="EscapeSeq" context="#stay" char="\" char1="""/> | ||
299 | <StringDetect attribute="EscapeSeq" context="#stay" String="\"/> | 524 | <DetectChar attribute="EscapeSeq" context="#stay" char="\"/> | ||
300 | <DetectChar attribute="String" context="#pop" char="""/> | 525 | <DetectChar attribute="String" context="#pop" char="""/> | ||
301 | </context> | 526 | </context> | ||
302 | 527 | | |||
303 | <!-- Error --> | 528 | <!-- Error --> | ||
304 | 529 | | |||
305 | <context attribute="Error" lineEndContext="#stay" name="Error"/> | 530 | <context attribute="Error" lineEndContext="#stay" name="Error"/> | ||
306 | 531 | | |||
307 | </contexts> | 532 | </contexts> | ||
308 | <itemDatas> | 533 | <itemDatas> | ||
309 | <!-- action definition (shell script) --> | 534 | <!-- action definition (shell script) --> | ||
310 | <itemData name="actionAttribute" defStyleNum="dsNormal" italic="1"/> | 535 | <itemData name="actionAttribute" defStyleNum="dsAttribute"/> | ||
311 | <itemData name="ActionText" defStyleNum="dsNormal"/> | 536 | <itemData name="ActionText" defStyleNum="dsNormal"/> | ||
312 | <!-- rule / action call --> | 537 | <!-- rule / action call --> | ||
313 | <itemData name="Rule" defStyleNum="dsFunction" color="black" underline="1"/> | 538 | <itemData name="Rule" defStyleNum="dsFunction"/> | ||
314 | <itemData name="Action" defStyleNum="dsNormal"/> | 539 | <itemData name="Action" defStyleNum="dsNormal"/> | ||
315 | <!-- variables with attributes --> | 540 | <!-- variables with attributes --> | ||
316 | <itemData name="Variable" defStyleNum="dsNormal" color="darkgreen"/> | 541 | <itemData name="Variable" defStyleNum="dsVariable"/> | ||
317 | <itemData name="VariableDelimiter" defStyleNum="dsNormal" color="blue"/> | 542 | <itemData name="VariableDelimiter" defStyleNum="dsOperator"/> | ||
318 | <itemData name="VariableAttribute" defStyleNum="dsNormal" color="blue"/> | 543 | <itemData name="VariableAttribute" defStyleNum="dsAttribute"/> | ||
319 | <itemData name="VarAssign" defStyleNum="dsNormal" color="darkgreen"/> | 544 | <itemData name="VarAssign" defStyleNum="dsVariable"/> | ||
320 | <itemData name="Varname" defStyleNum="dsNormal" color="darkgreen" italic="1"/> | 545 | <itemData name="Varname" defStyleNum="dsVariable"/> | ||
321 | <!-- common --> | 546 | <!-- common --> | ||
322 | <itemData name="Normal" defStyleNum="dsNormal"/> | 547 | <itemData name="Normal" defStyleNum="dsNormal"/> | ||
323 | <itemData name="Operator" defStyleNum="dsNormal" bold="1"/> | 548 | <itemData name="Feature" defStyleNum="dsBuiltIn"/> | ||
324 | <itemData name="Keyword" defStyleNum="dsKeyword" bold="1"/> | 549 | <itemData name="FeatureOperator" defStyleNum="dsOperator" bold="1"/> | ||
550 | <itemData name="Operator" defStyleNum="dsOperator" bold="1"/> | ||||
551 | <itemData name="Keyword" defStyleNum="dsKeyword"/> | ||||
325 | <itemData name="Comment" defStyleNum="dsComment"/> | 552 | <itemData name="Comment" defStyleNum="dsComment"/> | ||
326 | <itemData name="CommentTitle" defStyleNum="dsComment" color="darkorange" bold="1"/> | 553 | <itemData name="CommentTitle" defStyleNum="dsComment" bold="1"/> | ||
327 | <itemData name="String" defStyleNum="dsString" color="red"/> | 554 | <itemData name="String" defStyleNum="dsString"/> | ||
328 | <itemData name="EscapeSeq" defStyleNum="dsString" color="purple" bold="1"/> | 555 | <itemData name="EscapeSeq" defStyleNum="dsSpecialChar"/> | ||
329 | <itemData name="Alert" defStyleNum="dsAlert"/> | | |||
330 | <itemData name="Error" defStyleNum="dsError"/> | 556 | <itemData name="Error" defStyleNum="dsError"/> | ||
331 | </itemDatas> | 557 | </itemDatas> | ||
332 | </highlighting> | 558 | </highlighting> | ||
333 | <general> | 559 | <general> | ||
334 | <comments> | 560 | <comments> | ||
335 | <comment name="singleLine" start="#"/> | 561 | <comment name="singleLine" start="#"/> | ||
336 | </comments> | 562 | </comments> | ||
337 | <keywords weakDeliminator=":;{}()[].!+,-<=>%&/?^|~\*," additionalDeliminator=" "/> | 563 | <keywords weakDeliminator=":;{}()[].!+,-<=>%&/?^|~\*," additionalDeliminator=" "/> | ||
338 | </general> | 564 | </general> | ||
339 | </language> | 565 | </language> | ||
340 | <!-- kate: space-indent on; indent-width 2; replace-tabs on; --> | 566 | <!-- kate: space-indent on; indent-width 2; replace-tabs on; --> |