summaryrefslogtreecommitdiffstats
path: root/kate/data/cpp.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2015-07-04 15:26:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2015-07-04 15:29:10 +0900
commit1d878f2ad1f8cff45520814d15fffccdab58ae1e (patch)
tree8ca2e25a72f7275068e1a5c49f5bfdbd3e0fbb39 /kate/data/cpp.xml
parenta3e422826db8d3ec66119b63b3bda029b372baa9 (diff)
downloadtdelibs-1d878f2ad1f8cff45520814d15fffccdab58ae1e.tar.gz
tdelibs-1d878f2ad1f8cff45520814d15fffccdab58ae1e.zip
Fixed C++ support in Kate syntax highlighting code. This resolves bug 2455.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4e55a1cfaa00035481a72f1271aee8954e3053ad)
Diffstat (limited to 'kate/data/cpp.xml')
-rw-r--r--kate/data/cpp.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/kate/data/cpp.xml b/kate/data/cpp.xml
new file mode 100644
index 000000000..1f3bb6a8f
--- /dev/null
+++ b/kate/data/cpp.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd"
+[
+ <!ENTITY space " ">
+ <!ENTITY separators ",&#59;">
+ <!ENTITY ns_punctuators "!&#37;&space;&amp;()+-/.*&lt;=&gt;?[]{|}~^&separators;">
+]>
+
+<language
+ name="C++" section="Sources" version="1.0" kateversion="2.4" indenter="cstyle" style="C++"
+ 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"
+ license="LGPL" priority="1" >
+
+<!--
+ This file is a wrapper from C++ to ISO C++. Its purpose is to provide C++ rules
+ inclusion to existing files that already include the text
+ <IncludeRules context="##C++" />
+-->
+
+<highlighting>
+ <contexts>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
+ <IncludeRules context="##ISO C++" />
+ </context>
+ </contexts>
+</highlighting>
+
+</language>
+
+<!-- kate: indent-width 2; tab-width 2; -->