PageRenderTime 43ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 1ms

/jEdit/tags/jedit-4-0-pre5/modes/batch.xml

#
XML | 147 lines | 133 code | 4 blank | 10 comment | 0 complexity | 3132f51e69afb83b63ed9d1767ee7f23 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- 	
  6	Compiled by Mirco Bova on 04-12-2001 
  7	this file is based on the original JEdit batch.xml mode.
  8	The main upgrade consisting in adding the standard MS-DOS
  9	commands as keywords and functions:
 10	- keywords =		internal shell commands;
 11	-	functions =		standard MS-DOS commands (.exe or .com in DOS or
 12									windows\command directory).
 13-->
 14
 15<!-- The keywords and functions here defined are those of MS-DOS 6.22 -->
 16
 17<MODE>
 18	<PROPS>
 19		<PROPERTY NAME="lineComment" VALUE="rem " />
 20	</PROPS>
 21	<RULES ESCAPE="\" IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="FALSE">
 22		<WHITESPACE> </WHITESPACE>
 23		<WHITESPACE>	</WHITESPACE>
 24
 25		<!-- 'echo off' statements -->
 26		<SEQ TYPE="KEYWORD3">@</SEQ>
 27
 28		<SEQ TYPE="OPERATOR">+</SEQ>
 29		<SEQ TYPE="OPERATOR">|</SEQ>
 30		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 31		<SEQ TYPE="OPERATOR">!</SEQ>
 32		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 33		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 34
 35		<SEQ TYPE="NULL">(</SEQ>
 36		<SEQ TYPE="NULL">)</SEQ>
 37		<SEQ TYPE="NULL">=</SEQ>
 38		<SEQ TYPE="NULL">.</SEQ>
 39		<SEQ TYPE="NULL">,</SEQ>
 40		<SEQ TYPE="NULL">;</SEQ>
 41		<SEQ TYPE="NULL">]</SEQ>
 42		<SEQ TYPE="NULL">[</SEQ>
 43
 44		<!-- labels - eg :test -->
 45		<EOL_SPAN TYPE="LABEL" AT_LINE_START="TRUE">:</EOL_SPAN>
 46
 47		<!-- comments -->
 48		<EOL_SPAN TYPE="COMMENT1">REM</EOL_SPAN>
 49
 50		<!-- literals -->
 51		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 52			<BEGIN>"</BEGIN>
 53			<END>"</END>
 54		</SPAN>
 55		
 56		<!-- variables -->
 57		<SEQ TYPE="KEYWORD2">%1</SEQ>
 58		<SEQ TYPE="KEYWORD2">%2</SEQ>
 59		<SEQ TYPE="KEYWORD2">%3</SEQ>
 60		<SEQ TYPE="KEYWORD2">%4</SEQ>
 61		<SEQ TYPE="KEYWORD2">%5</SEQ>
 62		<SEQ TYPE="KEYWORD2">%6</SEQ>
 63		<SEQ TYPE="KEYWORD2">%7</SEQ>
 64		<SEQ TYPE="KEYWORD2">%8</SEQ>
 65		<SEQ TYPE="KEYWORD2">%9</SEQ>
 66		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
 67			<BEGIN>%</BEGIN>
 68			<END>%</END>
 69		</SPAN>
 70
 71		<KEYWORDS IGNORE_CASE="TRUE">
 72			<!-- KEYWORD1 are internal MS-DOS shell commands -->
 73			<KEYWORD1>cd</KEYWORD1>
 74			<KEYWORD1>chdir</KEYWORD1>
 75			<KEYWORD1>md</KEYWORD1>
 76			<KEYWORD1>mkdir</KEYWORD1>
 77		
 78			<KEYWORD1>cls</KEYWORD1>
 79		
 80			<KEYWORD1>if</KEYWORD1>
 81		
 82			<KEYWORD1>echo</KEYWORD1>
 83			<KEYWORD1>echo.</KEYWORD1>
 84		
 85			<KEYWORD1>move</KEYWORD1>
 86			<KEYWORD1>copy</KEYWORD1>
 87			<KEYWORD1>move</KEYWORD1>
 88			<KEYWORD1>ren</KEYWORD1>
 89			<KEYWORD1>del</KEYWORD1>
 90			<KEYWORD1>set</KEYWORD1>
 91		
 92			<!-- KEYWORD2 are commands options -->
 93		
 94			<KEYWORD2>exist</KEYWORD2>
 95			<KEYWORD2>errorlevel</KEYWORD2>
 96			<KEYWORD1>not</KEYWORD1>
 97		
 98			<!-- goto is a special case we want to distinguish it -->
 99			<KEYWORD3>goto</KEYWORD3>
100
101			<!-- FUNCTION are standard MS-DOS commands -->
102			<!-- (those you find as stand-alone .exe or .com) in win95 %windows_root%\command folder -->
103			<FUNCTION>APPEND</FUNCTION>
104			<FUNCTION>ATTRIB</FUNCTION>
105			<FUNCTION>CHKDSK</FUNCTION>
106			<FUNCTION>CHOICE</FUNCTION>
107			<FUNCTION>DEBUG</FUNCTION>
108			<FUNCTION>DEFRAG</FUNCTION>
109			<FUNCTION>DELTREE</FUNCTION>
110			<FUNCTION>DISKCOMP</FUNCTION>
111			<FUNCTION>DISKCOPY</FUNCTION>
112			<FUNCTION>DOSKEY</FUNCTION>
113			<FUNCTION>DRVSPACE</FUNCTION>
114			<FUNCTION>EMM386</FUNCTION>
115			<FUNCTION>EXPAND</FUNCTION>
116			<FUNCTION>FASTOPEN</FUNCTION>
117			<FUNCTION>FC</FUNCTION>
118			<FUNCTION>FDISK</FUNCTION>
119			<FUNCTION>FIND</FUNCTION>
120			<FUNCTION>FORMAT</FUNCTION>
121			<FUNCTION>GRAPHICS</FUNCTION>
122			<FUNCTION>KEYB</FUNCTION>
123			<FUNCTION>LABEL</FUNCTION>
124			<FUNCTION>LOADFIX</FUNCTION>
125			<FUNCTION>MEM</FUNCTION>
126			<FUNCTION>MODE</FUNCTION>
127			<FUNCTION>MORE</FUNCTION>
128			<FUNCTION>MOVE</FUNCTION>
129			<FUNCTION>MSCDEX</FUNCTION>
130			<FUNCTION>NLSFUNC</FUNCTION>
131			<FUNCTION>POWER</FUNCTION>
132			<FUNCTION>PRINT</FUNCTION>
133			<FUNCTION>REPLACE</FUNCTION>
134			<FUNCTION>RESTORE</FUNCTION>
135			<FUNCTION>SETVER</FUNCTION>
136			<FUNCTION>SHARE</FUNCTION>
137			<FUNCTION>SORT</FUNCTION>
138			<FUNCTION>SUBST</FUNCTION>
139			<FUNCTION>SYS</FUNCTION>
140			<FUNCTION>TREE</FUNCTION>
141			<FUNCTION>UNDELETE</FUNCTION>
142			<FUNCTION>UNFORMAT</FUNCTION>
143			<FUNCTION>VSAFE</FUNCTION>
144			<FUNCTION>XCOPY</FUNCTION>
145		</KEYWORDS>
146	</RULES>
147</MODE>