PageRenderTime 34ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/modes/relax-ng-compact.xml

#
XML | 74 lines | 61 code | 7 blank | 6 comment | 0 complexity | d1963cacae6e5462409f092cc04e1d07 MD5 | raw file
 1<?xml version='1.0'?>
 2<!DOCTYPE MODE SYSTEM "xmode.dtd">
 3
 4<!-- RELAX NG Compact Syntax mode, by Randy Hudson. -->
 5<!-- mode catalog entry:
 6     
 7  <MODE NAME="relax-ng-compact" FILE="relax-ng-compact.xml"
 8      FILE_NAME_GLOB="*.rnc" /> 
 9  -->
10
11<MODE>
12    <PROPS>
13        <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
14        <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
15        <PROPERTY NAME="doubleBracketIndent" VALUE="false" />
16        <PROPERTY NAME="lineComment" VALUE="#" />
17        <PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
18    </PROPS>  
19    
20    <RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
21    
22        <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
23        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
24            <BEGIN>"</BEGIN>
25            <END>"</END>
26        </SPAN>
27        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
28            <BEGIN>'</BEGIN>
29            <END>'</END>
30        </SPAN>
31        <SPAN TYPE='LITERAL2'>
32            <BEGIN>"""</BEGIN>
33            <END>"""</END>
34        </SPAN>
35        <SPAN TYPE='LITERAL2'>
36            <BEGIN>'''</BEGIN>
37            <END>'''</END>
38        </SPAN>
39 
40        <SEQ TYPE="OPERATOR">+</SEQ>
41        <SEQ TYPE="OPERATOR">*</SEQ>
42        <SEQ TYPE="OPERATOR">?</SEQ>
43        <SEQ TYPE="OPERATOR">&amp;=</SEQ>
44        <SEQ TYPE="OPERATOR">&amp;</SEQ>
45        <SEQ TYPE="OPERATOR">|=</SEQ>
46        <SEQ TYPE="OPERATOR">|</SEQ>
47        <SEQ TYPE="OPERATOR">=</SEQ>
48        <SEQ TYPE="OPERATOR">-</SEQ>
49        
50        <MARK_FOLLOWING TYPE="NULL">\</MARK_FOLLOWING>
51        
52        <KEYWORDS>
53            <KEYWORD1>attribute</KEYWORD1>
54            <KEYWORD1>default</KEYWORD1>
55            <KEYWORD1>datatypes</KEYWORD1>
56            <KEYWORD1>div</KEYWORD1>
57            <KEYWORD1>element</KEYWORD1>
58            <KEYWORD1>empty</KEYWORD1>
59            <KEYWORD1>external</KEYWORD1>
60            <KEYWORD1>grammar</KEYWORD1>
61            <KEYWORD1>include</KEYWORD1>
62            <KEYWORD1>inherit</KEYWORD1>
63            <KEYWORD1>list</KEYWORD1>
64            <KEYWORD1>mixed</KEYWORD1>
65            <KEYWORD1>namespace</KEYWORD1>
66            <KEYWORD1>notAllowed</KEYWORD1>
67            <KEYWORD1>parent</KEYWORD1>
68            <KEYWORD1>start</KEYWORD1>
69            <KEYWORD2>string</KEYWORD2>
70            <KEYWORD1>text</KEYWORD1>
71            <KEYWORD2>token</KEYWORD2>
72        </KEYWORDS>
73    </RULES>
74</MODE>