PageRenderTime 79ms CodeModel.GetById 75ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
XML | 184 lines | 143 code | 24 blank | 17 comment | 0 complexity | b97ddb621ddd7d270874680feb3015c5 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="commentStart" VALUE="&lt;%--" />
  8		<PROPERTY NAME="commentEnd" VALUE="--%&gt;" />
  9	</PROPS>
 10	<RULES IGNORE_CASE="TRUE">
 11		<!-- JSP comment -->
 12		<SPAN TYPE="COMMENT2">
 13			<BEGIN>&lt;%--</BEGIN>
 14			<END>--%&gt;</END>
 15		</SPAN>
 16
 17		<!-- JSP directive -->
 18		<SPAN TYPE="KEYWORD1" DELEGATE="DIRECTIVES">
 19			<BEGIN>&lt;%@</BEGIN>
 20			<END>%&gt;</END>
 21		</SPAN>
 22
 23		<!-- JSP scriptlet expression -->
 24		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
 25			<BEGIN>&lt;%=</BEGIN>
 26			<END>%&gt;</END>
 27		</SPAN>
 28		
 29		<!-- JSP scriptlet code block -->
 30		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
 31			<BEGIN>&lt;%!</BEGIN>
 32			<END>%&gt;</END>
 33		</SPAN>
 34		
 35		<!-- JSP scriptlet -->
 36		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
 37			<BEGIN>&lt;%</BEGIN>
 38			<END>%&gt;</END>
 39		</SPAN>
 40
 41		<!-- SGML comment -->
 42		<SPAN TYPE="COMMENT1" DELEGATE="COMMENT">
 43			<BEGIN>&lt;!--</BEGIN>
 44			<END>--&gt;</END>
 45		</SPAN>
 46
 47		<!-- JavaScript -->
 48		<SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
 49			<BEGIN>&lt;SCRIPT</BEGIN>
 50			<END>&lt;/SCRIPT&gt;</END>
 51		</SPAN>
 52
 53		<!-- stylesheet -->
 54		<SPAN TYPE="MARKUP" DELEGATE="html::CSS">
 55			<BEGIN>&lt;STYLE</BEGIN>
 56			<END>&lt;/STYLE&gt;</END>
 57		</SPAN>
 58
 59		<!-- DTD instructions -->
 60		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
 61			<BEGIN>&lt;!</BEGIN>
 62			<END>&gt;</END>
 63		</SPAN>
 64
 65		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
 66			<BEGIN>&lt;</BEGIN>
 67			<END>&gt;</END>
 68		</SPAN>
 69
 70		<!-- SGML entities -->
 71		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
 72			<BEGIN>&amp;</BEGIN>
 73			<END>;</END>
 74		</SPAN>
 75	</RULES>
 76	<RULES SET="COMMENT" DEFAULT="COMMENT1" IGNORE_CASE="TRUE">
 77		<!-- JSP comment -->
 78		<SPAN TYPE="COMMENT2">
 79			<BEGIN>&lt;%--</BEGIN>
 80			<END>--%&gt;</END>
 81		</SPAN>
 82
 83		<!-- JSP scriptlet expression -->
 84		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
 85			<BEGIN>&lt;%=</BEGIN>
 86			<END>%&gt;</END>
 87		</SPAN>
 88		
 89		<!-- JSP scriptlet -->
 90		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
 91			<BEGIN>&lt;%</BEGIN>
 92			<END>%&gt;</END>
 93		</SPAN>
 94    </RULES>
 95	<RULES SET="DIRECTIVES" DEFAULT="MARKUP">
 96		<!-- JSP scriptlet expression -->
 97		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
 98			<BEGIN>&lt;%=</BEGIN>
 99			<END>%&gt;</END>
100		</SPAN>
101
102		<SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">
103			<BEGIN>"</BEGIN>
104			<END>"</END>
105		</SPAN>
106
107		<SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">
108			<BEGIN>'</BEGIN>
109			<END>'</END>
110		</SPAN>
111
112		<SEQ TYPE="MARKUP">/</SEQ>
113		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
114		<SEQ TYPE="OPERATOR">:</SEQ>
115
116		<KEYWORDS>
117			<KEYWORD1>taglib</KEYWORD1>
118			<KEYWORD1>include</KEYWORD1>
119			<KEYWORD1>page</KEYWORD1>
120			<KEYWORD1>tag</KEYWORD1>
121			<KEYWORD1>tagAttribute</KEYWORD1>
122			<KEYWORD1>tagVariable</KEYWORD1>
123
124			<KEYWORD2>language</KEYWORD2>
125			<KEYWORD2>session</KEYWORD2>
126			<KEYWORD2>contentType</KEYWORD2>
127			<KEYWORD2>charset</KEYWORD2>
128			<KEYWORD2>import</KEYWORD2>
129			<KEYWORD2>buffer</KEYWORD2>
130			<KEYWORD2>autoflush</KEYWORD2>
131			<KEYWORD2>isThreadSafe</KEYWORD2>
132			<KEYWORD2>info</KEYWORD2>
133			<KEYWORD2>errorPage</KEYWORD2>
134			<KEYWORD2>isErrorpage</KEYWORD2>
135			<KEYWORD2>extends</KEYWORD2>
136			<KEYWORD2>file</KEYWORD2>
137			<KEYWORD2>uri</KEYWORD2>
138			<KEYWORD2>prefix</KEYWORD2>
139			<KEYWORD2>method</KEYWORD2>
140			<KEYWORD2>name</KEYWORD2>
141			<KEYWORD2>default</KEYWORD2>
142			<KEYWORD2>required</KEYWORD2>
143			<KEYWORD2>rtexprvalue</KEYWORD2>
144			<KEYWORD2>id</KEYWORD2>
145			<KEYWORD2>type</KEYWORD2>
146			<KEYWORD2>scope</KEYWORD2>
147		</KEYWORDS>
148	</RULES>
149
150	<RULES SET="TAGS" DEFAULT="MARKUP">
151		<!-- JSP comment -->
152		<SPAN TYPE="COMMENT2">
153			<BEGIN>&lt;%--</BEGIN>
154			<END>--%&gt;</END>
155		</SPAN>
156
157		<!-- JSP scriptlet expression -->
158		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
159			<BEGIN>&lt;%=</BEGIN>
160			<END>%&gt;</END>
161		</SPAN>
162
163		<SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">
164			<BEGIN>"</BEGIN>
165			<END>"</END>
166		</SPAN>
167
168		<SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">
169			<BEGIN>'</BEGIN>
170			<END>'</END>
171		</SPAN>
172
173		<SEQ TYPE="MARKUP">/</SEQ>
174		<MARK_FOLLOWING TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">:</MARK_FOLLOWING>
175		<SEQ TYPE="OPERATOR">:</SEQ>
176	</RULES>
177	<RULES SET="ATTRVALUE" DEFAULT="LITERAL1">
178		<!-- JSP scriptlet expression -->
179		<SPAN TYPE="KEYWORD1" DELEGATE="java::MAIN">
180			<BEGIN>&lt;%=</BEGIN>
181			<END>%&gt;</END>
182		</SPAN>
183	</RULES>
184</MODE>