PageRenderTime 136ms CodeModel.GetById 131ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
XML | 98 lines | 84 code | 5 blank | 9 comment | 0 complexity | 9a4c082f1c25e372b865c05be0bac40a MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!DOCTYPE MODE SYSTEM "xmode.dtd">
 3
 4<!--
 5        This mode file describes the ANTLR syntax definition language.
 6        It is derived from and tested with the ANTLR syntax rules specified in
 7        antlr.g included with the ANTLR distribution.
 8        
 9        Portions of this file from java.xml.
10        
11        Author: Brant Gurganus <brantgurga@users.sourceforge.net>
12-->
13<MODE>
14        <PROPS>
15                <PROPERTY NAME="commentStart" VALUE="/*" />
16                <PROPERTY NAME="commentEnd" VALUE="*/" />
17                <PROPERTY NAME="lineComment" VALUE="//" />
18                <PROPERTY NAME="wordBreakChars" VALUE="" />
19        </PROPS>
20        <RULES>
21		<SPAN TYPE="COMMENT2" DELEGATE="java::JAVADOC">
22			<BEGIN>/**</BEGIN>
23			<END>*/</END>
24		</SPAN>
25                <SPAN TYPE="COMMENT1">
26                        <BEGIN>/*</BEGIN>
27                        <END>*/</END>
28                </SPAN>
29                <EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
30                <SPAN TYPE="LITERAL1">
31                        <BEGIN>"</BEGIN>
32                        <END>"</END>
33                </SPAN>
34                <SEQ TYPE="OPERATOR">|</SEQ>
35                <SEQ TYPE="OPERATOR">:</SEQ>
36                <KEYWORDS>
37                        <KEYWORD3>header</KEYWORD3>
38                        <KEYWORD3>options</KEYWORD3>
39                        <KEYWORD3>tokens</KEYWORD3>
40                        <KEYWORD1>abstract</KEYWORD1>
41			<KEYWORD1>break</KEYWORD1>
42			<KEYWORD1>case</KEYWORD1>
43			<KEYWORD1>catch</KEYWORD1>
44			<KEYWORD1>continue</KEYWORD1>
45			<KEYWORD1>default</KEYWORD1>
46			<KEYWORD1>do</KEYWORD1>
47			<KEYWORD1>else</KEYWORD1>
48			<KEYWORD1>extends</KEYWORD1>
49			<KEYWORD1>final</KEYWORD1>
50			<KEYWORD1>finally</KEYWORD1>
51			<KEYWORD1>for</KEYWORD1>
52			<KEYWORD1>if</KEYWORD1>
53			<KEYWORD1>implements</KEYWORD1>
54			<KEYWORD1>instanceof</KEYWORD1>
55			<KEYWORD1>native</KEYWORD1>
56			<KEYWORD1>new</KEYWORD1>
57			<KEYWORD1>private</KEYWORD1>
58			<KEYWORD1>protected</KEYWORD1>
59			<KEYWORD1>public</KEYWORD1>
60			<KEYWORD1>return</KEYWORD1>
61			<KEYWORD1>static</KEYWORD1>
62			<KEYWORD1>switch</KEYWORD1>
63			<KEYWORD1>synchronized</KEYWORD1>
64			<KEYWORD1>throw</KEYWORD1>
65			<KEYWORD1>throws</KEYWORD1>
66			<KEYWORD1>transient</KEYWORD1>
67			<KEYWORD1>try</KEYWORD1>
68			<KEYWORD1>volatile</KEYWORD1>
69			<KEYWORD1>while</KEYWORD1>
70			<KEYWORD1>package</KEYWORD1>
71			<KEYWORD1>import</KEYWORD1>
72
73			<KEYWORD2>boolean</KEYWORD2>
74			<KEYWORD2>byte</KEYWORD2>
75			<KEYWORD2>char</KEYWORD2>
76			<KEYWORD2>class</KEYWORD2>
77			<KEYWORD2>double</KEYWORD2>
78			<KEYWORD2>float</KEYWORD2>
79			<KEYWORD2>int</KEYWORD2>
80			<KEYWORD2>interface</KEYWORD2>
81			<KEYWORD2>long</KEYWORD2>
82			<KEYWORD2>short</KEYWORD2>
83			<KEYWORD2>void</KEYWORD2>
84
85			<FUNCTION>assert</FUNCTION>
86			<KEYWORD1>strictfp</KEYWORD1>
87
88			<LITERAL2>false</LITERAL2>
89			<LITERAL2>null</LITERAL2>
90			<LITERAL2>super</LITERAL2>
91			<LITERAL2>this</LITERAL2>
92			<LITERAL2>true</LITERAL2>
93
94			<INVALID>goto</INVALID>
95			<INVALID>const</INVALID>
96                </KEYWORDS>
97	</RULES>
98</MODE>