PageRenderTime 41ms CodeModel.GetById 36ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/modes/rhtml.xml

#
XML | 108 lines | 77 code | 21 blank | 10 comment | 0 complexity | 696fcebabd4c5f83fce37488208cd123 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- rhtml (ruby+html) mode -->
  6
  7<MODE>
  8	<PROPS>
  9		<PROPERTY NAME="commentStart" VALUE="&lt;!--" />
 10		<PROPERTY NAME="commentEnd" VALUE="--&gt;" />
 11		<PROPERTY NAME="commentStart" VALUE="&lt;%#" />
 12		<PROPERTY NAME="commentEnd" VALUE="%&gt;" />
 13	</PROPS>
 14	<RULES IGNORE_CASE="TRUE">
 15		
 16		<!-- eRuby comment -->
 17		<SPAN TYPE="COMMENT1">
 18			<BEGIN>&lt;%#</BEGIN>
 19			<END>%&gt;</END>
 20		</SPAN>
 21
 22		<!-- eRuby assignment -->
 23		<SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">
 24			<BEGIN>&lt;%=</BEGIN>
 25			<END>%&gt;</END>
 26		</SPAN>
 27
 28		<!-- eRuby statement -->
 29		<SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">
 30			<BEGIN>&lt;%</BEGIN>
 31			<END>%&gt;</END>
 32		</SPAN>
 33
 34		<!-- SGML comment -->
 35		<SPAN TYPE="COMMENT1">
 36			<BEGIN>&lt;!--</BEGIN>
 37			<END>--&gt;</END>
 38		</SPAN>
 39
 40		<!-- JavaScript -->
 41		<SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
 42			<BEGIN>&lt;SCRIPT</BEGIN>
 43			<END>&lt;/SCRIPT&gt;</END>
 44		</SPAN>
 45
 46		<!-- stylesheet -->
 47		<SPAN TYPE="MARKUP" DELEGATE="html::CSS">
 48			<BEGIN>&lt;STYLE</BEGIN>
 49			<END>&lt;/STYLE&gt;</END>
 50		</SPAN>
 51
 52		<!-- DTD instructions -->
 53		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
 54			<BEGIN>&lt;!</BEGIN>
 55			<END>&gt;</END>
 56		</SPAN>
 57
 58		<!-- markup tags -->
 59		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
 60			<BEGIN>&lt;</BEGIN>
 61			<END>&gt;</END>
 62		</SPAN>
 63
 64		<!-- SGML entities -->
 65		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
 66			<BEGIN>&amp;</BEGIN>
 67			<END>;</END>
 68		</SPAN>
 69	</RULES>
 70
 71	<RULES SET="TAGS" DEFAULT="MARKUP">
 72
 73		<SPAN TYPE="COMMENT1">
 74			<BEGIN>&lt;!--</BEGIN>
 75			<END>--&gt;</END>
 76		</SPAN>
 77
 78		<SPAN TYPE="COMMENT1">
 79			<BEGIN>&lt;%#</BEGIN>
 80			<END>%&gt;</END>
 81		</SPAN>
 82
 83		<SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
 84			<BEGIN>"</BEGIN>
 85			<END>"</END>
 86		</SPAN>
 87
 88		<SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
 89			<BEGIN>'</BEGIN>
 90			<END>'</END>
 91		</SPAN>
 92
 93		<SEQ TYPE="OPERATOR">=</SEQ>
 94	</RULES>
 95
 96	<RULES SET="TAGS_LITERAL" DEFAULT="LITERAL1">
 97
 98		<SPAN TYPE="MARKUP">
 99			<BEGIN>&lt;%</BEGIN>
100			<END>%&gt;</END>
101		</SPAN>
102
103		<SPAN TYPE="MARKUP">
104			<BEGIN>&lt;%=</BEGIN>
105			<END>%&gt;</END>
106		</SPAN>
107	</RULES>
108</MODE>