summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--share/tinykate/syntax/cpp.xml188
1 files changed, 188 insertions, 0 deletions
diff --git a/share/tinykate/syntax/cpp.xml b/share/tinykate/syntax/cpp.xml
new file mode 100644
index 0000000..889457c
--- a/dev/null
+++ b/share/tinykate/syntax/cpp.xml
@@ -0,0 +1,188 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE language SYSTEM "language.dtd">
3<language name="C++" section="Sources" extensions="*.cxx;*.cpp;*.cc;*.C;*.h" mimetype="text/x-c++-src;text/x-c++-hdr;text/x-c-hdr;text/x-c++-src">
4 <highlighting>
5 <list name="keywords">
6 <item> class </item>
7 <item> false </item>
8 <item> friend </item>
9 <item> inline </item>
10 <item> namespace </item>
11 <item> new </item>
12 <item> delete </item>
13 <item> operator </item>
14 <item> private </item>
15 <item> protected </item>
16 <item> public </item>
17 <item> reinterpret_cast </item>
18 <item> static_cast </item>
19 <item> dynamic_cast</item>
20 <item> template </item>
21 <item> this </item>
22 <item> throw </item>
23 <item> true </item>
24 <item> try </item>
25 <item> typeid </item>
26 <item> typename </item>
27 <item> using </item>
28 <item> virtual </item>
29 <item> and_eq </item>
30 <item> and </item>
31 <item> bitand </item>
32 <item> bitor </item>
33 <item> compl </item>
34 <item> not_eq </item>
35 <item> not </item>
36 <item> or_eq </item>
37 <item> or </item>
38 <item> xor_eq </item>
39 <item> xor </item>
40 <item> bad_cast </item>
41 <item> bad_typeid </item>
42 <item> except </item>
43 <item> finally </item>
44 <item> type_info </item>
45 <item> xalloc </item>
46 <item> Q_EXPORT </item>
47 <item> Q_OBJECT </item>
48 <item> K_DCOP </item>
49 <item> SLOT </item>
50 <item> SIGNAL </item>
51 <item> slots </item>
52 <item> signals </item>
53 <item> Q_PROPERTY </item>
54 <item> Q_ENUMS </item>
55 <item> Q_SETS </item>
56 <item> Q_OVERRIDE </item>
57 <item> Q_CLASSINFO </item>
58 <item> TRUE </item>
59 <item> FALSE </item>
60 <item> break </item>
61 <item> case </item>
62 <item> continue </item>
63 <item> default </item>
64 <item> do </item>
65 <item> else </item>
66 <item> enum </item>
67 <item> extern </item>
68 <item> for </item>
69 <item> goto </item>
70 <item> if </item>
71 <item> return </item>
72 <item> sizeof </item>
73 <item> struct </item>
74 <item> switch </item>
75 <item> typedef </item>
76 <item> union </item>
77 <item> while </item>
78 <item> connect </item>
79 </list>
80 <list name="types">
81 <item> bool </item>
82 <item> wchar_t </item>
83 <item> mutable </item>
84 <item> uint </item>
85 <item> auto </item>
86 <item> char </item>
87 <item> const </item>
88 <item> double </item>
89 <item> float </item>
90 <item> int </item>
91 <item> long </item>
92 <item> register </item>
93 <item> short </item>
94 <item> signed </item>
95 <item> static </item>
96 <item> unsigned </item>
97 <item> void </item>
98 <item> volatile </item>
99 <item> int16_t </item>
100 <item> int32_t </item>
101 <item> int8_t </item>
102 <item> int64_t </item>
103 <item> uint16_t </item>
104 <item> uint32_t </item>
105 <item> uint8_t </item>
106 <item> uint64_t </item>
107 </list>
108 <contexts>
109 <context attribute="0" lineEndContext="0" name="Normal">
110 <keyword attribute="1" context="0" String="keywords" />
111 <keyword attribute="2" context="0" String="types" />
112 <Float attribute="6" context="0">
113 <AnyChar String="fF" attribute="6" context="0"/>
114 </Float>
115 <HlCOct attribute="4" context="0"/>
116 <HlCHex attribute="5" context="0"/>
117 <Int attribute="3" context="0" >
118 <StringDetect attribute="3" context="0" String="ULL" insensitive="TRUE"/>
119 <StringDetect attribute="3" context="0" String="LUL" insensitive="TRUE"/>
120 <StringDetect attribute="3" context="0" String="LLU" insensitive="TRUE"/>
121 <StringDetect attribute="3" context="0" String="UL" insensitive="TRUE"/>
122 <StringDetect attribute="3" context="0" String="LU" insensitive="TRUE"/>
123 <StringDetect attribute="3" context="0" String="LL" insensitive="TRUE"/>
124 <StringDetect attribute="3" context="0" String="U" insensitive="TRUE"/>
125 <StringDetect attribute="3" context="0" String="L" insensitive="TRUE"/>
126 </Int>
127 <HlCChar attribute="7" context="0"/>
128 <DetectChar attribute="8" context="1" char="&quot;"/>
129 <Detect2Chars attribute="10" context="2" char="/" char1="/"/>
130 <Detect2Chars attribute="10" context="3" char="/" char1="*"/>
131 <AnyChar attribute="11" context="0" String="!%&amp;()+,-&lt;=&gt;?[]^{|}~"/>
132 <StringDetect attribute="10" context="8" String="#if 0" insensitive="FALSE"/>
133 <RegExpr attribute="12" context="4" String="^#"/>
134 </context>
135 <context attribute="8" lineEndContext="0" name="String">
136 <LineContinue attribute="8" context="6"/>
137 <HlCStringChar attribute="9" context="1"/>
138 <DetectChar attribute="8" context="0" char="&quot;"/>
139 </context>
140 <context attribute="10" lineEndContext="0" name="Commentar 1">
141 <RegExpr attribute="3" context="2" String="(FIXME|TODO)" />
142 </context>
143 <context attribute="10" lineEndContext="3" name="Commentar 2">
144 <RegExpr attribute="3" context="3" String="(FIXME|TODO)" />
145 <Detect2Chars attribute="10" context="0" char="*" char1="/"/>
146 </context>
147 <context attribute="12" lineEndContext="0" name="Preprocessor">
148 <LineContinue attribute="12" context="7"/>
149 <RangeDetect attribute="13" context="4" char="&quot;" char1="&quot;"/>
150 <RangeDetect attribute="13" context="4" char="&lt;" char1="&gt;"/>
151 <Detect2Chars attribute="10" context="2" char="/" char1="/"/>
152 <Detect2Chars attribute="10" context="5" char="/" char1="*"/>
153 </context>
154 <context attribute="10" lineEndContext="5" name="Commentar/Preprocessor">
155 <Detect2Chars attribute="10" context="4" char="*" char1="/" />
156 </context>
157 <context attribute="0" lineEndContext="1" name="Some Context"/>
158 <context attribute="0" lineEndContext="4" name="Some Context2"/>
159 <context attribute="10" lineEndContext="8">
160 <RegExpr attribute="3" context="8" String="(FIXME|TODO)" />
161 <RegExpr attribute="10" context="0" String="^#endif" />
162 </context>
163 </contexts>
164 <itemDatas>
165 <itemData name="Normal Text" defStyleNum="dsNormal"/>
166 <itemData name="Keyword" defStyleNum="dsKeyword"/>
167 <itemData name="Data Type" defStyleNum="dsDataType"/>
168 <itemData name="Decimal" defStyleNum="dsDecVal"/>
169 <itemData name="Octal" defStyleNum="dsBaseN"/>
170 <itemData name="Hex" defStyleNum="dsBaseN"/>
171 <itemData name="Float" defStyleNum="dsFloat"/>
172 <itemData name="Char" defStyleNum="dsChar"/>
173 <itemData name="String" defStyleNum="dsString"/>
174 <itemData name="String Char" defStyleNum="dsChar"/>
175 <itemData name="Comment" defStyleNum="dsComment"/>
176 <itemData name="Symbol" defStyleNum="dsNormal"/>
177 <itemData name="Preprocessor" defStyleNum="dsOthers"/>
178 <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
179 </itemDatas>
180 </highlighting>
181 <general>
182 <comments>
183 <comment name="singleLine" start="//" />
184 <comment name="multiLine" start="/*" end="*/" />
185 </comments>
186 <keywords casesensitive="1" />
187 </general>
188</language>