PageRenderTime 42ms CodeModel.GetById 36ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 147 lines | 133 code | 4 blank | 10 comment | 0 complexity | e115fc9151af596522f0b9d69916dec0 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		<KEYWORDS IGNORE_CASE="TRUE">
 57				<!-- KEYWORD1 are internal MS-DOS shell commands -->
 58				<KEYWORD1>cd</KEYWORD1>
 59				<KEYWORD1>chdir</KEYWORD1>
 60				<KEYWORD1>md</KEYWORD1>
 61				<KEYWORD1>mkdir</KEYWORD1>
 62		
 63				<KEYWORD1>cls</KEYWORD1>
 64		
 65				<KEYWORD1>if</KEYWORD1>
 66		
 67				<KEYWORD1>echo</KEYWORD1>
 68				<KEYWORD1>echo.</KEYWORD1>
 69		
 70				<KEYWORD1>move</KEYWORD1>
 71				<KEYWORD1>copy</KEYWORD1>
 72				<KEYWORD1>move</KEYWORD1>
 73				<KEYWORD1>ren</KEYWORD1>
 74				<KEYWORD1>del</KEYWORD1>
 75				<KEYWORD1>set</KEYWORD1>
 76		
 77				<!-- KEYWORD2 are commands options -->
 78		
 79				<KEYWORD2>exist</KEYWORD2>
 80				<KEYWORD2>errorlevel</KEYWORD2>
 81				<KEYWORD1>not</KEYWORD1>
 82		
 83				<!-- goto is a special case we want to distinguish it -->
 84				<KEYWORD3>goto</KEYWORD3>
 85
 86				<!-- FUNCTION are standard MS-DOS commands -->
 87				<!-- (those you find as stand-alone .exe or .com) in win95 %windows_root%\command folder -->
 88				<FUNCTION>APPEND</FUNCTION>
 89				<FUNCTION>ATTRIB</FUNCTION>
 90				<FUNCTION>CHKDSK</FUNCTION>
 91				<FUNCTION>CHOICE</FUNCTION>
 92				<FUNCTION>DEBUG</FUNCTION>
 93				<FUNCTION>DEFRAG</FUNCTION>
 94				<FUNCTION>DELTREE</FUNCTION>
 95				<FUNCTION>DISKCOMP</FUNCTION>
 96				<FUNCTION>DISKCOPY</FUNCTION>
 97				<FUNCTION>DOSKEY</FUNCTION>
 98				<FUNCTION>DRVSPACE</FUNCTION>
 99				<FUNCTION>EMM386</FUNCTION>
100				<FUNCTION>EXPAND</FUNCTION>
101				<FUNCTION>FASTOPEN</FUNCTION>
102				<FUNCTION>FC</FUNCTION>
103				<FUNCTION>FDISK</FUNCTION>
104				<FUNCTION>FIND</FUNCTION>
105				<FUNCTION>FORMAT</FUNCTION>
106				<FUNCTION>GRAPHICS</FUNCTION>
107				<FUNCTION>KEYB</FUNCTION>
108				<FUNCTION>LABEL</FUNCTION>
109				<FUNCTION>LOADFIX</FUNCTION>
110				<FUNCTION>MEM</FUNCTION>
111				<FUNCTION>MODE</FUNCTION>
112				<FUNCTION>MORE</FUNCTION>
113				<FUNCTION>MOVE</FUNCTION>
114				<FUNCTION>MSCDEX</FUNCTION>
115				<FUNCTION>NLSFUNC</FUNCTION>
116				<FUNCTION>POWER</FUNCTION>
117				<FUNCTION>PRINT</FUNCTION>
118				<FUNCTION>REPLACE</FUNCTION>
119				<FUNCTION>RESTORE</FUNCTION>
120				<FUNCTION>SETVER</FUNCTION>
121				<FUNCTION>SHARE</FUNCTION>
122				<FUNCTION>SORT</FUNCTION>
123				<FUNCTION>SUBST</FUNCTION>
124				<FUNCTION>SYS</FUNCTION>
125				<FUNCTION>TREE</FUNCTION>
126				<FUNCTION>UNDELETE</FUNCTION>
127				<FUNCTION>UNFORMAT</FUNCTION>
128				<FUNCTION>VSAFE</FUNCTION>
129				<FUNCTION>XCOPY</FUNCTION>
130		</KEYWORDS>
131		
132		<!-- variables -->
133		<SEQ TYPE="KEYWORD2">%1</SEQ>
134		<SEQ TYPE="KEYWORD2">%2</SEQ>
135		<SEQ TYPE="KEYWORD2">%3</SEQ>
136		<SEQ TYPE="KEYWORD2">%4</SEQ>
137		<SEQ TYPE="KEYWORD2">%5</SEQ>
138		<SEQ TYPE="KEYWORD2">%6</SEQ>
139		<SEQ TYPE="KEYWORD2">%7</SEQ>
140		<SEQ TYPE="KEYWORD2">%8</SEQ>
141		<SEQ TYPE="KEYWORD2">%9</SEQ>
142		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
143			<BEGIN>%</BEGIN>
144			<END>%</END>
145		</SPAN>
146	</RULES>
147</MODE>