fix some db docs
[factor/jcg.git] / basis / xmode / modes / javacc.xml
blobd3172d2a7d026b89ff05bb891be0b8e095efb56b
1 <?xml version="1.0"?>\r
2 <!DOCTYPE MODE SYSTEM "xmode.dtd">\r
3 <MODE>\r
4     <PROPS>\r
5                 <PROPERTY NAME="commentStart" VALUE="/*" />\r
6                 <PROPERTY NAME="commentEnd" VALUE="*/" />\r
7                 <PROPERTY NAME="lineComment" VALUE="//" />\r
8                 <PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />\r
9 \r
10                 <!-- Auto indent -->\r
11                  <PROPERTY NAME="indentOpenBrackets" VALUE="{" />\r
12                 <PROPERTY NAME="indentCloseBrackets" VALUE="}" />\r
13                 <PROPERTY NAME="unalignedOpenBrackets" VALUE="(" />\r
14                 <PROPERTY NAME="unalignedCloseBrackets" VALUE=")" />\r
15                 <PROPERTY NAME="indentNextLine"\r
16                         VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />\r
17                 <PROPERTY NAME="unindentThisLine"\r
18                         VALUE="^.*(default:\s*|case.*:.*)$" />\r
19                 <PROPERTY NAME="electricKeys" VALUE=":" />\r
20         </PROPS>\r
21     <RULES IGNORE_CASE="FALSE">\r
22         <IMPORT DELEGATE="java::MAIN"/>\r
23         \r
24         <KEYWORDS>\r
25             <KEYWORD1>EOF</KEYWORD1>\r
26             <KEYWORD1>IGNORE_CASE</KEYWORD1>\r
27             <KEYWORD1>JAVACODE</KEYWORD1>\r
28             <KEYWORD1>LOOKAHEAD</KEYWORD1>\r
29             <KEYWORD1>MORE</KEYWORD1>\r
30             <KEYWORD1>PARSER_BEGIN</KEYWORD1>\r
31             <KEYWORD1>PARSER_END</KEYWORD1>\r
32             <KEYWORD1>SKIP</KEYWORD1>\r
33             <KEYWORD1>SPECIAL_TOKEN</KEYWORD1>\r
34             <KEYWORD1>TOKEN</KEYWORD1>\r
35             <KEYWORD1>TOKEN_MGR_DECLS</KEYWORD1>\r
36             <KEYWORD1>options</KEYWORD1>\r
37         </KEYWORDS>\r
38     </RULES>\r
39 </MODE>\r