PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/beanshell.xml

#
XML | 102 lines | 97 code | 3 blank | 2 comment | 0 complexity | ca77dc26517387c87d98fe91e3949d72 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		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 11
 12		<!-- Auto indent -->
 13		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 14		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 15		<PROPERTY NAME="indentNextLine"
 16			VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
 17		<!-- set this to 'true' if you want to use GNU coding style -->
 18		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 19		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 20	</PROPS>
 21	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 22		<!-- C style comment -->
 23		<SPAN TYPE="COMMENT1">
 24			<BEGIN>/*</BEGIN>
 25			<END>*/</END>
 26		</SPAN>
 27
 28		<!-- C++ style comment -->
 29		<EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
 30
 31		<!-- BeanShell comment -->
 32		<EOL_SPAN TYPE="COMMENT3">#!</EOL_SPAN>
 33
 34		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 35			<BEGIN>"</BEGIN>
 36			<END>"</END>
 37		</SPAN>
 38		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 39			<BEGIN>'</BEGIN>
 40			<END>'</END>
 41		</SPAN>
 42
 43		<SEQ TYPE="OPERATOR">=</SEQ>
 44		<SEQ TYPE="OPERATOR">!</SEQ>
 45		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 46		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 47		<SEQ TYPE="OPERATOR">+</SEQ>
 48		<SEQ TYPE="OPERATOR">-</SEQ>
 49		<SEQ TYPE="OPERATOR">/</SEQ>
 50
 51		<SEQ TYPE="OPERATOR">*</SEQ>
 52		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 53		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 54		<SEQ TYPE="OPERATOR">%</SEQ>
 55		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 56		<SEQ TYPE="OPERATOR">|</SEQ>
 57		<SEQ TYPE="OPERATOR">^</SEQ>
 58		<SEQ TYPE="OPERATOR">~</SEQ>
 59		<SEQ TYPE="OPERATOR">}</SEQ>
 60		<SEQ TYPE="OPERATOR">{</SEQ>
 61		<MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
 62			EXCLUDE_MATCH="TRUE"
 63			TYPE="LABEL">:</MARK_PREVIOUS>
 64
 65		<!-- Function calls -->
 66		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 67
 68		<KEYWORDS>
 69			<KEYWORD2>import</KEYWORD2>
 70			<KEYWORD3>byte</KEYWORD3>
 71			<KEYWORD3>char</KEYWORD3>
 72			<KEYWORD3>short</KEYWORD3>
 73			<KEYWORD3>int</KEYWORD3>
 74			<KEYWORD3>long</KEYWORD3>
 75			<KEYWORD3>float</KEYWORD3>
 76			<KEYWORD3>double</KEYWORD3>
 77			<KEYWORD3>boolean</KEYWORD3>
 78			<KEYWORD3>void</KEYWORD3>
 79			<KEYWORD1>break</KEYWORD1>
 80			<KEYWORD1>case</KEYWORD1>
 81			<KEYWORD1>continue</KEYWORD1>
 82			<KEYWORD1>default</KEYWORD1>
 83			<KEYWORD1>do</KEYWORD1>
 84			<KEYWORD1>else</KEYWORD1>
 85			<KEYWORD1>for</KEYWORD1>
 86			<KEYWORD1>if</KEYWORD1>
 87			<KEYWORD1>instanceof</KEYWORD1>
 88			<KEYWORD1>new</KEYWORD1>
 89			<KEYWORD1>return</KEYWORD1>
 90			<KEYWORD1>switch</KEYWORD1>
 91			<KEYWORD1>while</KEYWORD1>
 92			<KEYWORD1>throw</KEYWORD1>
 93			<KEYWORD1>try</KEYWORD1>
 94			<KEYWORD1>catch</KEYWORD1>
 95			<KEYWORD1>finally</KEYWORD1>
 96			<LITERAL2>this</LITERAL2>
 97			<LITERAL2>null</LITERAL2>
 98			<LITERAL2>true</LITERAL2>
 99			<LITERAL2>false</LITERAL2>
100		</KEYWORDS>
101	</RULES>
102</MODE>