diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-01-09 00:24:34 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-23 02:22:36 +0100 |
commit | 5529b46d246d14c973bc13fe30b414b9bec7f7c0 (patch) | |
tree | 2503f2ed35d65e6bbb2b4ab1b280b0c7ce6a0ca1 /kate/data/c.xml | |
parent | a929e576b23f51fef432252e0b70a24fd00b1ee6 (diff) | |
download | tdelibs-5529b46d246d14c973bc13fe30b414b9bec7f7c0.tar.gz tdelibs-5529b46d246d14c973bc13fe30b414b9bec7f7c0.zip |
Update kate syntax highlight files
(cherry picked from commit bf4e405e03859bf383f55715944f4f71bd338c34)
Diffstat (limited to 'kate/data/c.xml')
-rw-r--r-- | kate/data/c.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kate/data/c.xml b/kate/data/c.xml index 0389f7849..618260825 100644 --- a/kate/data/c.xml +++ b/kate/data/c.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd"> <language name="C" section="Sources" - version="1.44" kateversion="2.4" + version="1.46" kateversion="2.5" indenter="cstyle" extensions="*.c;*.C;*.h" mimetype="text/x-csrc;text/x-c++src;text/x-chdr" @@ -123,6 +123,11 @@ <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" /> + + <!-- folding for apple style #pragma mark - label --> + <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*pragma\s+mark\s+-\s*$" insensitive="true" firstNonSpace="true" endRegion="pragma_mark" /> + <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*pragma\s+mark" insensitive="true" firstNonSpace="true" endRegion="pragma_mark" beginRegion="pragma_mark" /> + <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" /> <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s+[0-9]+" insensitive="true" firstNonSpace="true" /> </context> @@ -133,6 +138,7 @@ <RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/> <IncludeRules context="##Doxygen" /> <Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" /> + <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/" /> </context> <context attribute="Preprocessor" lineEndContext="#pop" name="Define"> |