PageRenderTime 54ms CodeModel.GetById 20ms app.highlight 10ms RepoModel.GetById 20ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/modes/powerdynamo.xml

#
XML | 470 lines | 421 code | 29 blank | 20 comment | 0 complexity | c9eaaaf1a3abedc3e35f68e110a11bde MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4<!--
  5Sybase PowerDynamo mode file for jEdit - v 1.0
  6(For the 5 people in the world who still have to program in dynamo.)
  7
  8By Ben Williams (benw@webmedia.com.au)
  9
 101.0  2003-11-13  
 11Initial release - supports dynamo script, SQL tags, and mostly complete support 
 12for the other tags (data, document, etc). more support planned for future.  
 13
 14-->
 15<MODE>
 16	<PROPS>
 17		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 18		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 19		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 20		<PROPERTY NAME="wordBreakChars" VALUE=" @	%^*()+=|\{}[]:;,.?$&amp;" />
 21		<PROPERTY NAME="commentStart" VALUE="&lt;!--" />
 22		<PROPERTY NAME="commentEnd" VALUE="--&gt;" />
 23		<PROPERTY NAME="lineComment" VALUE="//" />
 24	</PROPS>
 25	<RULES IGNORE_CASE="TRUE">
 26		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-script">
 27			<BEGIN>&lt;!--script</BEGIN>
 28			<END>--&gt;</END>
 29		</SPAN>
 30
 31		<!-- these are the other dynamo tag types. for the meoment, we'll just hand them over to powerdynamo-script,
 32			 but in future versions we can easily add individual processing for each of them, as they should have.
 33		-->
 34		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-data">
 35			<BEGIN>&lt;!--data</BEGIN>
 36			<END>--&gt;</END>
 37		</SPAN>
 38
 39		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-document">
 40			<BEGIN>&lt;!--document</BEGIN>
 41			<END>--&gt;</END>
 42		</SPAN>
 43
 44		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-script">
 45			<BEGIN>&lt;!--evaluate</BEGIN>
 46			<END>--&gt;</END>
 47		</SPAN>
 48
 49		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-script">
 50			<BEGIN>&lt;!--execute</BEGIN>
 51			<END>--&gt;</END>
 52		</SPAN>
 53
 54		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 55			<BEGIN>&lt;!--formatting</BEGIN>
 56			<END>--&gt;</END>
 57		</SPAN>
 58
 59		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 60			<BEGIN>&lt;!--/formatting</BEGIN>
 61			<END>--&gt;</END>
 62		</SPAN>
 63
 64		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 65			<BEGIN>&lt;!--include</BEGIN>
 66			<END>--&gt;</END>
 67		</SPAN>
 68
 69		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 70			<BEGIN>&lt;!--label</BEGIN>
 71			<END>--&gt;</END>
 72		</SPAN>
 73		
 74		<SPAN TYPE="LABEL" DELEGATE="transact-sql::MAIN">
 75			<BEGIN>&lt;!--sql</BEGIN>
 76			<END>--&gt;</END>
 77		</SPAN>
 78
 79		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 80			<BEGIN>&lt;!--sql_error_code</BEGIN>
 81			<END>--&gt;</END>
 82		</SPAN>
 83
 84		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 85			<BEGIN>&lt;!--sql_error_info</BEGIN>
 86			<END>--&gt;</END>
 87		</SPAN>
 88
 89		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 90			<BEGIN>&lt;!--sql_state</BEGIN>
 91			<END>--&gt;</END>
 92		</SPAN>
 93		
 94		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 95			<BEGIN>&lt;!--sql_on_no_error</BEGIN>
 96			<END>--&gt;</END>
 97		</SPAN>
 98		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
 99			<BEGIN>&lt;!--/sql_on_no_error</BEGIN>
100			<END>--&gt;</END>
101		</SPAN>
102
103		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
104			<BEGIN>&lt;!--sql_on_error</BEGIN>
105			<END>--&gt;</END>
106		</SPAN>
107		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
108			<BEGIN>&lt;!--/sql_on_error</BEGIN>
109			<END>--&gt;</END>
110		</SPAN>
111
112		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
113			<BEGIN>&lt;!--sql_on_no_rows</BEGIN>
114			<END>--&gt;</END>
115		</SPAN>
116		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
117			<BEGIN>&lt;!--/sql_on_no_rows</BEGIN>
118			<END>--&gt;</END>
119		</SPAN>
120
121		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
122			<BEGIN>&lt;!--sql_on_rows</BEGIN>
123			<END>--&gt;</END>
124		</SPAN>
125		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-tag-general">
126			<BEGIN>&lt;!--/sql_on_rows</BEGIN>
127			<END>--&gt;</END>
128		</SPAN>
129 
130		<!-- SGML comment -->
131		<SPAN TYPE="COMMENT1">
132			<BEGIN>&lt;!--</BEGIN>
133			<END>--&gt;</END>
134		</SPAN>
135
136		<!-- JavaScript -->
137		<SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
138			<BEGIN>&lt;SCRIPT</BEGIN>
139			<END>&lt;/SCRIPT&gt;</END>
140		</SPAN>
141
142		<!-- stylesheet -->
143		<SPAN TYPE="MARKUP" DELEGATE="html::CSS">
144			<BEGIN>&lt;STYLE</BEGIN>
145			<END>&lt;/STYLE&gt;</END>
146		</SPAN>
147
148		<!-- DTD instructions -->
149		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
150			<BEGIN>&lt;!</BEGIN>
151			<END>&gt;</END>
152		</SPAN>
153
154		<!-- markup tags -->
155		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
156			<BEGIN>&lt;</BEGIN>
157			<END>&gt;</END>
158		</SPAN>
159
160		<!-- SGML entities -->
161		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
162			<BEGIN>&amp;</BEGIN>
163			<END>;</END>
164		</SPAN>
165	</RULES>
166
167	<RULES SET="TAGS" DEFAULT="MARKUP">
168		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-script">
169			<BEGIN>&lt;!--script</BEGIN>
170			<END>--?&gt;</END>
171		</SPAN>
172
173		<SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
174			<BEGIN>"</BEGIN>
175			<END>"</END>
176		</SPAN>
177
178		<SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
179			<BEGIN>'</BEGIN>
180			<END>'</END>
181		</SPAN>
182
183		<SEQ TYPE="OPERATOR">=</SEQ>
184	</RULES>
185
186	<RULES SET="TAGS_LITERAL" DEFAULT="LITERAL1">
187		<SPAN TYPE="LABEL" DELEGATE="powerdynamo-script">
188			<BEGIN>&lt;!--script</BEGIN>
189			<END>?--&gt;</END>
190		</SPAN>
191	</RULES>
192
193	<RULES SET="powerdynamo-script" ESCAPE="\" HIGHLIGHT_DIGITS="TRUE">
194		<!--PROPS>
195			<PROPERTY NAME="commentStart" VALUE="/*" />
196			<PROPERTY NAME="lineComment" VALUE="//" />
197		</PROPS-->
198
199		<SPAN TYPE="COMMENT1">
200			<BEGIN>/*</BEGIN>
201			<END>*/</END>
202		</SPAN>
203
204		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
205			<BEGIN>"</BEGIN>
206			<END>"</END>
207		</SPAN>
208		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
209			<BEGIN>'</BEGIN>
210			<END>'</END>
211		</SPAN>
212
213		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
214
215		<SEQ TYPE="OPERATOR">=</SEQ>
216		<SEQ TYPE="OPERATOR">!</SEQ>
217		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
218		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
219		<SEQ TYPE="OPERATOR">=</SEQ>
220		<SEQ TYPE="OPERATOR">+</SEQ>
221		<SEQ TYPE="OPERATOR">-</SEQ>
222		<SEQ TYPE="OPERATOR">/</SEQ>
223		<SEQ TYPE="OPERATOR">*</SEQ>
224		<SEQ TYPE="OPERATOR">&gt;</SEQ>
225		<SEQ TYPE="OPERATOR">&lt;</SEQ>
226		<SEQ TYPE="OPERATOR">%</SEQ>
227		<SEQ TYPE="OPERATOR">&amp;</SEQ>
228		<SEQ TYPE="OPERATOR">|</SEQ>
229		<SEQ TYPE="OPERATOR">^</SEQ>
230		<SEQ TYPE="OPERATOR">~</SEQ>
231		<SEQ TYPE="OPERATOR">.</SEQ>
232		<SEQ TYPE="OPERATOR">}</SEQ>
233		<SEQ TYPE="OPERATOR">{</SEQ>
234		<SEQ TYPE="OPERATOR">,</SEQ>
235		<SEQ TYPE="OPERATOR">;</SEQ>
236		<SEQ TYPE="OPERATOR">]</SEQ>
237		<SEQ TYPE="OPERATOR">[</SEQ>
238		<SEQ TYPE="OPERATOR">?</SEQ>
239		<SEQ TYPE="OPERATOR">@</SEQ>
240		<SEQ TYPE="OPERATOR">:</SEQ>
241
242		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
243
244		<!-- <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE"
245			NO_WORD_BREAK="TRUE"> (</MARK_PREVIOUS> -->
246
247		<!-- <MARK_FOLLOWING TYPE="FUNCTION" EXCLUDE_MATCH="TRUE"
248			NO_WORD_BREAK="TRUE">class </MARK_FOLLOWING> -->
249
250		<KEYWORDS>
251			<!-- Language constructs (24) -->
252			<KEYWORD1>abstract</KEYWORD1>
253			<KEYWORD1>break</KEYWORD1>
254			<KEYWORD1>byte</KEYWORD1>
255			<KEYWORD1>boolean</KEYWORD1>
256			<KEYWORD1>catch</KEYWORD1>
257			<KEYWORD1>case</KEYWORD1>
258			<KEYWORD1>class</KEYWORD1>
259			<KEYWORD1>char</KEYWORD1>
260			<KEYWORD1>continue</KEYWORD1>
261			<KEYWORD1>default</KEYWORD1>
262			<KEYWORD1>double</KEYWORD1>
263			<KEYWORD1>do</KEYWORD1>
264			<KEYWORD1>else</KEYWORD1>
265			<KEYWORD1>exists</KEYWORD1>
266			<KEYWORD1>extends</KEYWORD1>
267			<KEYWORD1>false</KEYWORD1>
268			<KEYWORD1>file</KEYWORD1>
269			<KEYWORD1>final</KEYWORD1>
270			<KEYWORD1>float</KEYWORD1>
271			<KEYWORD1>for</KEYWORD1>
272			<KEYWORD1>finally</KEYWORD1>
273			<KEYWORD1>function</KEYWORD1>
274			<KEYWORD1>if</KEYWORD1>
275			<KEYWORD1>import</KEYWORD1>
276			<KEYWORD1>implements</KEYWORD1>
277			<KEYWORD1>int</KEYWORD1>
278			<KEYWORD1>interface</KEYWORD1>
279			<KEYWORD1>instanceof</KEYWORD1>
280			<KEYWORD1>long</KEYWORD1>
281			<KEYWORD1>length</KEYWORD1>
282			<KEYWORD1>native</KEYWORD1>
283			<KEYWORD1>new</KEYWORD1>
284			<KEYWORD1>null</KEYWORD1>
285			<KEYWORD1>package</KEYWORD1>
286			<KEYWORD1>private</KEYWORD1>
287			<KEYWORD1>protected</KEYWORD1>
288			<KEYWORD1>public</KEYWORD1>
289			<KEYWORD1>return</KEYWORD1>
290			<KEYWORD1>switch</KEYWORD1>
291			<KEYWORD1>synchronized</KEYWORD1>
292			<KEYWORD1>short</KEYWORD1>
293			<KEYWORD1>static</KEYWORD1>
294			<KEYWORD1>super</KEYWORD1>
295			<KEYWORD1>try</KEYWORD1>
296			<KEYWORD1>true</KEYWORD1>
297			<KEYWORD1>this</KEYWORD1>
298			<KEYWORD1>throw</KEYWORD1>
299			<KEYWORD1>throws</KEYWORD1>
300			<KEYWORD1>threadsafe</KEYWORD1>
301			<KEYWORD1>transient</KEYWORD1>
302			<KEYWORD1>var</KEYWORD1>
303			<KEYWORD1>void</KEYWORD1>
304			<KEYWORD1>while</KEYWORD1>
305			
306			<!-- objects -->
307			<KEYWORD2></KEYWORD2>
308			<KEYWORD2>document</KEYWORD2>
309			<KEYWORD2>connection</KEYWORD2>
310			<KEYWORD2>file</KEYWORD2>
311			<KEYWORD2>query</KEYWORD2>
312			<KEYWORD2>session</KEYWORD2>
313			<KEYWORD2>site</KEYWORD2>
314			<KEYWORD2>system</KEYWORD2>
315			<KEYWORD2>typeof</KEYWORD2>
316			
317			<!-- methods & attributes -->
318			<KEYWORD3>AskQuestion</KEYWORD3>
319			<KEYWORD3>autoCommit</KEYWORD3>
320			<KEYWORD3>Close</KEYWORD3>
321			<KEYWORD3>Commit</KEYWORD3>
322			<KEYWORD3>Connect</KEYWORD3>
323			<KEYWORD3>CreateConnection</KEYWORD3>
324			<KEYWORD3>CreateDocument</KEYWORD3>
325			<KEYWORD3>CreatePropertySheet</KEYWORD3>
326			<KEYWORD3>CreateQuery</KEYWORD3>
327			<KEYWORD3>CreateWizard</KEYWORD3>
328			<KEYWORD3>cachedOutputTimeOut</KEYWORD3>
329			<KEYWORD3>charAt</KEYWORD3>
330			<KEYWORD3>connected</KEYWORD3>
331			<KEYWORD3>connection</KEYWORD3>
332			<KEYWORD3>connectionId</KEYWORD3>
333			<KEYWORD3>connectionName</KEYWORD3>
334			<KEYWORD3>connectionType</KEYWORD3>
335			<KEYWORD3>connectParameters</KEYWORD3>
336			<KEYWORD3>contentType</KEYWORD3>
337			<KEYWORD3>DeleteConnection</KEYWORD3>
338			<KEYWORD3>DeleteDocument</KEYWORD3>
339			<KEYWORD3>Disconnect</KEYWORD3>
340			<KEYWORD3>database</KEYWORD3>
341			<KEYWORD3>dataSource</KEYWORD3>
342			<KEYWORD3>dataSourceList</KEYWORD3>
343			<KEYWORD3>description</KEYWORD3>
344			<KEYWORD3>Exec</KEYWORD3>
345			<KEYWORD3>Execute</KEYWORD3>
346			<KEYWORD3>ExportTo</KEYWORD3>
347			<KEYWORD3>eof</KEYWORD3>
348			<KEYWORD3>errorNumber</KEYWORD3>
349			<KEYWORD3>errorString</KEYWORD3>
350			<KEYWORD3>GetColumnCount</KEYWORD3>
351			<KEYWORD3>GetColumnIndex</KEYWORD3>
352			<KEYWORD3>GetColumnLabel</KEYWORD3>
353			<KEYWORD3>GetConnection</KEYWORD3>
354			<KEYWORD3>GetConnectionIdList</KEYWORD3>
355			<KEYWORD3>GetConnectionNameList</KEYWORD3>
356			<KEYWORD3>GetCWD</KEYWORD3>
357			<KEYWORD3>GetDirectory</KEYWORD3>
358			<KEYWORD3>GetDocument</KEYWORD3>
359			<KEYWORD3>GetEmpty</KEYWORD3>
360			<KEYWORD3>GetEnv</KEYWORD3>
361			<KEYWORD3>GetErrorCode</KEYWORD3>
362			<KEYWORD3>GetErrorInfo</KEYWORD3>
363			<KEYWORD3>GetEventList</KEYWORD3>
364			<KEYWORD3>GetFilePtr</KEYWORD3>
365			<KEYWORD3>GetGenerated</KEYWORD3>
366			<KEYWORD3>GetRootDocument</KEYWORD3>
367			<KEYWORD3>GetRowCount</KEYWORD3>
368			<KEYWORD3>GetServerVariable</KEYWORD3>
369			<KEYWORD3>GetState</KEYWORD3>
370			<KEYWORD3>GetSupportedMoves</KEYWORD3>
371			<KEYWORD3>GetValue</KEYWORD3>
372			<KEYWORD3>ImportFrom</KEYWORD3>
373			<KEYWORD3>Include</KEYWORD3>
374			<KEYWORD3>id</KEYWORD3>
375			<KEYWORD3>indexOf</KEYWORD3>
376			<KEYWORD3>lastIndexOf</KEYWORD3>
377			<KEYWORD3>lastModified</KEYWORD3>
378			<KEYWORD3>length</KEYWORD3>
379			<KEYWORD3>location</KEYWORD3>
380			<KEYWORD3>Move</KEYWORD3>
381			<KEYWORD3>MoveFirst</KEYWORD3>
382			<KEYWORD3>MoveLast</KEYWORD3>
383			<KEYWORD3>MoveNext</KEYWORD3>
384			<KEYWORD3>MovePrevious</KEYWORD3>
385			<KEYWORD3>MoveRelative</KEYWORD3>
386			<KEYWORD3>mode</KEYWORD3>
387			<KEYWORD3>name</KEYWORD3>
388			<KEYWORD3>OnEvent</KEYWORD3>
389			<KEYWORD3>Open</KEYWORD3>
390			<KEYWORD3>Opened</KEYWORD3>
391			<KEYWORD3>parent</KEYWORD3>
392			<KEYWORD3>password</KEYWORD3>
393			<KEYWORD3>ReadChar</KEYWORD3>
394			<KEYWORD3>ReadLine</KEYWORD3>
395			<KEYWORD3>Refresh</KEYWORD3>
396			<KEYWORD3>Rollback</KEYWORD3>
397			<KEYWORD3>redirect</KEYWORD3>
398			<KEYWORD3>Seek</KEYWORD3>
399			<KEYWORD3>SetEnv</KEYWORD3>
400			<KEYWORD3>SetSQL</KEYWORD3>
401			<KEYWORD3>ShowMessage</KEYWORD3>
402			<KEYWORD3>substring</KEYWORD3>
403			<KEYWORD3>server</KEYWORD3>
404			<KEYWORD3>simulateCursors</KEYWORD3>
405			<KEYWORD3>size</KEYWORD3>
406			<KEYWORD3>source</KEYWORD3>
407			<KEYWORD3>status</KEYWORD3>
408			<KEYWORD3>timeOut</KEYWORD3>
409			<KEYWORD3>toLowerCase</KEYWORD3>
410			<KEYWORD3>toUpperCase</KEYWORD3>
411			<KEYWORD3>type</KEYWORD3>
412			<KEYWORD3>userId</KEYWORD3>
413			<KEYWORD3>value</KEYWORD3>
414			<KEYWORD3>WriteLine</KEYWORD3>
415			<KEYWORD3>Write</KEYWORD3>
416			<KEYWORD3>write</KEYWORD3>
417			<KEYWORD3>writeln</KEYWORD3>
418		</KEYWORDS>
419	</RULES>
420	
421	<RULES IGNORE_CASE="TRUE" SET="powerdynamo-tag-general">
422		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
423			<BEGIN>"</BEGIN>
424			<END>"</END>
425		</SPAN>
426		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
427			<BEGIN>'</BEGIN>
428			<END>'</END>
429		</SPAN>
430		
431		<KEYWORDS>
432			<KEYWORD2>NAME</KEYWORD2>
433		</KEYWORDS>
434	</RULES>
435	
436	<RULES IGNORE_CASE="TRUE" SET="powerdynamo-tag-data">
437		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
438			<BEGIN>"</BEGIN>
439			<END>"</END>
440		</SPAN>
441		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
442			<BEGIN>'</BEGIN>
443			<END>'</END>
444		</SPAN>
445		
446		<KEYWORDS>
447			<KEYWORD2>NAME</KEYWORD2>
448			<KEYWORD2>QUERY</KEYWORD2>
449		</KEYWORDS>
450	</RULES>
451
452	<RULES IGNORE_CASE="TRUE" SET="powerdynamo-tag-document">
453		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
454			<BEGIN>"</BEGIN>
455			<END>"</END>
456		</SPAN>
457		<SPAN TYPE="LITERAL1" DELEGATE="powerdynamo_LITERAL">
458			<BEGIN>'</BEGIN>
459			<END>'</END>
460		</SPAN>
461		
462		<KEYWORDS>
463			<KEYWORD2>CONTENT_TYPE</KEYWORD2>
464			<KEYWORD2>REDIRECT</KEYWORD2>
465			<KEYWORD2>STATUS</KEYWORD2>
466			<KEYWORD2>CACHED_OUTPUT_TIMEOUT</KEYWORD2>
467		</KEYWORDS>
468	</RULES>
469
470</MODE>