PageRenderTime 185ms CodeModel.GetById 176ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/modes/jsp.xml

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