PageRenderTime 56ms CodeModel.GetById 51ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/tpl.xml

#
XML | 89 lines | 62 code | 17 blank | 10 comment | 0 complexity | 65a8b1aa9acb61c199404d3dc8dbe9c8 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 2
 3<!DOCTYPE MODE SYSTEM "xmode.dtd">
 4
 5<!--
 6	Tpl mode by Brant Gurganus <brantgurganus2001@cherokeescouting.org>
 7    Adapted from ColdFusion
 8-->
 9
10<MODE>
11	<PROPS>
12		<PROPERTY NAME="commentStart" VALUE="&lt;!--" />
13		<PROPERTY NAME="commentEnd" VALUE="--&gt;" />
14	</PROPS>
15    <RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
16		
17		<!-- SGML comment -->
18		<SPAN TYPE="COMMENT3">
19			<BEGIN>&lt;!--</BEGIN>
20			<END>--&gt;</END>
21		</SPAN>
22		
23		<!-- JavaScript -->
24		<SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
25			<BEGIN>&lt;SCRIPT</BEGIN>
26			<END>&lt;/SCRIPT&gt;</END>
27		</SPAN>
28
29		<!-- stylesheet -->
30		<SPAN TYPE="MARKUP" DELEGATE="html::CSS">
31			<BEGIN>&lt;STYLE</BEGIN>
32			<END>&lt;/STYLE&gt;</END>
33		</SPAN>
34
35		<!-- markup tags -->
36		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
37			<BEGIN>&lt;</BEGIN>
38			<END>&gt;</END>
39		</SPAN>
40
41		<!-- SGML entities -->
42		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
43			<BEGIN>&amp;</BEGIN>
44			<END>;</END>
45		</SPAN>
46        
47        <!-- TPL markup start tags -->
48		<SPAN TYPE="KEYWORD3" DELEGATE="TPL">
49			<BEGIN>{</BEGIN>
50			<END>}</END>
51		</SPAN>
52	</RULES>
53    
54    <RULES SET="TPL" DEFAULT="KEYWORD1" IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
55	
56		<SPAN TYPE="LABEL">
57			<BEGIN>"</BEGIN>
58			<END>"</END>
59		</SPAN>
60		<SPAN TYPE="LABEL">
61			<BEGIN>'</BEGIN>
62			<END>'</END>
63		</SPAN>
64		
65		<SEQ TYPE="OPERATOR">*</SEQ>
66
67		
68		<KEYWORDS>
69			<KEYWORD1>include</KEYWORD1>
70            <OPERATOR>=</OPERATOR>
71            <KEYWORD2>START</KEYWORD2>
72            <KEYWORD2>END</KEYWORD2>
73		</KEYWORDS>
74	</RULES>
75    
76    <RULES SET="TAGS" DEFAULT="MARKUP" IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
77		<SPAN TYPE="LITERAL1">
78			<BEGIN>"</BEGIN>
79			<END>"</END>
80		</SPAN>
81		<SPAN TYPE="LITERAL1">
82			<BEGIN>'</BEGIN>
83			<END>'</END>
84		</SPAN>
85
86		<SEQ TYPE="OPERATOR">=</SEQ>
87
88	</RULES>
89</MODE>