PageRenderTime 510ms CodeModel.GetById 507ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 135 lines | 121 code | 4 blank | 10 comment | 0 complexity | d4d2b57470eb419714e17615bfcb699e 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		<!-- 'echo off' statements -->
 23		<SEQ TYPE="KEYWORD3">@</SEQ>
 24
 25		<SEQ TYPE="OPERATOR">+</SEQ>
 26		<SEQ TYPE="OPERATOR">|</SEQ>
 27		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 28		<SEQ TYPE="OPERATOR">!</SEQ>
 29		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 30		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 31
 32		<!-- labels - eg :test -->
 33		<EOL_SPAN TYPE="LABEL" AT_LINE_START="TRUE">:</EOL_SPAN>
 34
 35		<!-- comments -->
 36		<EOL_SPAN TYPE="COMMENT1">REM</EOL_SPAN>
 37
 38		<!-- literals -->
 39		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 40			<BEGIN>"</BEGIN>
 41			<END>"</END>
 42		</SPAN>
 43		
 44		<!-- variables -->
 45		<SEQ TYPE="KEYWORD2">%1</SEQ>
 46		<SEQ TYPE="KEYWORD2">%2</SEQ>
 47		<SEQ TYPE="KEYWORD2">%3</SEQ>
 48		<SEQ TYPE="KEYWORD2">%4</SEQ>
 49		<SEQ TYPE="KEYWORD2">%5</SEQ>
 50		<SEQ TYPE="KEYWORD2">%6</SEQ>
 51		<SEQ TYPE="KEYWORD2">%7</SEQ>
 52		<SEQ TYPE="KEYWORD2">%8</SEQ>
 53		<SEQ TYPE="KEYWORD2">%9</SEQ>
 54		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
 55			<BEGIN>%</BEGIN>
 56			<END>%</END>
 57		</SPAN>
 58
 59		<KEYWORDS>
 60			<!-- KEYWORD1 are internal MS-DOS shell commands -->
 61			<KEYWORD1>cd</KEYWORD1>
 62			<KEYWORD1>chdir</KEYWORD1>
 63			<KEYWORD1>md</KEYWORD1>
 64			<KEYWORD1>mkdir</KEYWORD1>
 65		
 66			<KEYWORD1>cls</KEYWORD1>
 67		
 68			<KEYWORD1>if</KEYWORD1>
 69		
 70			<KEYWORD1>echo</KEYWORD1>
 71			<KEYWORD1>echo.</KEYWORD1>
 72		
 73			<KEYWORD1>move</KEYWORD1>
 74			<KEYWORD1>copy</KEYWORD1>
 75			<KEYWORD1>move</KEYWORD1>
 76			<KEYWORD1>ren</KEYWORD1>
 77			<KEYWORD1>del</KEYWORD1>
 78			<KEYWORD1>set</KEYWORD1>
 79		
 80			<!-- KEYWORD2 are commands options -->
 81		
 82			<KEYWORD2>exist</KEYWORD2>
 83			<KEYWORD2>errorlevel</KEYWORD2>
 84			<KEYWORD1>not</KEYWORD1>
 85		
 86			<!-- goto is a special case we want to distinguish it -->
 87			<KEYWORD3>goto</KEYWORD3>
 88
 89			<!-- FUNCTION are standard MS-DOS commands -->
 90			<!-- (those you find as stand-alone .exe or .com) in win95 %windows_root%\command folder -->
 91			<FUNCTION>APPEND</FUNCTION>
 92			<FUNCTION>ATTRIB</FUNCTION>
 93			<FUNCTION>CHKDSK</FUNCTION>
 94			<FUNCTION>CHOICE</FUNCTION>
 95			<FUNCTION>DEBUG</FUNCTION>
 96			<FUNCTION>DEFRAG</FUNCTION>
 97			<FUNCTION>DELTREE</FUNCTION>
 98			<FUNCTION>DISKCOMP</FUNCTION>
 99			<FUNCTION>DISKCOPY</FUNCTION>
100			<FUNCTION>DOSKEY</FUNCTION>
101			<FUNCTION>DRVSPACE</FUNCTION>
102			<FUNCTION>EMM386</FUNCTION>
103			<FUNCTION>EXPAND</FUNCTION>
104			<FUNCTION>FASTOPEN</FUNCTION>
105			<FUNCTION>FC</FUNCTION>
106			<FUNCTION>FDISK</FUNCTION>
107			<FUNCTION>FIND</FUNCTION>
108			<FUNCTION>FORMAT</FUNCTION>
109			<FUNCTION>GRAPHICS</FUNCTION>
110			<FUNCTION>KEYB</FUNCTION>
111			<FUNCTION>LABEL</FUNCTION>
112			<FUNCTION>LOADFIX</FUNCTION>
113			<FUNCTION>MEM</FUNCTION>
114			<FUNCTION>MODE</FUNCTION>
115			<FUNCTION>MORE</FUNCTION>
116			<FUNCTION>MOVE</FUNCTION>
117			<FUNCTION>MSCDEX</FUNCTION>
118			<FUNCTION>NLSFUNC</FUNCTION>
119			<FUNCTION>POWER</FUNCTION>
120			<FUNCTION>PRINT</FUNCTION>
121			<FUNCTION>REPLACE</FUNCTION>
122			<FUNCTION>RESTORE</FUNCTION>
123			<FUNCTION>SETVER</FUNCTION>
124			<FUNCTION>SHARE</FUNCTION>
125			<FUNCTION>SORT</FUNCTION>
126			<FUNCTION>SUBST</FUNCTION>
127			<FUNCTION>SYS</FUNCTION>
128			<FUNCTION>TREE</FUNCTION>
129			<FUNCTION>UNDELETE</FUNCTION>
130			<FUNCTION>UNFORMAT</FUNCTION>
131			<FUNCTION>VSAFE</FUNCTION>
132			<FUNCTION>XCOPY</FUNCTION>
133		</KEYWORDS>
134	</RULES>
135</MODE>