1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 |
|
---|
4 | Syntax highlighting definition for C++
|
---|
5 |
|
---|
6 | xslthl - XSLT Syntax Highlighting
|
---|
7 | http://sourceforge.net/projects/xslthl/
|
---|
8 | Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks
|
---|
9 |
|
---|
10 | This software is provided 'as-is', without any express or implied
|
---|
11 | warranty. In no event will the authors be held liable for any damages
|
---|
12 | arising from the use of this software.
|
---|
13 |
|
---|
14 | Permission is granted to anyone to use this software for any purpose,
|
---|
15 | including commercial applications, and to alter it and redistribute it
|
---|
16 | freely, subject to the following restrictions:
|
---|
17 |
|
---|
18 | 1. The origin of this software must not be misrepresented; you must not
|
---|
19 | claim that you wrote the original software. If you use this software
|
---|
20 | in a product, an acknowledgment in the product documentation would be
|
---|
21 | appreciated but is not required.
|
---|
22 | 2. Altered source versions must be plainly marked as such, and must not be
|
---|
23 | misrepresented as being the original software.
|
---|
24 | 3. This notice may not be removed or altered from any source distribution.
|
---|
25 |
|
---|
26 | Michal Molhanec <mol1111 at users.sourceforge.net>
|
---|
27 | Jirka Kosek <kosek at users.sourceforge.net>
|
---|
28 | Michiel Hendriks <elmuerte at users.sourceforge.net>
|
---|
29 |
|
---|
30 | -->
|
---|
31 | <highlighters>
|
---|
32 | <highlighter type="multiline-comment">
|
---|
33 | <start>/**</start>
|
---|
34 | <end>*/</end>
|
---|
35 | <style>doccomment</style>
|
---|
36 | </highlighter>
|
---|
37 | <highlighter type="oneline-comment">
|
---|
38 | <start><![CDATA[/// ]]></start>
|
---|
39 | <style>doccomment</style>
|
---|
40 | </highlighter>
|
---|
41 | <highlighter type="multiline-comment">
|
---|
42 | <start>/*</start>
|
---|
43 | <end>*/</end>
|
---|
44 | </highlighter>
|
---|
45 | <highlighter type="oneline-comment">//</highlighter>
|
---|
46 | <highlighter type="oneline-comment">
|
---|
47 | <!-- use the online-comment highlighter to detect directives -->
|
---|
48 | <start>#</start>
|
---|
49 | <lineBreakEscape>\</lineBreakEscape>
|
---|
50 | <style>directive</style>
|
---|
51 | <solitary/>
|
---|
52 | </highlighter>
|
---|
53 | <highlighter type="string">
|
---|
54 | <string>"</string>
|
---|
55 | <escape>\</escape>
|
---|
56 | </highlighter>
|
---|
57 | <highlighter type="string">
|
---|
58 | <string>'</string>
|
---|
59 | <escape>\</escape>
|
---|
60 | </highlighter>
|
---|
61 | <highlighter type="hexnumber">
|
---|
62 | <prefix>0x</prefix>
|
---|
63 | <suffix>ul</suffix>
|
---|
64 | <suffix>lu</suffix>
|
---|
65 | <suffix>u</suffix>
|
---|
66 | <suffix>l</suffix>
|
---|
67 | <ignoreCase />
|
---|
68 | </highlighter>
|
---|
69 | <highlighter type="number">
|
---|
70 | <point>.</point>
|
---|
71 | <pointStarts />
|
---|
72 | <exponent>e</exponent>
|
---|
73 | <suffix>ul</suffix>
|
---|
74 | <suffix>lu</suffix>
|
---|
75 | <suffix>u</suffix>
|
---|
76 | <suffix>f</suffix>
|
---|
77 | <suffix>l</suffix>
|
---|
78 | <ignoreCase />
|
---|
79 | </highlighter>
|
---|
80 | <highlighter type="keywords">
|
---|
81 | <!-- C keywords -->
|
---|
82 | <keyword>auto</keyword>
|
---|
83 | <keyword>_Bool</keyword>
|
---|
84 | <keyword>break</keyword>
|
---|
85 | <keyword>case</keyword>
|
---|
86 | <keyword>char</keyword>
|
---|
87 | <keyword>_Complex</keyword>
|
---|
88 | <keyword>const</keyword>
|
---|
89 | <keyword>continue</keyword>
|
---|
90 | <keyword>default</keyword>
|
---|
91 | <keyword>do</keyword>
|
---|
92 | <keyword>double</keyword>
|
---|
93 | <keyword>else</keyword>
|
---|
94 | <keyword>enum</keyword>
|
---|
95 | <keyword>extern</keyword>
|
---|
96 | <keyword>float</keyword>
|
---|
97 | <keyword>for</keyword>
|
---|
98 | <keyword>goto</keyword>
|
---|
99 | <keyword>if</keyword>
|
---|
100 | <keyword>_Imaginary</keyword>
|
---|
101 | <keyword>inline</keyword>
|
---|
102 | <keyword>int</keyword>
|
---|
103 | <keyword>long</keyword>
|
---|
104 | <keyword>register</keyword>
|
---|
105 | <keyword>restrict</keyword>
|
---|
106 | <keyword>return</keyword>
|
---|
107 | <keyword>short</keyword>
|
---|
108 | <keyword>signed</keyword>
|
---|
109 | <keyword>sizeof</keyword>
|
---|
110 | <keyword>static</keyword>
|
---|
111 | <keyword>struct</keyword>
|
---|
112 | <keyword>switch</keyword>
|
---|
113 | <keyword>typedef</keyword>
|
---|
114 | <keyword>union</keyword>
|
---|
115 | <keyword>unsigned</keyword>
|
---|
116 | <keyword>void</keyword>
|
---|
117 | <keyword>volatile</keyword>
|
---|
118 | <keyword>while</keyword>
|
---|
119 | <!-- C++ keywords -->
|
---|
120 | <keyword>asm</keyword>
|
---|
121 | <keyword>dynamic_cast</keyword>
|
---|
122 | <keyword>namespace</keyword>
|
---|
123 | <keyword>reinterpret_cast</keyword>
|
---|
124 | <keyword>try</keyword>
|
---|
125 | <keyword>bool</keyword>
|
---|
126 | <keyword>explicit</keyword>
|
---|
127 | <keyword>new</keyword>
|
---|
128 | <keyword>static_cast</keyword>
|
---|
129 | <keyword>typeid</keyword>
|
---|
130 | <keyword>catch</keyword>
|
---|
131 | <keyword>false</keyword>
|
---|
132 | <keyword>operator</keyword>
|
---|
133 | <keyword>template</keyword>
|
---|
134 | <keyword>typename</keyword>
|
---|
135 | <keyword>class</keyword>
|
---|
136 | <keyword>friend</keyword>
|
---|
137 | <keyword>private</keyword>
|
---|
138 | <keyword>this</keyword>
|
---|
139 | <keyword>using</keyword>
|
---|
140 | <keyword>const_cast</keyword>
|
---|
141 | <keyword>inline</keyword>
|
---|
142 | <keyword>public</keyword>
|
---|
143 | <keyword>throw</keyword>
|
---|
144 | <keyword>virtual</keyword>
|
---|
145 | <keyword>delete</keyword>
|
---|
146 | <keyword>mutable</keyword>
|
---|
147 | <keyword>protected</keyword>
|
---|
148 | <keyword>true</keyword>
|
---|
149 | <keyword>wchar_t</keyword>
|
---|
150 | </highlighter>
|
---|
151 | </highlighters> |
---|