PageRenderTime 120ms CodeModel.GetById 116ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

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