PageRenderTime 87ms CodeModel.GetById 82ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 180 lines | 133 code | 28 blank | 19 comment | 0 complexity | 4573e5d439e2c0c6f7f0cdb3e0619fc2 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>
 11		<!-- whitespace: (space and tab) -->
 12		<WHITESPACE> </WHITESPACE>
 13		<WHITESPACE>	</WHITESPACE>
 14
 15		<!-- SGML comment -->
 16		<SPAN TYPE="COMMENT1">
 17			<BEGIN>&lt;!--</BEGIN>
 18			<END>--&gt;</END>
 19		</SPAN>
 20
 21		<!-- DTD Entity declarations -->
 22		<SPAN TYPE="KEYWORD2" DELEGATE="ENTITY-TAGS">
 23			<BEGIN>&lt;!ENTITY</BEGIN>
 24			<END>&gt;</END>
 25		</SPAN>
 26
 27		<!-- CDATA sections -->
 28		<SPAN TYPE="KEYWORD2" DELEGATE="CDATA">
 29			<BEGIN>&lt;![CDATA[</BEGIN>
 30			<END>]]&gt;</END>
 31		</SPAN>
 32
 33		<!-- DTD instructions -->
 34		<SPAN TYPE="KEYWORD2" DELEGATE="DTD-TAGS">
 35			<BEGIN>&lt;!</BEGIN>
 36			<END>&gt;</END>
 37		</SPAN>
 38
 39		<!-- PI directives -->
 40		<SPAN TYPE="KEYWORD3">
 41			<BEGIN>&lt;?</BEGIN>
 42			<END>&gt;</END>
 43		</SPAN>
 44
 45		<!-- markup tags -->
 46		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
 47			<BEGIN>&lt;</BEGIN>
 48			<END>&gt;</END>
 49		</SPAN>
 50
 51		<!-- SGML entities -->
 52		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
 53			<BEGIN>&amp;</BEGIN>
 54			<END>;</END>
 55		</SPAN>
 56	</RULES>
 57	<RULES SET="TAGS" DEFAULT="MARKUP">
 58		<!-- whitespace: (space and tab) -->
 59		<WHITESPACE> </WHITESPACE>
 60		<WHITESPACE>	</WHITESPACE>
 61
 62		<!-- SGML comment -->
 63		<SPAN TYPE="COMMENT1">
 64			<BEGIN>&lt;!--</BEGIN>
 65			<END>--&gt;</END>
 66		</SPAN>
 67
 68		<SPAN TYPE="LITERAL1">
 69			<BEGIN>"</BEGIN>
 70			<END>"</END>
 71		</SPAN>
 72
 73		<SPAN TYPE="LITERAL1">
 74			<BEGIN>'</BEGIN>
 75			<END>'</END>
 76		</SPAN>
 77
 78		<SEQ TYPE="MARKUP">/</SEQ>
 79		<SEQ TYPE="NULL">=</SEQ>
 80		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
 81		<SEQ TYPE="OPERATOR">:</SEQ>
 82	</RULES>
 83	<RULES SET="DTD-TAGS" DEFAULT="KEYWORD2">
 84		<!-- whitespace: (space and tab) -->
 85		<WHITESPACE> </WHITESPACE>
 86		<WHITESPACE>	</WHITESPACE>
 87
 88		<!-- SGML comment -->
 89		<SPAN TYPE="COMMENT1">
 90			<BEGIN>&lt;!--</BEGIN>
 91			<END>--&gt;</END>
 92		</SPAN>
 93
 94		<!-- SGML comment -->
 95		<SPAN TYPE="COMMENT1">
 96			<BEGIN>--</BEGIN>
 97			<END>--</END>
 98		</SPAN>
 99
100		<!-- Parameter entities -->
101		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
102			<BEGIN>%</BEGIN>
103			<END>;</END>
104		</SPAN>
105
106		<SPAN TYPE="LITERAL1">
107			<BEGIN>"</BEGIN>
108			<END>"</END>
109		</SPAN>
110
111		<SPAN TYPE="LITERAL1">
112			<BEGIN>'</BEGIN>
113			<END>'</END>
114		</SPAN>
115
116		<!-- This appears in some SGML documents -->
117		<SPAN TYPE="KEYWORD2" DELEGATE="MAIN">
118			<BEGIN>[</BEGIN>
119			<END>]</END>
120		</SPAN>
121
122		<SEQ TYPE="NULL">=</SEQ>
123		<SEQ TYPE="OPERATOR">(</SEQ>
124		<SEQ TYPE="OPERATOR">)</SEQ>
125		<SEQ TYPE="OPERATOR">|</SEQ>
126		<SEQ TYPE="OPERATOR">?</SEQ>
127		<SEQ TYPE="OPERATOR">*</SEQ>
128		<SEQ TYPE="OPERATOR">+</SEQ>
129		<SEQ TYPE="OPERATOR">,</SEQ>
130
131		<KEYWORDS>
132			<KEYWORD1>CDATA</KEYWORD1>
133			<KEYWORD1>EMPTY</KEYWORD1>
134			<KEYWORD1>INCLUDE</KEYWORD1>
135			<KEYWORD1>IGNORE</KEYWORD1>
136			<KEYWORD1>NDATA</KEYWORD1>
137			<KEYWORD1>#IMPLIED</KEYWORD1>
138			<KEYWORD1>#PCDATA</KEYWORD1>
139			<KEYWORD1>#REQUIRED</KEYWORD1>
140		</KEYWORDS>
141	</RULES>
142	<RULES SET="ENTITY-TAGS" DEFAULT="KEYWORD2">
143		<!-- whitespace: (space and tab) -->
144		<WHITESPACE> </WHITESPACE>
145		<WHITESPACE>	</WHITESPACE>
146
147		<!-- SGML comment -->
148		<SPAN TYPE="COMMENT1">
149			<BEGIN>&lt;!--</BEGIN>
150			<END>--&gt;</END>
151		</SPAN>
152
153		<!-- SGML comment -->
154		<SPAN TYPE="COMMENT1">
155			<BEGIN>--</BEGIN>
156			<END>--</END>
157		</SPAN>
158
159		<SPAN TYPE="LITERAL1">
160			<BEGIN>"</BEGIN>
161			<END>"</END>
162		</SPAN>
163
164		<SPAN TYPE="LITERAL1">
165			<BEGIN>'</BEGIN>
166			<END>'</END>
167		</SPAN>
168
169		<SEQ TYPE="OPERATOR">=</SEQ>
170
171		<SEQ TYPE="OPERATOR">%</SEQ>
172
173		<KEYWORDS>
174			<KEYWORD1>SYSTEM</KEYWORD1>
175		</KEYWORDS>
176	</RULES>
177	<RULES SET="CDATA" DEFAULT="COMMENT2">
178		<!-- no rules -->
179	</RULES>
180</MODE>