fix some db docs
[factor/jcg.git] / basis / xmode / modes / rhtml.xml
blob76e4f9173b3417f75e54dc24c8184ee34e2afbc6
1 <?xml version="1.0"?>\r
2 \r
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">\r
4 \r
5 <!-- rhtml (ruby+html) mode -->\r
6 \r
7 <MODE>\r
8         <PROPS>\r
9                 <PROPERTY NAME="commentStart" VALUE="&lt;!--" />\r
10                 <PROPERTY NAME="commentEnd" VALUE="--&gt;" />\r
11                 <PROPERTY NAME="commentStart" VALUE="&lt;%#" />\r
12                 <PROPERTY NAME="commentEnd" VALUE="%&gt;" />\r
13         </PROPS>\r
14         <RULES IGNORE_CASE="TRUE">\r
15                 \r
16                 <!-- eRuby comment -->\r
17                 <SPAN TYPE="COMMENT1">\r
18                         <BEGIN>&lt;%#</BEGIN>\r
19                         <END>%&gt;</END>\r
20                 </SPAN>\r
22                 <!-- eRuby assignment -->\r
23                 <SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">\r
24                         <BEGIN>&lt;%=</BEGIN>\r
25                         <END>%&gt;</END>\r
26                 </SPAN>\r
28                 <!-- eRuby statement -->\r
29                 <SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">\r
30                         <BEGIN>&lt;%</BEGIN>\r
31                         <END>%&gt;</END>\r
32                 </SPAN>\r
34                 <!-- SGML comment -->\r
35                 <SPAN TYPE="COMMENT1">\r
36                         <BEGIN>&lt;!--</BEGIN>\r
37                         <END>--&gt;</END>\r
38                 </SPAN>\r
40                 <!-- JavaScript -->\r
41                 <SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">\r
42                         <BEGIN>&lt;SCRIPT</BEGIN>\r
43                         <END>&lt;/SCRIPT&gt;</END>\r
44                 </SPAN>\r
46                 <!-- stylesheet -->\r
47                 <SPAN TYPE="MARKUP" DELEGATE="html::CSS">\r
48                         <BEGIN>&lt;STYLE</BEGIN>\r
49                         <END>&lt;/STYLE&gt;</END>\r
50                 </SPAN>\r
52                 <!-- DTD instructions -->\r
53                 <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">\r
54                         <BEGIN>&lt;!</BEGIN>\r
55                         <END>&gt;</END>\r
56                 </SPAN>\r
58                 <!-- markup tags -->\r
59                 <SPAN TYPE="MARKUP" DELEGATE="TAGS">\r
60                         <BEGIN>&lt;</BEGIN>\r
61                         <END>&gt;</END>\r
62                 </SPAN>\r
64                 <!-- SGML entities -->\r
65                 <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">\r
66                         <BEGIN>&amp;</BEGIN>\r
67                         <END>;</END>\r
68                 </SPAN>\r
69         </RULES>\r
71         <RULES SET="TAGS" DEFAULT="MARKUP">\r
73                 <SPAN TYPE="COMMENT1">\r
74                         <BEGIN>&lt;!--</BEGIN>\r
75                         <END>--&gt;</END>\r
76                 </SPAN>\r
78                 <SPAN TYPE="COMMENT1">\r
79                         <BEGIN>&lt;%#</BEGIN>\r
80                         <END>%&gt;</END>\r
81                 </SPAN>\r
83                 <SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">\r
84                         <BEGIN>"</BEGIN>\r
85                         <END>"</END>\r
86                 </SPAN>\r
88                 <SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">\r
89                         <BEGIN>'</BEGIN>\r
90                         <END>'</END>\r
91                 </SPAN>\r
93                 <SEQ TYPE="OPERATOR">=</SEQ>\r
94         </RULES>\r
96         <RULES SET="TAGS_LITERAL" DEFAULT="LITERAL1">\r
98                 <SPAN TYPE="MARKUP">\r
99                         <BEGIN>&lt;%</BEGIN>\r
100                         <END>%&gt;</END>\r
101                 </SPAN>\r
103                 <SPAN TYPE="MARKUP">\r
104                         <BEGIN>&lt;%=</BEGIN>\r
105                         <END>%&gt;</END>\r
106                 </SPAN>\r
107         </RULES>\r
108 </MODE>\r