PageRenderTime 90ms CodeModel.GetById 81ms app.highlight 3ms RepoModel.GetById 4ms app.codeStats 0ms

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

#
XML | 146 lines | 139 code | 5 blank | 2 comment | 0 complexity | d80b4011a8f6b8514934606124c55723 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="lineComment" VALUE="#" />
  8	</PROPS>
  9	<RULES ESCAPE="\" IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
 10		<!-- whitespace: (space and tab) -->
 11		<WHITESPACE> </WHITESPACE>
 12		<WHITESPACE>	</WHITESPACE>
 13
 14		<!-- Comments -->
 15		<EOL_SPAN TYPE="COMMENT2">#!</EOL_SPAN>
 16		<EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
 17
 18		<!-- Variables -->
 19		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
 20			<BEGIN>${</BEGIN>
 21			<END>}</END>
 22		</SPAN>
 23
 24		<MARK_FOLLOWING TYPE="KEYWORD2">$#</MARK_FOLLOWING>
 25		<MARK_FOLLOWING TYPE="KEYWORD2">$?</MARK_FOLLOWING>
 26		<MARK_FOLLOWING TYPE="KEYWORD2">$*</MARK_FOLLOWING>
 27		<MARK_FOLLOWING TYPE="KEYWORD2">$&lt;</MARK_FOLLOWING>
 28		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
 29
 30		<!-- weird stuff -->
 31		<SPAN TYPE="KEYWORD3" DELEGATE="EXEC">
 32			<BEGIN>$((</BEGIN>
 33			<END>))</END>
 34		</SPAN>
 35		<SPAN TYPE="KEYWORD3" DELEGATE="EXEC">
 36			<BEGIN>$(</BEGIN>
 37			<END>)</END>
 38		</SPAN>
 39		<SPAN TYPE="KEYWORD3" DELEGATE="EXEC">
 40			<BEGIN>$[</BEGIN>
 41			<END>]</END>
 42		</SPAN>
 43		<SPAN TYPE="KEYWORD3" DELEGATE="EXEC">
 44			<BEGIN>`</BEGIN>
 45			<END>`</END>
 46		</SPAN>
 47
 48		<!-- Literals -->
 49		<SPAN TYPE="LITERAL1" DELEGATE="LITERAL">
 50			<BEGIN>"</BEGIN>
 51			<END>"</END>
 52		</SPAN>
 53		<SPAN TYPE="LITERAL1">
 54			<BEGIN>'</BEGIN>
 55			<END>'</END>
 56		</SPAN>
 57
 58		<!-- Readins -->
 59		<SPAN TYPE="LITERAL1" DELEGATE="LITERAL">
 60			<BEGIN>&lt;&lt;EOF</BEGIN>
 61			<END>EOF</END>
 62		</SPAN>
 63
 64		<!-- Operators -->
 65		<SEQ TYPE="OPERATOR">|</SEQ>
 66		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 67		<SEQ TYPE="OPERATOR">!</SEQ>
 68		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 69		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 70
 71		<!-- %jobnumber -->
 72		<MARK_FOLLOWING TYPE="KEYWORD2">%</MARK_FOLLOWING>
 73
 74		<!-- some of these should be marked OPERATOR -->
 75		<SEQ TYPE="NULL">)</SEQ>
 76		<SEQ TYPE="NULL">(</SEQ>
 77		<SEQ TYPE="NULL">=</SEQ>
 78		<SEQ TYPE="NULL">!</SEQ>
 79		<SEQ TYPE="NULL">&gt;=</SEQ>
 80		<SEQ TYPE="NULL">&lt;=</SEQ>
 81		<SEQ TYPE="NULL">+</SEQ>
 82		<SEQ TYPE="NULL">-</SEQ>
 83		<SEQ TYPE="NULL">/</SEQ>
 84		<SEQ TYPE="NULL">*</SEQ>
 85		<SEQ TYPE="NULL">^</SEQ>
 86		<SEQ TYPE="NULL">~</SEQ>
 87		<SEQ TYPE="NULL">}</SEQ>
 88		<SEQ TYPE="NULL">{</SEQ>
 89		<!-- SEQ TYPE="NULL">.</SEQ -->
 90		<SEQ TYPE="NULL">,</SEQ>
 91		<SEQ TYPE="NULL">;</SEQ>
 92		<SEQ TYPE="NULL">]</SEQ>
 93		<SEQ TYPE="NULL">[</SEQ>
 94		<SEQ TYPE="NULL">?</SEQ>
 95		<SEQ TYPE="NULL">:</SEQ>
 96	</RULES>
 97
 98	<RULES SET="LITERAL" DEFAULT="LITERAL1" ESCAPE="\">
 99		<!-- whitespace: (space and tab) -->
100		<WHITESPACE> </WHITESPACE>
101		<WHITESPACE>	</WHITESPACE>
102
103		<!-- Variables -->
104		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
105			<BEGIN>${</BEGIN>
106			<END>}</END>
107		</SPAN>
108
109		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
110	</RULES>
111
112	<RULES SET="EXEC" DEFAULT="KEYWORD3" ESCAPE="\">
113		<!-- whitespace: (space and tab) -->
114		<WHITESPACE> </WHITESPACE>
115		<WHITESPACE>	</WHITESPACE>
116
117		<!-- Variables -->
118		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
119			<BEGIN>${</BEGIN>
120			<END>}</END>
121		</SPAN>
122
123		<SPAN TYPE="KEYWORD3">
124			<BEGIN>$((</BEGIN>
125			<END>))</END>
126		</SPAN>
127
128		<SPAN TYPE="KEYWORD3">
129			<BEGIN>$(</BEGIN>
130			<END>)</END>
131		</SPAN>
132
133		<SPAN TYPE="KEYWORD3">
134			<BEGIN>$[</BEGIN>
135			<END>]</END>
136		</SPAN>
137
138		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
139
140		<SEQ TYPE="OPERATOR">|</SEQ>
141		<SEQ TYPE="OPERATOR">&amp;</SEQ>
142		<SEQ TYPE="OPERATOR">!</SEQ>
143		<SEQ TYPE="OPERATOR">&gt;</SEQ>
144		<SEQ TYPE="OPERATOR">&lt;</SEQ>
145	</RULES>
146</MODE>