Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/mediawiki.xml
1 | <?xml version = '1.0' encoding = 'UTF-8'?> | 1 | <?xml version = '1.0' encoding = 'UTF-8'?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd" [ | 2 | <!DOCTYPE language SYSTEM "language.dtd" [ | ||
3 | <!ENTITY url "(http:|https:|ftp:|mailto:)[^]| ]*(?=$|[]|\s])"> | 3 | <!ENTITY url "(http:|https:|ftp:|mailto:)[^]| ]*(?=$|[]|\s])"> | ||
4 | <!ENTITY htmlTagName "(?![0-9])[\w_:][\w.:_-]*"> | 4 | <!ENTITY htmlTagName "(?![0-9])[\w_:][\w.:_-]*"> | ||
5 | <!ENTITY htmlEntity "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&htmlTagName;);"> | 5 | <!ENTITY htmlEntity "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&htmlTagName;);"> | ||
6 | <!ENTITY wikiLinkWithDescription "\[\[[^]|]*\|[^]]*\]\]"> | 6 | <!ENTITY wikiLinkWithDescription "\[\[[^]|]*\|[^]]*\]\]"> | ||
7 | <!ENTITY wikiLinkWithoutDescription "\[\[[^]|]*\]\]"> | 7 | <!ENTITY wikiLinkWithoutDescription "\[\[[^]|]*\]\]"> | ||
8 | ]> | 8 | ]> | ||
9 | <language name="MediaWiki" section="Markup" version="5" kateversion="3.4" extensions="*.mediawiki" mimetype="" license="FDL" > | 9 | <language name="MediaWiki" section="Markup" version="6" kateversion="5.0" extensions="*.mediawiki" mimetype="" license="FDL" > | ||
10 | <highlighting> | 10 | <highlighting> | ||
11 | <contexts> | 11 | <contexts> | ||
12 | <context attribute="Normal" lineEndContext="#stay" name="normal" > | 12 | <context attribute="Normal" lineEndContext="#stay" name="normal" > | ||
13 | <StringDetect String="<!--" context="comment" attribute="Comment" beginRegion="comment" /> | 13 | <StringDetect String="<!--" context="comment" attribute="Comment" beginRegion="comment" /> | ||
14 | <RegExpr String="[=]{5,5}(?!=)" context="Section5" attribute="Section" column="0" /> | 14 | <RegExpr String="[=]{5,5}(?!=)" context="Section5" attribute="Section" column="0" /> | ||
15 | <RegExpr String="[=]{4,4}(?!=)" context="Section4" attribute="Section" column="0" /> | 15 | <RegExpr String="[=]{4,4}(?!=)" context="Section4" attribute="Section" column="0" /> | ||
16 | <RegExpr String="[=]{3,3}(?!=)" context="Section3" attribute="Section" column="0" /> | 16 | <RegExpr String="[=]{3,3}(?!=)" context="Section3" attribute="Section" column="0" /> | ||
17 | <RegExpr String="[=]{2,2}(?!=)" context="Section2" attribute="Section" column="0" /> | 17 | <RegExpr String="[=]{2,2}(?!=)" context="Section2" attribute="Section" column="0" /> | ||
▲ Show 20 Lines • Show All 605 Lines • Show Last 20 Lines |