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

/jEdit/tags/jedit-4-0-pre5/modes/velocity.xml

#
XML | 85 lines | 63 code | 14 blank | 8 comment | 0 complexity | da43342bedc0fc0f34cc27fde1711da2 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="#*" />
 8		<PROPERTY NAME="commentEnd" VALUE="*#" />
 9		<PROPERTY NAME="lineComment" VALUE="##" />
10	</PROPS>
11	<RULES IGNORE_CASE="TRUE">
12		<!-- whitespace: (space and tab) -->
13		<WHITESPACE> </WHITESPACE>
14		<WHITESPACE>	</WHITESPACE>
15
16		<!-- SGML comment -->
17		<SPAN TYPE="COMMENT1">
18			<BEGIN>&lt;!--</BEGIN>
19			<END>--&gt;</END>
20		</SPAN>
21
22		<!-- JavaScript -->
23		<SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
24			<BEGIN>&lt;SCRIPT&gt;</BEGIN>
25			<END>&lt;/SCRIPT&gt;</END>
26		</SPAN>
27
28		<!-- stylesheet -->
29		<SPAN TYPE="MARKUP" DELEGATE="css::MAIN">
30			<BEGIN>&lt;STYLE&gt;</BEGIN>
31			<END>&lt;/STYLE&gt;</END>
32		</SPAN>
33
34		<!-- DTD instructions -->
35		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
36			<BEGIN>&lt;!</BEGIN>
37			<END>&gt;</END>
38		</SPAN>
39
40		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
41
42		<!-- markup tags -->
43		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
44			<BEGIN>&lt;</BEGIN>
45			<END>&gt;</END>
46		</SPAN>
47
48		<!-- SGML entities -->
49		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
50			<BEGIN>&amp;</BEGIN>
51			<END>;</END>
52		</SPAN>
53
54		<KEYWORDS>
55			<KEYWORD1>#set</KEYWORD1>
56			<KEYWORD1>#foreach</KEYWORD1>
57			<KEYWORD1>#end</KEYWORD1>
58			<KEYWORD1>#if</KEYWORD1>
59			<KEYWORD1>#else</KEYWORD1>
60			<KEYWORD1>#elseif</KEYWORD1>
61			<KEYWORD1>#parse</KEYWORD1>
62			<KEYWORD1>#macro</KEYWORD1>
63			<KEYWORD1>#stop</KEYWORD1>
64			<KEYWORD1>#include</KEYWORD1>
65		</KEYWORDS>
66	</RULES>
67
68	<RULES SET="TAGS" DEFAULT="MARKUP">
69		<!-- whitespace: (space and tab) -->
70		<WHITESPACE> </WHITESPACE>
71		<WHITESPACE>	</WHITESPACE>
72
73		<SPAN TYPE="LITERAL1">
74			<BEGIN>"</BEGIN>
75			<END>"</END>
76		</SPAN>
77
78		<SPAN TYPE="LITERAL1">
79			<BEGIN>'</BEGIN>
80			<END>'</END>
81		</SPAN>
82
83		<SEQ TYPE="OPERATOR">=</SEQ>
84	</RULES>
85</MODE>