summaryrefslogtreecommitdiffstats
path: root/kate/data/mediawiki.xml
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kate/data/mediawiki.xml
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/data/mediawiki.xml')
-rw-r--r--kate/data/mediawiki.xml95
1 files changed, 95 insertions, 0 deletions
diff --git a/kate/data/mediawiki.xml b/kate/data/mediawiki.xml
new file mode 100644
index 000000000..f10fe6586
--- /dev/null
+++ b/kate/data/mediawiki.xml
@@ -0,0 +1,95 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="MediaWiki" section="Markup" version="1.01" kateversion="2.4" extensions="" mimetype="" license="FDL" >
+ <highlighting>
+ <contexts>
+ <context attribute="Normal" lineEndContext="#stay" name="normal" >
+ <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
+ <RegExpr String="([=]{2,2}[^=]+[=]{2,2}|[=]{3,3}[^=]+[=]{3,3}|[=]{4,4}[^=]+[=]{4,4}|[=]{5,5}[^=]+[=]{5,5})" attribute="Section" column="0" />
+ <RegExpr String="[~]{3,4}" attribute="Wiki-Tag" context="#stay" />
+ <RegExpr String="[*#;:\s]*[*#:]+" attribute="Wiki-Tag" context="#stay" column="0" />
+ <RegExpr String="[[](?![[])" attribute="Wiki-Tag" context="URL" />
+ <RegExpr String="(http:|ftp:|mailto:)[\S]*($|[\s])" attribute="URL" context="#stay" />
+ <RegExpr String="[']{2,}" attribute="Wiki-Tag" context="#stay" />
+ <Detect2Chars char="{" char1="|" context="Table" attribute="Wiki-Tag" column="0" beginRegion="table" />
+ <Detect2Chars char="{" char1="{" context="Template" attribute="Wiki-Tag" />
+ <Detect2Chars char="[" char1="[" context="WikiLink" attribute="Wiki-Tag" />
+ <RangeDetect char="&amp;" char1=";" attribute="HTML-Entity" context="#stay" />
+ <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="Wiki-Tag" />
+ <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HTML-Tag" />
+ <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HTML-Tag" context="#stay" />
+ <RegExpr String="[\s]" context="Unformatted" column="0" />
+ </context>
+ <context attribute="Normal" lineEndContext="#stay" name="Table" >
+ <StringDetect String="&lt;!--" context="comment" attribute="Comment" />
+ <RegExpr String="([=]{2,2}[^=]+[=]{2,2}|[=]{3,3}[^=]+[=]{3,3}|[=]{4,4}[^=]+[=]{4,4}|[=]{5,5}[^=]+[=]{5,5})" attribute="Section" context="#stay" column="0" />
+ <RegExpr String="[*#;:\s]*[*#:]+" attribute="Wiki-Tag" context="#stay" column="0" />
+ <RegExpr String="[[](?![[])" context="URL" attribute="Wiki-Tag" />
+ <RegExpr String="(http:|ftp:|mailto:)[\S]*($|[\s])" attribute="URL" context="#stay" />
+ <RegExpr String="[']{2,}" attribute="Wiki-Tag" context="#stay" />
+ <Detect2Chars char="|" char1="}" context="#pop" attribute="Wiki-Tag" column="0" endRegion="table" />
+ <DetectChar char="|" attribute="Wiki-Tag" context="#stay"/>
+ <Detect2Chars char="{" char1="{" context="Template" attribute="Wiki-Tag" />
+ <Detect2Chars char="[" char1="[" context="WikiLink" attribute="Wiki-Tag" />
+ <RangeDetect char="&amp;" char1=";" attribute="HTML-Entity" context="#stay" />
+ <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="Wiki-Tag" />
+ <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HTML-Tag" />
+ <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HTML-Tag" context="#stay" />
+ <RegExpr String="[\s]" context="Unformatted" column="0" />
+ <RegExpr String="[~]{3,4}" attribute="Wiki-Tag" context="#stay" />
+ <RegExpr String="[-]{4,}" attribute="Wiki-Tag" context="#stay" />
+ <DetectChar char="!" attribute="Wiki-Tag" context="#stay" column="0" />
+ </context>
+ <context attribute="Comment" lineEndContext="#stay" name="comment" >
+ <StringDetect String="--&gt;" context="#pop" attribute="Comment" endRegion="comment" />
+ </context>
+ <context attribute="Link" lineEndContext="#stay" name="URL" >
+ <DetectChar char="]" context="#pop" attribute="Wiki-Tag" />
+ <DetectChar char="'" context="Error" attribute="Error" />
+ </context>
+ <context attribute="Link" lineEndContext="#stay" name="WikiLink" >
+ <DetectChar char="|" attribute="Wiki-Tag" context="#stay" />
+ <Detect2Chars char="]" char1="]" context="#pop" attribute="Wiki-Tag" />
+ <DetectChar char="'" context="Error" attribute="Error" />
+ </context>
+ <context attribute="Template" lineEndContext="#stay" name="Link" >
+ <Detect2Chars char="}" char1="}" context="#pop" attribute="Wiki-Tag" />
+ <AnyChar String="'[]" context="Error" attribute="Error" />
+ </context>
+ <context attribute="Error" lineEndContext="#pop" name="Error" />
+ <context attribute="Link" lineEndContext="#stay" name="Template" >
+ <Detect2Chars char="}" char1="}" context="#pop" attribute="Wiki-Tag" />
+ <DetectChar char="'" context="Error" attribute="Error" />
+ </context>
+ <context attribute="NoWiki" lineEndContext="#stay" name="NoWiki" >
+ <RegExpr String="&lt;!--[^-]*--&gt;" attribute="NoWiki" />
+ <StringDetect String="&lt;/nowiki&gt;" context="#pop" attribute="Wiki-Tag" />
+ <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HTML-Tag" context="#stay" />
+ <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HTML-Tag" />
+ </context>
+ <context attribute="Unformatted" lineEndContext="#pop" name="Unformatted" />
+ <context attribute="NoWiki" lineEndContext="#stay" name="Pre" >
+ <StringDetect String="&lt;/pre&gt;" context="#pop" attribute="Wiki-Tag" />
+ </context>
+ </contexts>
+ <itemDatas>
+ <itemData name="Normal" defStyleNum="dsNormal" />
+ <itemData name="Link" defStyleNum="dsOthers" />
+ <itemData name="URL" defStyleNum="dsOthers" />
+ <itemData name="Comment" defStyleNum="dsComment" />
+ <itemData name="Section" defStyleNum="dsKeyword" />
+ <itemData name="HTML-Entity" defStyleNum="dsDecVal" />
+ <itemData name="HTML-Tag" defStyleNum="dsKeyword" />
+ <itemData name="Wiki-Tag" defStyleNum="dsDecVal" bold="true" />
+ <itemData name="Error" defStyleNum="dsError" />
+ <itemData name="NoWiki" defStyleNum="dsNormal" />
+ <itemData name="Unformatted" defStyleNum="dsNormal" />
+ </itemDatas>
+ </highlighting>
+ <general>
+ <comments>
+ <comment end="//-->" start="&lt;!--" name="multiLine" />
+ </comments>
+ <keywords casesensitive="0" />
+ </general>
+</language>