Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.ExtLibs/HeuristicLab.AvalonEdit/5.0.1/AvalonEdit-5.0.1/Highlighting/Resources/Java-Mode.xshd @ 16752

Last change on this file since 16752 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 4.9 KB
Line 
1<?xml version="1.0"?>
2<!-- syntaxdefinition for Java 2001 by Jonathan Pierce & Mike Krueger -->
3<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
4<SyntaxDefinition name="Java" extensions=".java" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
5  <Color name="MethodName" foreground="DarkBlue" />
6  <Color name="Digits" foreground="DarkBlue" fontStyle="italic" />
7  <Color name="String" foreground="Magenta"  />
8  <Color name="Character" foreground="Magenta"  />
9  <Color name="Comment" foreground="SlateGray" />
10  <Color name="Punctuation" foreground="DarkGreen" />
11  <Color name="AccessKeywords" foreground="Black" fontWeight="bold" />
12  <Color name="OperatorKeywords" foreground="DarkCyan" fontWeight="bold" />
13  <Color name="SelectionStatements" foreground="Blue" fontWeight="bold" />
14  <Color name="IterationStatements" foreground="Blue" fontWeight="bold" />
15  <Color name="ExceptionHandlingStatements" foreground="Teal" fontWeight="bold" />
16  <Color name="ValueTypes" foreground="Red" fontWeight="bold" />
17  <Color name="ReferenceTypes" foreground="Red" />
18  <Color name="Void" foreground="Red" />
19  <Color name="JumpStatements" foreground="Navy" />
20  <Color name="Modifiers" foreground="Brown" />
21  <Color name="AccessModifiers" foreground="Blue" fontWeight="bold" />
22  <Color name="Package" foreground="Green" fontWeight="bold" />
23  <Color name="Literals" foreground="Black" fontWeight="bold" />
24  <Color name="CommentTags" foreground="Red" fontWeight="bold" fontStyle="italic" />
25  <Color name="JavaDocTags" foreground="DarkGray" fontWeight="bold" fontStyle="italic" />
26  <RuleSet ignoreCase="false">
27    <Rule color="Punctuation">
28      [?,.()\[\]{}+\-/%*&lt;&gt;^!|]+
29    </Rule>
30    <Keywords color="AccessKeywords">
31      <Word>this</Word>
32      <Word>super</Word>
33    </Keywords>
34    <Keywords color="OperatorKeywords">
35      <Word>new</Word>
36      <Word>instanceof</Word>
37      <Word>true</Word>
38      <Word>false</Word>
39    </Keywords>
40    <Keywords color="SelectionStatements">
41      <Word>else</Word>
42      <Word>if</Word>
43      <Word>switch</Word>
44      <Word>case</Word>
45    </Keywords>
46    <Keywords color="IterationStatements">
47      <Word>do</Word>
48      <Word>for</Word>
49      <Word>while</Word>
50    </Keywords>
51    <Keywords color="JumpStatements">
52      <Word>break</Word>
53      <Word>continue</Word>
54      <Word>default</Word>
55      <Word>goto</Word>
56      <Word>return</Word>
57    </Keywords>
58    <Keywords color="ExceptionHandlingStatements">
59      <Word>try</Word>
60      <Word>throw</Word>
61      <Word>catch</Word>
62      <Word>finally</Word>
63    </Keywords>
64    <Keywords color="ValueTypes">
65      <Word>boolean</Word>
66      <Word>double</Word>
67      <Word>int</Word>
68      <Word>short</Word>
69      <Word>long</Word>
70      <Word>float</Word>
71      <Word>byte</Word>
72      <Word>char</Word>
73    </Keywords>
74    <Keywords color="ReferenceTypes">
75      <Word>class</Word>
76      <Word>interface</Word>
77      <Word>object</Word>
78    </Keywords>
79    <Keywords color="Void">
80      <Word>void</Word>
81    </Keywords>
82    <Keywords color="Modifiers">
83      <Word>abstract</Word>
84      <Word>const</Word>
85      <Word>static</Word>
86      <Word>final</Word>
87      <Word>native</Word>
88      <Word>extends</Word>
89      <Word>implements</Word>
90      <Word>volatile</Word>
91      <Word>transient</Word>
92      <Word>throws</Word>
93      <Word>strictfp</Word>
94      <Word>synchronized</Word>
95    </Keywords>
96    <Keywords color="AccessModifiers">
97      <Word>public</Word>
98      <Word>protected</Word>
99      <Word>private</Word>
100    </Keywords>
101    <Keywords color="Package">
102      <Word>package</Word>
103      <Word>import</Word>
104    </Keywords>
105    <Keywords color="Literals">
106      <Word>null</Word>
107    </Keywords>
108    <Span color="Comment" ruleSet="TestSet">
109      <Begin>//</Begin>
110    </Span>
111    <Span color="Comment" ruleSet="TestSet" multiline="true">
112      <Begin>/\*</Begin>
113      <End>\*/</End>
114    </Span>
115    <Span color="String">
116      <Begin>"</Begin>
117      <End>"</End>
118      <RuleSet>
119        <Span begin="\\" end="." />
120      </RuleSet>
121    </Span>
122    <Span color="Character">
123      <Begin>'</Begin>
124      <End>'</End>
125      <RuleSet>
126        <Span begin="\\" end="." />
127      </RuleSet>
128    </Span>
129    <Rule color="MethodName">[\d\w_]+(?=(\s*\())</Rule>
130    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
131  </RuleSet>
132  <RuleSet name="TestSet" ignoreCase="true">
133    <Keywords color="CommentTags">
134      <Word>TODO</Word>
135    </Keywords>
136    <Keywords color="JavaDocTags">
137      <Word>@author</Word>
138      <Word>@version</Word>
139      <Word>@param</Word>
140      <Word>@return</Word>
141      <Word>@exception</Word>
142      <Word>@throws</Word>
143      <Word>@see</Word>
144      <Word>@since</Word>
145      <Word>@serial</Word>
146      <Word>@serialField</Word>
147      <Word>@serialData</Word>
148      <Word>@deprecated</Word>
149    </Keywords>
150    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
151  </RuleSet>
152</SyntaxDefinition>
Note: See TracBrowser for help on using the repository browser.