summaryrefslogtreecommitdiffstats
path: root/kate/data/cpp.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/cpp.xml')
-rw-r--r--kate/data/cpp.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/kate/data/cpp.xml b/kate/data/cpp.xml
index 50b6991d6..691bcb624 100644
--- a/kate/data/cpp.xml
+++ b/kate/data/cpp.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="C++" section="Sources"
- version="1.55" kateversion="2.4"
+ version="1.52" kateversion="2.5"
indenter="cstyle"
mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr"
extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc"
@@ -85,6 +85,8 @@
<item> xor </item>
<item> xor_eq </item>
</list>
+
+ <!-- QT/TQT extensions -->
<list name="extensions">
<item> K_DCOP </item>
<item> Q_ARG </item>
@@ -95,7 +97,6 @@
<item> Q_CLEANUP_RESOURCE </item>
<item> Q_D </item>
<item> Q_DECLARE_FLAGS </item>
- <item> Q_DECLARE_FLAGS </item>
<item> Q_DECLARE_INTERFACE </item>
<item> Q_DECLARE_METATYPE </item>
<item> Q_DECLARE_OPERATORS_FOR_FLAGS </item>
@@ -184,7 +185,6 @@
<item> slots </item>
<item> foreach </item>
<item> forever </item>
-
<item> qint8 </item>
<item> qint16 </item>
<item> qint32 </item>
@@ -199,6 +199,7 @@
<item> quintptr </item>
<item> qulonglong </item>
</list>
+
<list name="types">
<item> auto </item>
<item> bool </item>
@@ -291,7 +292,7 @@
<context attribute="Error" lineEndContext="#pop" name="AfterHash">
<!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
- <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
+ <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=(?:\(|\s+)\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" />