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