diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-09-19 14:44:45 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-09-19 14:44:45 +0900 |
commit | 87fd132d0145d36d9eae9cdf521935202db228f7 (patch) | |
tree | 8e8126d831ffd90f38c34e49cdaec9b134086a8a /kate/data/mandoc.xml | |
parent | 2824570e9e6581acc1b9ed81a8889ff5f58dd383 (diff) | |
download | tdelibs-87fd132d0145d36d9eae9cdf521935202db228f7.tar.gz tdelibs-87fd132d0145d36d9eae9cdf521935202db228f7.zip |
Kate syntax highlighting files update - Sep 2014
Diffstat (limited to 'kate/data/mandoc.xml')
-rw-r--r-- | kate/data/mandoc.xml | 89 |
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=".\"" /> + </comments> + + <keywords casesensitive="1"/> + + </general> + +</language> |