PageRenderTime 112ms CodeModel.GetById 90ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/xsl.xml

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