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/CPP-Mode.xshd @ 17709

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

#2077: created branch and added first version

File size: 5.4 KB
Line 
1<?xml version="1.0"?>
2<!-- syntaxdefinition for C/C++ 2001 by Andrea Paatz and Mike Krueger -->
3<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
4<SyntaxDefinition name="C++" extensions=".c;.h;.cc;.cpp;.hpp" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
5  <Color name="Comment" foreground="Green" />
6  <Color name="Character" foreground="Fuchsia" />
7  <Color name="String" foreground="Fuchsia" />
8  <Color name="Preprocessor" foreground="Green" />
9  <Color name="Punctuation" foreground="DarkGreen" />
10  <Color name="MethodName" foreground="MidnightBlue" fontWeight="bold" />
11  <Color name="Digits" foreground="DarkBlue" />
12  <Color name="CompoundKeywords" foreground="Black" fontWeight="bold" />
13  <Color name="This" foreground="Black" fontWeight="bold" />
14  <Color name="Operators" foreground="#FF008B8B" fontWeight="bold" />
15  <Color name="Namespace" foreground="#FF008000" fontWeight="bold" />
16  <Color name="Friend" foreground="#FFA52A2A" />
17  <Color name="Modifiers" foreground="#FF0000FF" fontWeight="bold" />
18  <Color name="TypeKeywords" foreground="#FFFF0000" />
19  <Color name="BooleanConstants" foreground="#FF000000" fontWeight="bold" />
20  <Color name="Keywords" foreground="#FF0000FF" fontWeight="bold" />
21  <Color name="LoopKeywords" foreground="#FF0000FF" fontWeight="bold" />
22  <Color name="JumpKeywords" foreground="#FF000080" />
23  <Color name="ExceptionHandling" foreground="#FF008080" fontWeight="bold" />
24  <Color name="ControlFlow" foreground="#FF0000FF" fontWeight="bold" />
25  <RuleSet ignoreCase="false">
26    <Rule color="Punctuation">
27    [?,.;()\[\]{}+\-/%*&lt;&gt;^=~!&amp;]+
28    </Rule>
29    <Keywords color="CompoundKeywords">
30      <Word>__abstract</Word>
31      <Word>__box</Word>
32      <Word>__delegate</Word>
33      <Word>__gc</Word>
34      <Word>__identifier</Word>
35      <Word>__nogc</Word>
36      <Word>__pin</Word>
37      <Word>__property</Word>
38      <Word>__sealed</Word>
39      <Word>__try_cast</Word>
40      <Word>__typeof</Word>
41      <Word>__value</Word>
42      <Word>__event</Word>
43      <Word>__hook</Word>
44      <Word>__raise</Word>
45      <Word>__unhook</Word>
46      <Word>__interface</Word>
47      <Word>ref class</Word>
48      <Word>ref struct</Word>
49      <Word>value class</Word>
50      <Word>value struct</Word>
51      <Word>interface class</Word>
52      <Word>interface struct</Word>
53      <Word>enum class</Word>
54      <Word>enum struct</Word>
55      <Word>delegate</Word>
56      <Word>event</Word>
57      <Word>property</Word>
58      <Word>abstract</Word>
59      <Word>override</Word>
60      <Word>sealed</Word>
61      <Word>generic</Word>
62      <Word>where</Word>
63      <Word>finally</Word>
64      <Word>for each</Word>
65      <Word>gcnew</Word>
66      <Word>in</Word>
67      <Word>initonly</Word>
68      <Word>literal</Word>
69      <Word>nullptr</Word>
70    </Keywords>
71    <Keywords color="This">
72      <Word>this</Word>
73    </Keywords>
74    <Keywords color="Operators">
75      <Word>and</Word>
76      <Word>and_eq</Word>
77      <Word>bitand</Word>
78      <Word>bitor</Word>
79      <Word>new</Word>
80      <Word>not</Word>
81      <Word>not_eq</Word>
82      <Word>or</Word>
83      <Word>or_eq</Word>
84      <Word>xor</Word>
85      <Word>xor_eq</Word>
86    </Keywords>
87    <Keywords color="Namespace">
88      <Word>using</Word>
89      <Word>namespace</Word>
90    </Keywords>
91    <Keywords color="Friend">
92      <Word>friend</Word>
93    </Keywords>
94    <Keywords color="Modifiers">
95      <Word>private</Word>
96      <Word>protected</Word>
97      <Word>public</Word>
98      <Word>const</Word>
99      <Word>volatile</Word>
100      <Word>static</Word>
101    </Keywords>
102    <Keywords color="TypeKeywords">
103      <Word>bool</Word>
104      <Word>char</Word>
105      <Word>unsigned</Word>
106      <Word>union</Word>
107      <Word>virtual</Word>
108      <Word>double</Word>
109      <Word>float</Word>
110      <Word>short</Word>
111      <Word>signed</Word>
112      <Word>void</Word>
113      <Word>class</Word>
114      <Word>enum</Word>
115      <Word>struct</Word>
116    </Keywords>
117    <Keywords color="BooleanConstants">
118      <Word>false</Word>
119      <Word>true</Word>
120    </Keywords>
121    <Keywords color="LoopKeywords">
122      <Word>do</Word>
123      <Word>for</Word>
124      <Word>while</Word>
125    </Keywords>
126    <Keywords color="JumpKeywords">
127      <Word>break</Word>
128      <Word>continue</Word>
129      <Word>goto</Word>
130      <Word>return</Word>
131    </Keywords>
132    <Keywords color="ExceptionHandling">
133      <Word>catch</Word>
134      <Word>throw</Word>
135      <Word>try</Word>
136    </Keywords>
137    <Keywords color="ControlFlow">
138      <Word>case</Word>
139      <Word>else</Word>
140      <Word>if</Word>
141      <Word>switch</Word>
142      <Word>default</Word>
143    </Keywords>
144    <Keywords color="Keywords">
145      <Word>asm</Word>
146      <Word>auto</Word>
147      <Word>compl</Word>
148      <Word>mutable</Word>
149      <Word>const_cast</Word>
150      <Word>delete</Word>
151      <Word>dynamic_cast</Word>
152      <Word>explicit</Word>
153      <Word>export</Word>
154      <Word>extern</Word>
155      <Word>inline</Word>
156      <Word>int</Word>
157      <Word>long</Word>
158      <Word>operator</Word>
159      <Word>register</Word>
160      <Word>reinterpret_cast</Word>
161      <Word>sizeof</Word>
162      <Word>static_cast</Word>
163      <Word>template</Word>
164      <Word>typedef</Word>
165      <Word>typeid</Word>
166      <Word>typename</Word>
167    </Keywords>
168    <Span color="Preprocessor">
169      <Begin>\#</Begin>
170    </Span>
171    <Span color="Comment">
172      <Begin>//</Begin>
173    </Span>
174    <Span color="Comment" multiline="true">
175      <Begin>/\*</Begin>
176      <End>\*/</End>
177    </Span>
178    <Span color="String">
179      <Begin>"</Begin>
180      <End>"</End>
181      <RuleSet>
182        <Span begin="\\" end="." />
183      </RuleSet>
184    </Span>
185    <Span color="Character">
186      <Begin>'</Begin>
187      <End>'</End>
188      <RuleSet>
189        <Span begin="\\" end="." />
190      </RuleSet>
191    </Span>
192    <Rule color="MethodName">[\d\w_]+(?=(\s*\())</Rule>
193    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
194  </RuleSet>
195</SyntaxDefinition>
Note: See TracBrowser for help on using the repository browser.