PageRenderTime 58ms CodeModel.GetById 51ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

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

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