PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/shtml.xml

#
XML | 117 lines | 84 code | 17 blank | 16 comment | 0 complexity | 776ecc2e3403681aabbf05245b5b15a4 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		<!-- SSI -->
 12		<!-- SSI directives should ALWAYS end like this, with a space
 13			before the tag end, so let's make it colorize poorly otherwise -->
 14		<!-- ... or really? see bug report 964860 -->
 15		<SPAN TYPE="KEYWORD3" DELEGATE="SSI">
 16			<BEGIN>&lt;!--#</BEGIN>
 17			<END>--&gt;</END>
 18		</SPAN>
 19
 20		<!-- SGML comment -->
 21		<SPAN TYPE="COMMENT1">
 22			<BEGIN>&lt;!--</BEGIN>
 23			<END>--&gt;</END>
 24		</SPAN>
 25
 26		<!-- JavaScript -->
 27		<SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
 28			<BEGIN>&lt;SCRIPT</BEGIN>
 29			<END>&lt;/SCRIPT&gt;</END>
 30		</SPAN>
 31
 32		<!-- stylesheet -->
 33		<SPAN TYPE="MARKUP" DELEGATE="html::CSS">
 34			<BEGIN>&lt;STYLE</BEGIN>
 35			<END>&lt;/STYLE&gt;</END>
 36		</SPAN>
 37
 38		<!-- DTD instructions -->
 39		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
 40			<BEGIN>&lt;!</BEGIN>
 41			<END>&gt;</END>
 42		</SPAN>
 43
 44		<!-- markup tags -->
 45		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
 46			<BEGIN>&lt;</BEGIN>
 47			<END>&gt;</END>
 48		</SPAN>
 49
 50		<!-- SGML entities -->
 51		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
 52			<BEGIN>&amp;</BEGIN>
 53			<END>;</END>
 54		</SPAN>
 55	</RULES>
 56
 57	<RULES SET="TAGS" DEFAULT="MARKUP">
 58		<SPAN TYPE="LITERAL1">
 59			<BEGIN>"</BEGIN>
 60			<END>"</END>
 61		</SPAN>
 62
 63		<SPAN TYPE="LITERAL1">
 64			<BEGIN>'</BEGIN>
 65			<END>'</END>
 66		</SPAN>
 67
 68		<SEQ TYPE="OPERATOR">=</SEQ>
 69	</RULES>
 70
 71	<RULES SET="SSI" DEFAULT="KEYWORD3">
 72		<SPAN TYPE="LITERAL1" EXCLUDE_MATCH="TRUE" DELEGATE="SSI-EXPRESSION">
 73			<BEGIN>"</BEGIN>
 74			<END>"</END>
 75		</SPAN>
 76
 77		<!-- MD: i don't think this is valid
 78		<SPAN TYPE="LITERAL1" EXCLUDE_MATCH="TRUE" DELEGATE="SSI-EXPRESSION">
 79			<BEGIN>'</BEGIN>
 80			<END>'</END>
 81		</SPAN>
 82		-->
 83
 84		<SEQ TYPE="OPERATOR">=</SEQ>
 85
 86		<KEYWORDS>
 87			<KEYWORD1>config</KEYWORD1>
 88			<KEYWORD1>echo</KEYWORD1>
 89			<KEYWORD1>exec</KEYWORD1>
 90			<KEYWORD1>flastmod</KEYWORD1>
 91			<KEYWORD1>fsize</KEYWORD1>
 92			<KEYWORD1>include</KEYWORD1>
 93
 94			<KEYWORD2>cgi</KEYWORD2>
 95			<KEYWORD2>errmsg</KEYWORD2>
 96			<KEYWORD2>file</KEYWORD2>
 97			<KEYWORD2>sizefmt</KEYWORD2>
 98			<KEYWORD2>timefmt</KEYWORD2>
 99			<KEYWORD2>var</KEYWORD2>
100			<KEYWORD2>cmd</KEYWORD2>
101		</KEYWORDS>
102	</RULES>
103
104	<RULES SET="SSI-EXPRESSION" DEFAULT="LITERAL1" ESCAPE="\">
105
106		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
107
108		<SEQ TYPE="OPERATOR">=</SEQ>
109		<SEQ TYPE="OPERATOR">!=</SEQ>
110		<SEQ TYPE="OPERATOR">&lt;</SEQ>
111		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
112		<SEQ TYPE="OPERATOR">&gt;</SEQ>
113		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
114		<SEQ TYPE="OPERATOR">&amp;&amp;</SEQ>
115		<SEQ TYPE="OPERATOR">||</SEQ>
116	</RULES>
117</MODE>