summaryrefslogtreecommitdiffstats
path: root/kate/data/mandoc.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-09-19 14:44:45 +0900
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:47 +0100
commita1d50519d7049fc24ca1e376b3de0ae9a2ec50e0 (patch)
tree98a11cb074091f50db1b0b1544719f1bd347c937 /kate/data/mandoc.xml
parent432eec4ef21b0dde249d6363b347d9eab0700599 (diff)
downloadtdelibs-a1d50519d7049fc24ca1e376b3de0ae9a2ec50e0.tar.gz
tdelibs-a1d50519d7049fc24ca1e376b3de0ae9a2ec50e0.zip
Kate syntax highlighting files update - Sep 2014
(cherry picked from commit 87fd132d0145d36d9eae9cdf521935202db228f7)
Diffstat (limited to 'kate/data/mandoc.xml')
-rw-r--r--kate/data/mandoc.xml89
1 files changed, 89 insertions, 0 deletions
diff --git a/kate/data/mandoc.xml b/kate/data/mandoc.xml
new file mode 100644
index 000000000..ba388d05e
--- /dev/null
+++ b/kate/data/mandoc.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="Troff Mandoc" section="Markup" version="0.11" kateversion="2.4" extensions="*.1;*.2;*.3;*.4;*.5;*.6;*.7;*.8;*.1m;*.3x;*.tmac" mimetype="" author="Matthew Woehlke (mw_triad@users.sourceforge.net)" license="GPL">
+
+ <highlighting>
+
+ <list name="headings">
+ <item>SH</item>
+ <item>SS</item>
+ <item>TH</item>
+ </list>
+
+ <list name="paragraph">
+ <item>HP</item>
+ <item>IP</item>
+ <item>LP</item>
+ <item>P</item>
+ <item>PD</item>
+ <item>PP</item>
+ <item>RE</item>
+ <item>RS</item>
+ <item>TP</item>
+ </list>
+
+ <list name="formatting">
+ <item>B</item>
+ <item>BI</item>
+ <item>BR</item>
+ <item>I</item>
+ <item>IB</item>
+ <item>IR</item>
+ <item>RB</item>
+ <item>RI</item>
+ <item>SM</item>
+ <item>SB</item>
+ </list>
+
+ <list name="others">
+ <item>DT</item>
+ </list>
+
+ <contexts>
+
+ <!-- root context -->
+ <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
+ <IncludeRules context="DetectComments##Roff"/>
+ <DetectChar attribute="Macros" context="DetectDirective" char="." column="0"/>
+ <IncludeRules context="DetectOthers##Roff"/>
+ </context>
+
+ <!-- directive start -->
+ <context name="DetectDirective" attribute="Macros" lineEndContext="#pop">
+ <keyword attribute="Headings" context="Directive" String="headings"/>
+ <keyword attribute="Paragraphs" context="Directive" String="paragraph"/>
+ <keyword attribute="Formatting" context="Directive" String="formatting"/>
+ <keyword attribute="Other Macros" context="Directive" String="others"/>
+ <IncludeRules context="DetectDirective##Roff"/>
+ </context>
+
+ <context name="Directive" attribute="Identifier" lineEndContext="#pop">
+ <IncludeRules context="Directive##Roff"/>
+ </context>
+
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Macros" defStyleNum="dsFunction"/>
+ <itemData name="Headings" defStyleNum="dsKeyword"/>
+ <itemData name="Paragraphs" defStyleNum="dsDataType"/>
+ <itemData name="Formatting" defStyleNum="dsKeyword"/>
+ <itemData name="Other Macros" defStyleNum="dsFunction"/>
+ <itemData name="Identifier" defStyleNum="dsString"/>
+ </itemDatas>
+
+ </highlighting>
+
+ <general>
+
+ <comments>
+ <comment name="singleLine" start=".\&quot;" />
+ </comments>
+
+ <keywords casesensitive="1"/>
+
+ </general>
+
+</language>