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

/jEdit/tags/jedit-4-3-pre5/modes/powerdynamo.xml

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