PageRenderTime 95ms CodeModel.GetById 81ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/jEdit/tags/jedit-4-0-pre5/modes/xsl.xml

#
XML | 163 lines | 115 code | 30 blank | 18 comment | 0 complexity | 42ab34770fd53275e74e73c161aa1368 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		<PROPERTY NAME="noWordSep" VALUE="-" />
 10		<PROPERTY NAME="wordBreakChars" VALUE="@:|.[]{},+=&lt;&gt;/?^&amp;*" />
 11	</PROPS>
 12	<RULES IGNORE_CASE="TRUE">
 13		<!-- WHITE SPACE ( SPACE, TAB ) -->
 14		<WHITESPACE> </WHITESPACE>
 15		<WHITESPACE>	</WHITESPACE>
 16		
 17		<!-- JavaScript -->
 18		<SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
 19			<BEGIN>&lt;xsl:script</BEGIN>
 20			<END>&lt;/xsl:script&gt;</END>
 21		</SPAN>
 22		
 23		<!-- JavaScript -->
 24		<SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
 25			<BEGIN>&lt;xsl:eval&gt;</BEGIN>
 26			<END>&lt;/xsl:eval&gt;</END>
 27		</SPAN>
 28
 29		<SPAN TYPE="COMMENT1">
 30			<BEGIN>&lt;!--</BEGIN>
 31			<END>--&gt;</END>
 32		</SPAN>
 33		
 34		<SPAN TYPE="COMMENT2">
 35			<BEGIN>&lt;xsl:comment&gt;</BEGIN>
 36			<END>&lt;/xsl:comment&gt;</END>
 37		</SPAN>
 38
 39		<!-- DTD instructions -->
 40		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
 41			<BEGIN>&lt;!</BEGIN>
 42			<END>&gt;</END>
 43		</SPAN>
 44
 45		<!-- PI directives -->
 46		<SPAN TYPE="KEYWORD3">
 47			<BEGIN>&lt;?</BEGIN>
 48			<END>?&gt;</END>
 49		</SPAN>
 50		
 51		<!-- XSL TAGS -->
 52		<SPAN TYPE="KEYWORD2" DELEGATE="XSLTAGS">
 53			<BEGIN>&lt;xsl</BEGIN>
 54			<END>&gt;</END>
 55		</SPAN>
 56		
 57		<!-- XSL TAGS -->
 58		<SPAN TYPE="KEYWORD2" DELEGATE="XSLTAGS">
 59			<BEGIN>&lt;/xsl</BEGIN>
 60			<END>&gt;</END>
 61		</SPAN>
 62
 63		<!-- JavaScript -->
 64		<SPAN TYPE="LABEL" DELEGATE="javascript::MAIN">
 65			<BEGIN>&lt;SCRIPT&gt;</BEGIN>
 66			<END>&lt;/SCRIPT&gt;</END>
 67		</SPAN>
 68
 69		<!-- stylesheet -->
 70		<SPAN TYPE="LABEL" DELEGATE="css::MAIN">
 71			<BEGIN>&lt;STYLE&gt;</BEGIN>
 72			<END>&lt;/STYLE&gt;</END>
 73		</SPAN>
 74
 75		<!-- HTML TAGS -->
 76		<SPAN TYPE="MARKUP" DELEGATE="HTMLTAGS">
 77			<BEGIN>&lt;</BEGIN>
 78			<END>&gt;</END>
 79		</SPAN>
 80
 81		<!-- ENTITY REFERENCES -->
 82		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
 83			<BEGIN>&amp;</BEGIN>
 84			<END>;</END>
 85		</SPAN>
 86		
 87	</RULES>
 88	
 89	<!-- HTML TAGS -->
 90	<RULES SET="HTMLTAGS" DEFAULT="MARKUP">
 91		<WHITESPACE> </WHITESPACE>
 92		<WHITESPACE>	</WHITESPACE>
 93		
 94		<SPAN TYPE="LITERAL1">
 95			<BEGIN>"</BEGIN>
 96			<END>"</END>
 97		</SPAN>
 98		
 99		<SPAN TYPE="LITERAL1">
100			<BEGIN>'</BEGIN>
101			<END>'</END>
102		</SPAN>
103		
104		<SEQ TYPE="NULL">=</SEQ>
105		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
106		<SEQ TYPE="OPERATOR">:</SEQ>
107	</RULES>
108	
109	<!-- XSL TAGS -->
110	<RULES SET="XSLTAGS" DEFAULT="KEYWORD2">
111		<WHITESPACE> </WHITESPACE>
112		<WHITESPACE>	</WHITESPACE>
113		
114		<SPAN TYPE="LITERAL1" DELEGATE="XPATH">
115			<BEGIN>"</BEGIN>
116			<END>"</END>
117		</SPAN>
118		
119		<SPAN TYPE="LITERAL1" DELEGATE="XPATH">
120			<BEGIN>'</BEGIN>
121			<END>'</END>
122		</SPAN>
123		
124		<SEQ TYPE="NULL">=</SEQ>
125		<SEQ TYPE="OPERATOR">:</SEQ>
126	</RULES>
127
128	<RULES SET="XPATH" DEFAULT="LITERAL1">
129		<WHITESPACE> </WHITESPACE>
130		<WHITESPACE>	</WHITESPACE>
131
132		<!-- entity refs -->
133		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
134			<BEGIN>&amp;</BEGIN>
135			<END>;</END>
136		</SPAN>
137
138		<SEQ TYPE="OPERATOR">=</SEQ>
139		<SEQ TYPE="OPERATOR">!</SEQ>
140		<SEQ TYPE="OPERATOR">+</SEQ>
141		<SEQ TYPE="OPERATOR">|</SEQ>
142		<SEQ TYPE="OPERATOR">[</SEQ>
143		<SEQ TYPE="OPERATOR">]</SEQ>
144		<SEQ TYPE="OPERATOR">.</SEQ>
145		<SEQ TYPE="OPERATOR">/</SEQ>
146		<SEQ TYPE="OPERATOR">{</SEQ>
147		<SEQ TYPE="OPERATOR">}</SEQ>
148		<SEQ TYPE="OPERATOR">@</SEQ>
149		<SEQ TYPE="OPERATOR">*</SEQ>
150
151		<!-- axis specifiers (needs '-' as noWordSep) -->
152		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="FALSE">::</MARK_PREVIOUS>
153		<!-- functions -->
154		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
155		<!-- variables -->
156		<MARK_FOLLOWING TYPE="LITERAL2">$</MARK_FOLLOWING>
157
158		<!-- after axis specifyer, so it doesn't interfere -->
159		<SEQ TYPE="OPERATOR">:</SEQ>
160
161	</RULES>
162
163</MODE>