summaryrefslogtreecommitdiffstats
path: root/kate/data/texinfo.xml
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-02 09:20:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-02 09:20:27 +0000
commitd7b9791584eda0f022813fd2b2df50f59eba29c5 (patch)
tree395d2d48909ce6f9e002106d1638610f7a7c8321 /kate/data/texinfo.xml
parent84bbc54a086fc6894b247488bf62bdff04dd55fa (diff)
downloadtdelibs-d7b9791584eda0f022813fd2b2df50f59eba29c5.tar.gz
tdelibs-d7b9791584eda0f022813fd2b2df50f59eba29c5.zip
Added remaining missing Kate xml files
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1068844 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/data/texinfo.xml')
-rw-r--r--kate/data/texinfo.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/kate/data/texinfo.xml b/kate/data/texinfo.xml
new file mode 100644
index 000000000..d827a7a0f
--- /dev/null
+++ b/kate/data/texinfo.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="Texinfo" extensions="*.texi" section="Markup" mimetype="application/x-texinfo" author="Daniel Franke (franke.daniel@gmail.com)" license="LGPL" version="0.2" kateversion="2.3">
+
+ <highlighting>
+ <!--
+ In TEXINFO, commands start with "@" optionally followed by a
+ command argument embraced by "{}", as in "@item" or "@emph{foo bar}".
+
+ Some special commands embrace a region, e.g. "@menu" and "@end menu",
+ these regions may be fold (beginRegion="foldingRegion").
+
+ Nodes to NOT end with "@end node", but a "@node" ends at the beginning
+ of the next "@node".
+ -->
+ <contexts>
+ <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
+ <RegExpr attribute="Comment" context="singleLineComment" String="@c(omment)?\b" />
+ <RegExpr attribute="Comment" context="multiLineComment" String="@ignore\b" beginRegion="ignore" />
+ <RegExpr attribute="Command" context="nodeFolding" String="@node\b" beginRegion="node" />
+
+ <RegExpr attribute="Command" context="folding" beginRegion="foldingRegion"
+ String="@(menu|smallexample|table|multitable)\b"/>
+
+ <RegExpr attribute="Command" context="#stay" String="@[\w]+(\{([\w]+[\s]*)+\})?" />
+ </context>
+
+ <context name="singleLineComment" attribute="Comment" lineEndContext="#pop">
+ <IncludeRules context="##Alerts" />
+ </context>
+
+ <context name="multiLineComment" attribute="Comment" lineEndContext="#stay">
+ <StringDetect attribute="Comment" context="#pop" String="@end ignore" endRegion="ignore" />
+ <IncludeRules context="##Alerts" />
+ </context>
+
+ <context name="nodeFolding" attribute="Normal Text" lineEndContext="#stay">
+ <RegExpr attribute="Command" context="#pop" String="@node\b" endRegion="node" lookAhead="true" />
+ <IncludeRules context="Normal Text" />
+ </context>
+
+ <context name="folding" attribute="Normal Text" lineEndContext="#stay">
+ <RegExpr attribute="Command" context="#pop" endRegion="foldingRegion"
+ String="@end (menu|smallexample|table|multitable)\b" />
+ <IncludeRules context="Normal Text" />
+ </context>
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal" />
+ <itemData name="Comment" defStyleNum="dsComment" />
+ <itemData name="Command" defStyleNum="dsFunction" />
+ </itemDatas>
+ </highlighting>
+
+ <general>
+ <comments>
+ <comment name="singleLine" start="@comment " />
+ <comment name="multiLine" start="@ignore" end="@end ignore" region="ignore" />
+ </comments>
+ </general>
+
+</language>