diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-07-04 15:26:03 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-07-04 15:29:10 +0900 |
commit | 1d878f2ad1f8cff45520814d15fffccdab58ae1e (patch) | |
tree | 8ca2e25a72f7275068e1a5c49f5bfdbd3e0fbb39 /kate/data | |
parent | a3e422826db8d3ec66119b63b3bda029b372baa9 (diff) | |
download | tdelibs-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')
-rw-r--r-- | kate/data/CMakeLists.txt | 2 | ||||
-rw-r--r-- | kate/data/Makefile.am | 4 | ||||
-rw-r--r-- | kate/data/cpp.xml | 31 | ||||
-rw-r--r-- | kate/data/update-files.xml | 1 |
4 files changed, 35 insertions, 3 deletions
diff --git a/kate/data/CMakeLists.txt b/kate/data/CMakeLists.txt index ef8e4963c..9bbfc0889 100644 --- a/kate/data/CMakeLists.txt +++ b/kate/data/CMakeLists.txt @@ -30,7 +30,7 @@ install( FILES asm-dsp56k.xml asm-m68k.xml asn1.xml asp.xml asterisk.xml awk.xml bash.xml bibtex.xml bmethod.xml ccss.xml cgis.xml cg.xml changelog.xml chicken.xml cisco.xml clipper.xml clojure.xml cmake.xml coffee.xml coldfusion.xml - commonlisp.xml component-pascal.xml context.xml crk.xml css.xml + commonlisp.xml component-pascal.xml context.xml cpp.xml crk.xml css.xml cs.xml cue.xml curry.xml c.xml ddoc.xml debianchangelog.xml debiancontrol.xml desktop.xml diff.xml djangotemplate.xml dockerfile.xml dosbat.xml dot.xml doxygenlua.xml doxygen.xml dtd.xml d.xml eiffel.xml email.xml erlang.xml diff --git a/kate/data/Makefile.am b/kate/data/Makefile.am index cb17c0787..cd901fc20 100644 --- a/kate/data/Makefile.am +++ b/kate/data/Makefile.am @@ -18,8 +18,8 @@ syntaxkate_DATA = language.dtd syntax.template \ fsharp.xml fstab.xml ftl.xml gap.xml gcc.xml gdb.xml gdl.xml gettext.xml git-ignore.xml \ git-rebase.xml gitolite.xml glosstex.xml glsl.xml gnuassembler.xml gnuplot.xml go.xml \ grammar.xml hamlet.xml haml.xml haskell.xml haxe.xml html.xml html-php.xml hunspell-aff.xml \ - hunspell-dat.xml hunspell-dic.xml hunspell-idx.xml idconsole.xml idl.xml ilerpg.xml \ - inform.xml ini.xml jam.xml javadoc.xml javascript.xml javascript-php.xml java.xml json.xml \ + hunspell-dat.xml hunspell-dic.xml hunspell-idx.xml idconsole.xml idl.xml ilerpg.xml inform.xml \ + ini.xml isocpp.xml jam.xml javadoc.xml javascript.xml javascript-php.xml java.xml json.xml \ jsp.xml julia.xml j.xml kbasic.xml latex.xml ldif.xml ld.xml less.xml lex.xml lilypond.xml \ literate-curry.xml literate-haskell.xml logtalk.xml lpc.xml lsl.xml lua.xml m3u.xml \ m4.xml mab.xml makefile.xml mako.xml mandoc.xml mason.xml mathematica.xml matlab.xml \ 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 ",;"> + <!ENTITY ns_punctuators "!%&space;&()+-/.*<=>?[]{|}~^&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; --> diff --git a/kate/data/update-files.xml b/kate/data/update-files.xml index 443deddac..b81ed289e 100644 --- a/kate/data/update-files.xml +++ b/kate/data/update-files.xml @@ -38,6 +38,7 @@ <Definition name="Common Lisp" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/commonlisp.xml" version="1.05-1"/> <Definition name="Component-Pascal" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/component-pascal.xml" version="1.05"/> <Definition name="ConTeXt" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/context.xml" version="1.1"/> +<Definition name="C++" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cpp.xml" version="1.0"/> <Definition name="Crack" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/crk.xml" version="1.1"/> <Definition name="CSS/PHP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/css-php.xml" version="2.09"/> <Definition name="CSS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/css.xml" version="2.09"/> |