PageRenderTime 104ms CodeModel.GetById 48ms app.highlight 2ms RepoModel.GetById 24ms app.codeStats 1ms

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

#
XML | 86 lines | 63 code | 15 blank | 8 comment | 0 complexity | 9d9f9cd564b371efc8d86def3bad897e 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
41		<KEYWORDS>
42			<KEYWORD1>#set</KEYWORD1>
43			<KEYWORD1>#foreach</KEYWORD1>
44			<KEYWORD1>#end</KEYWORD1>
45			<KEYWORD1>#if</KEYWORD1>
46			<KEYWORD1>#else</KEYWORD1>
47			<KEYWORD1>#elseif</KEYWORD1>
48			<KEYWORD1>#parse</KEYWORD1>
49			<KEYWORD1>#macro</KEYWORD1>
50			<KEYWORD1>#stop</KEYWORD1>
51			<KEYWORD1>#include</KEYWORD1>
52		</KEYWORDS>
53
54		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
55
56		<!-- markup tags -->
57		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
58			<BEGIN>&lt;</BEGIN>
59			<END>&gt;</END>
60		</SPAN>
61
62		<!-- SGML entities -->
63		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
64			<BEGIN>&amp;</BEGIN>
65			<END>;</END>
66		</SPAN>
67	</RULES>
68
69	<RULES SET="TAGS" DEFAULT="MARKUP">
70		<!-- whitespace: (space and tab) -->
71		<WHITESPACE> </WHITESPACE>
72		<WHITESPACE>	</WHITESPACE>
73
74		<SPAN TYPE="LITERAL1">
75			<BEGIN>"</BEGIN>
76			<END>"</END>
77		</SPAN>
78
79		<SPAN TYPE="LITERAL1">
80			<BEGIN>'</BEGIN>
81			<END>'</END>
82		</SPAN>
83
84		<SEQ TYPE="OPERATOR">=</SEQ>
85	</RULES>
86</MODE>