PageRenderTime 127ms CodeModel.GetById 117ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

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

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