-rw-r--r-- | share/tinykate/syntax/cpp.xml | 100 |
1 files changed, 56 insertions, 44 deletions
diff --git a/share/tinykate/syntax/cpp.xml b/share/tinykate/syntax/cpp.xml index 889457c..8dda2a9 100644 --- a/share/tinykate/syntax/cpp.xml +++ b/share/tinykate/syntax/cpp.xml | |||
@@ -1,48 +1,50 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 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"> | 3 | <language name="C++" version="1.01" kateversion="2.0" section="Sources" extensions="*.cxx;*.cpp;*.cc;*.C;*.h" mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr;text/x-c++src"> |
4 | <highlighting> | 4 | <highlighting> |
5 | <list name="keywords"> | 5 | <list name="keywords"> |
6 | <item> class </item> | 6 | <item> class </item> |
7 | <item> false </item> | 7 | <item> false </item> |
8 | <item> friend </item> | 8 | <item> friend </item> |
9 | <item> inline </item> | 9 | <item> inline </item> |
10 | <item> namespace </item> | 10 | <item> namespace </item> |
11 | <item> new </item> | 11 | <item> new </item> |
12 | <item> delete </item> | 12 | <item> delete </item> |
13 | <item> operator </item> | 13 | <item> operator </item> |
14 | <item> private </item> | 14 | <item> private </item> |
15 | <item> protected </item> | 15 | <item> protected </item> |
16 | <item> public </item> | 16 | <item> public </item> |
17 | <item> reinterpret_cast </item> | 17 | <item> reinterpret_cast </item> |
18 | <item> static_cast </item> | 18 | <item> static_cast </item> |
19 | <item> dynamic_cast</item> | 19 | <item> dynamic_cast</item> |
20 | <item> explicit </item> | ||
20 | <item> template </item> | 21 | <item> template </item> |
21 | <item> this </item> | 22 | <item> this </item> |
22 | <item> throw </item> | 23 | <item> throw </item> |
23 | <item> true </item> | 24 | <item> true </item> |
24 | <item> try </item> | 25 | <item> try </item> |
26 | <item> catch </item> | ||
25 | <item> typeid </item> | 27 | <item> typeid </item> |
26 | <item> typename </item> | 28 | <item> typename </item> |
27 | <item> using </item> | 29 | <item> using </item> |
28 | <item> virtual </item> | 30 | <item> virtual </item> |
29 | <item> and_eq </item> | 31 | <item> and_eq </item> |
30 | <item> and </item> | 32 | <item> and </item> |
31 | <item> bitand </item> | 33 | <item> bitand </item> |
32 | <item> bitor </item> | 34 | <item> bitor </item> |
33 | <item> compl </item> | 35 | <item> compl </item> |
34 | <item> not_eq </item> | 36 | <item> not_eq </item> |
35 | <item> not </item> | 37 | <item> not </item> |
36 | <item> or_eq </item> | 38 | <item> or_eq </item> |
37 | <item> or </item> | 39 | <item> or </item> |
38 | <item> xor_eq </item> | 40 | <item> xor_eq </item> |
39 | <item> xor </item> | 41 | <item> xor </item> |
40 | <item> bad_cast </item> | 42 | <item> bad_cast </item> |
41 | <item> bad_typeid </item> | 43 | <item> bad_typeid </item> |
42 | <item> except </item> | 44 | <item> except </item> |
43 | <item> finally </item> | 45 | <item> finally </item> |
44 | <item> type_info </item> | 46 | <item> type_info </item> |
45 | <item> xalloc </item> | 47 | <item> xalloc </item> |
46 | <item> Q_EXPORT </item> | 48 | <item> Q_EXPORT </item> |
47 | <item> Q_OBJECT </item> | 49 | <item> Q_OBJECT </item> |
48 | <item> K_DCOP </item> | 50 | <item> K_DCOP </item> |
@@ -85,101 +87,111 @@ | |||
85 | <item> auto </item> | 87 | <item> auto </item> |
86 | <item> char </item> | 88 | <item> char </item> |
87 | <item> const </item> | 89 | <item> const </item> |
88 | <item> double </item> | 90 | <item> double </item> |
89 | <item> float </item> | 91 | <item> float </item> |
90 | <item> int </item> | 92 | <item> int </item> |
91 | <item> long </item> | 93 | <item> long </item> |
92 | <item> register </item> | 94 | <item> register </item> |
93 | <item> short </item> | 95 | <item> short </item> |
94 | <item> signed </item> | 96 | <item> signed </item> |
95 | <item> static </item> | 97 | <item> static </item> |
96 | <item> unsigned </item> | 98 | <item> unsigned </item> |
97 | <item> void </item> | 99 | <item> void </item> |
98 | <item> volatile </item> | 100 | <item> volatile </item> |
99 | <item> int16_t </item> | 101 | <item> int16_t </item> |
100 | <item> int32_t </item> | 102 | <item> int32_t </item> |
101 | <item> int8_t </item> | 103 | <item> int8_t </item> |
102 | <item> int64_t </item> | 104 | <item> int64_t </item> |
103 | <item> uint16_t </item> | 105 | <item> uint16_t </item> |
104 | <item> uint32_t </item> | 106 | <item> uint32_t </item> |
105 | <item> uint8_t </item> | 107 | <item> uint8_t </item> |
106 | <item> uint64_t </item> | 108 | <item> uint64_t </item> |
107 | </list> | 109 | </list> |
108 | <contexts> | 110 | <contexts> |
109 | <context attribute="0" lineEndContext="0" name="Normal"> | 111 | <context attribute="0" lineEndContext="#stay" name="Normal"> |
110 | <keyword attribute="1" context="0" String="keywords" /> | 112 | <RegExpr attribute="3" context="#stay" String="//BEGIN.*$" beginRegion="Region1"/> |
111 | <keyword attribute="2" context="0" String="types" /> | 113 | <RegExpr attribute="3" context="#stay" String="//END.*$" endRegion="Region1"/> |
112 | <Float attribute="6" context="0"> | 114 | <keyword attribute="1" context="#stay" String="keywords" /> |
113 | <AnyChar String="fF" attribute="6" context="0"/> | 115 | <keyword attribute="2" context="#stay" String="types" /> |
116 | <Float attribute="6" context="#stay"> | ||
117 | <AnyChar String="fF" attribute="6" context="#stay"/> | ||
114 | </Float> | 118 | </Float> |
115 | <HlCOct attribute="4" context="0"/> | 119 | <HlCOct attribute="4" context="#stay"/> |
116 | <HlCHex attribute="5" context="0"/> | 120 | <HlCHex attribute="5" context="#stay"/> |
117 | <Int attribute="3" context="0" > | 121 | <Int attribute="3" context="#stay" > |
118 | <StringDetect attribute="3" context="0" String="ULL" insensitive="TRUE"/> | 122 | <StringDetect attribute="3" context="#stay" String="ULL" insensitive="TRUE"/> |
119 | <StringDetect attribute="3" context="0" String="LUL" insensitive="TRUE"/> | 123 | <StringDetect attribute="3" context="#stay" String="LUL" insensitive="TRUE"/> |
120 | <StringDetect attribute="3" context="0" String="LLU" insensitive="TRUE"/> | 124 | <StringDetect attribute="3" context="#stay" String="LLU" insensitive="TRUE"/> |
121 | <StringDetect attribute="3" context="0" String="UL" insensitive="TRUE"/> | 125 | <StringDetect attribute="3" context="#stay" String="UL" insensitive="TRUE"/> |
122 | <StringDetect attribute="3" context="0" String="LU" insensitive="TRUE"/> | 126 | <StringDetect attribute="3" context="#stay" String="LU" insensitive="TRUE"/> |
123 | <StringDetect attribute="3" context="0" String="LL" insensitive="TRUE"/> | 127 | <StringDetect attribute="3" context="#stay" String="LL" insensitive="TRUE"/> |
124 | <StringDetect attribute="3" context="0" String="U" insensitive="TRUE"/> | 128 | <StringDetect attribute="3" context="#stay" String="U" insensitive="TRUE"/> |
125 | <StringDetect attribute="3" context="0" String="L" insensitive="TRUE"/> | 129 | <StringDetect attribute="3" context="#stay" String="L" insensitive="TRUE"/> |
126 | </Int> | 130 | </Int> |
127 | <HlCChar attribute="7" context="0"/> | 131 | <HlCChar attribute="7" context="#stay"/> |
128 | <DetectChar attribute="8" context="1" char="""/> | 132 | <DetectChar attribute="8" context="String" char="""/> |
129 | <Detect2Chars attribute="10" context="2" char="/" char1="/"/> | 133 | <Detect2Chars attribute="10" context="Commentar 1" char="/" char1="/"/> |
130 | <Detect2Chars attribute="10" context="3" char="/" char1="*"/> | 134 | <Detect2Chars attribute="10" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> |
131 | <AnyChar attribute="11" context="0" String="!%&()+,-<=>?[]^{|}~"/> | 135 | <DetectChar attribute="0" context="#stay" char="{" beginRegion="Brace1" /> |
132 | <StringDetect attribute="10" context="8" String="#if 0" insensitive="FALSE"/> | 136 | <DetectChar attribute="0" context="#stay" char="}" endRegion="Brace1" /> |
133 | <RegExpr attribute="12" context="4" String="^#"/> | 137 | <AnyChar attribute="11" context="#stay" String="!%&()+,-<=>?[]^{|}~"/> |
138 | <StringDetect attribute="12" context="8" String="#if 0" insensitive="FALSE"/> | ||
139 | <RegExpr attribute="12" context="4" String="#"/> | ||
134 | </context> | 140 | </context> |
135 | <context attribute="8" lineEndContext="0" name="String"> | 141 | <context attribute="8" lineEndContext="#pop" name="String"> |
136 | <LineContinue attribute="8" context="6"/> | 142 | <LineContinue attribute="8" context="#stay"/> |
137 | <HlCStringChar attribute="9" context="1"/> | 143 | <HlCStringChar attribute="9" context="#stay"/> |
138 | <DetectChar attribute="8" context="0" char="""/> | 144 | <DetectChar attribute="8" context="#pop" char="""/> |
139 | </context> | 145 | </context> |
140 | <context attribute="10" lineEndContext="0" name="Commentar 1"> | 146 | <context attribute="10" lineEndContext="#pop" name="Commentar 1"> |
141 | <RegExpr attribute="3" context="2" String="(FIXME|TODO)" /> | 147 | <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> |
142 | </context> | 148 | </context> |
143 | <context attribute="10" lineEndContext="3" name="Commentar 2"> | 149 | <context attribute="10" lineEndContext="#stay" name="Commentar 2"> |
144 | <RegExpr attribute="3" context="3" String="(FIXME|TODO)" /> | 150 | <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> |
145 | <Detect2Chars attribute="10" context="0" char="*" char1="/"/> | 151 | <Detect2Chars attribute="10" context="#pop" char="*" char1="/" endRegion="Comment"/> |
146 | </context> | 152 | </context> |
147 | <context attribute="12" lineEndContext="0" name="Preprocessor"> | 153 | <context attribute="12" lineEndContext="#pop" name="Preprocessor"> |
148 | <LineContinue attribute="12" context="7"/> | 154 | <LineContinue attribute="12" context="#stay"/> |
149 | <RangeDetect attribute="13" context="4" char=""" char1="""/> | 155 | <RangeDetect attribute="13" context="#stay" char=""" char1="""/> |
150 | <RangeDetect attribute="13" context="4" char="<" char1=">"/> | 156 | <RangeDetect attribute="13" context="#stay" char="<" char1=">"/> |
151 | <Detect2Chars attribute="10" context="2" char="/" char1="/"/> | 157 | <Detect2Chars attribute="10" context="Commentar 1" char="/" char1="/"/> |
152 | <Detect2Chars attribute="10" context="5" char="/" char1="*"/> | 158 | <Detect2Chars attribute="10" context="Commentar/Preprocessor" char="/" char1="*"/> |
153 | </context> | 159 | </context> |
154 | <context attribute="10" lineEndContext="5" name="Commentar/Preprocessor"> | 160 | <context attribute="10" lineEndContext="#stay" name="Commentar/Preprocessor"> |
155 | <Detect2Chars attribute="10" context="4" char="*" char1="/" /> | 161 | <Detect2Chars attribute="10" context="#pop" char="*" char1="/" /> |
156 | </context> | 162 | </context> |
157 | <context attribute="0" lineEndContext="1" name="Some Context"/> | 163 | <context attribute="0" lineEndContext="1" name="Some Context"/> |
158 | <context attribute="0" lineEndContext="4" name="Some Context2"/> | 164 | <context attribute="0" lineEndContext="4" name="Some Context2"/> |
159 | <context attribute="10" lineEndContext="8"> | 165 | <context attribute="10" lineEndContext="#stay"> |
160 | <RegExpr attribute="3" context="8" String="(FIXME|TODO)" /> | 166 | <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> |
161 | <RegExpr attribute="10" context="0" String="^#endif" /> | 167 | <RegExpr attribute="10" context="9" String="#if" /> |
168 | <RegExpr attribute="12" context="#pop" String="#endif" /> | ||
169 | <RegExpr attribute="12" context="#pop" String="#else" /> | ||
170 | </context> | ||
171 | <context attribute="10" lineEndContext="#stay"> | ||
172 | <RegExpr attribute="10" context="9" String="#if" /> | ||
173 | <RegExpr attribute="10" context="#pop" String="#endif" /> | ||
162 | </context> | 174 | </context> |
163 | </contexts> | 175 | </contexts> |
164 | <itemDatas> | 176 | <itemDatas> |
165 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | 177 | <itemData name="Normal Text" defStyleNum="dsNormal"/> |
166 | <itemData name="Keyword" defStyleNum="dsKeyword"/> | 178 | <itemData name="Keyword" defStyleNum="dsKeyword"/> |
167 | <itemData name="Data Type" defStyleNum="dsDataType"/> | 179 | <itemData name="Data Type" defStyleNum="dsDataType"/> |
168 | <itemData name="Decimal" defStyleNum="dsDecVal"/> | 180 | <itemData name="Decimal" defStyleNum="dsDecVal"/> |
169 | <itemData name="Octal" defStyleNum="dsBaseN"/> | 181 | <itemData name="Octal" defStyleNum="dsBaseN"/> |
170 | <itemData name="Hex" defStyleNum="dsBaseN"/> | 182 | <itemData name="Hex" defStyleNum="dsBaseN"/> |
171 | <itemData name="Float" defStyleNum="dsFloat"/> | 183 | <itemData name="Float" defStyleNum="dsFloat"/> |
172 | <itemData name="Char" defStyleNum="dsChar"/> | 184 | <itemData name="Char" defStyleNum="dsChar"/> |
173 | <itemData name="String" defStyleNum="dsString"/> | 185 | <itemData name="String" defStyleNum="dsString"/> |
174 | <itemData name="String Char" defStyleNum="dsChar"/> | 186 | <itemData name="String Char" defStyleNum="dsChar"/> |
175 | <itemData name="Comment" defStyleNum="dsComment"/> | 187 | <itemData name="Comment" defStyleNum="dsComment"/> |
176 | <itemData name="Symbol" defStyleNum="dsNormal"/> | 188 | <itemData name="Symbol" defStyleNum="dsNormal"/> |
177 | <itemData name="Preprocessor" defStyleNum="dsOthers"/> | 189 | <itemData name="Preprocessor" defStyleNum="dsOthers"/> |
178 | <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); --> | 190 | <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); --> |
179 | </itemDatas> | 191 | </itemDatas> |
180 | </highlighting> | 192 | </highlighting> |
181 | <general> | 193 | <general> |
182 | <comments> | 194 | <comments> |
183 | <comment name="singleLine" start="//" /> | 195 | <comment name="singleLine" start="//" /> |
184 | <comment name="multiLine" start="/*" end="*/" /> | 196 | <comment name="multiLine" start="/*" end="*/" /> |
185 | </comments> | 197 | </comments> |