summaryrefslogtreecommitdiffstats
path: root/kate/data/rest.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-07-28 19:12:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-07-28 19:12:40 +0900
commitaa18c1556b6e122f4b414639cf091e1e3848b974 (patch)
treed6e4f87bbb5fe01930418319e474ba923a750dfa /kate/data/rest.xml
parent1bb6f88d298d1019c0c635dbff197a6a57d16c26 (diff)
downloadtdelibs-aa18c1556b6e122f4b414639cf091e1e3848b974.tar.gz
tdelibs-aa18c1556b6e122f4b414639cf091e1e3848b974.zip
Kate syntax highlighting files update - Jul 2014
Diffstat (limited to 'kate/data/rest.xml')
-rw-r--r--kate/data/rest.xml177
1 files changed, 94 insertions, 83 deletions
diff --git a/kate/data/rest.xml b/kate/data/rest.xml
index 76c476a7a..1c86f0084 100644
--- a/kate/data/rest.xml
+++ b/kate/data/rest.xml
@@ -1,98 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
- <!ENTITY inlinestart "(^|[\s&apos;&quot;\(\[-{&lt;/:‘“’«¡¿‐‑‒–— ])">
- <!ENTITY inlineend "([\s’”»‐‑‒–— &apos;&quot;\)\]}&gt;-/:\.,;!\?\\]|$)">
- <!ENTITY SimpleReferenceNameChars "\w-_\.:\+">
+ <!ENTITY inlinestart "(^|[-\s&apos;&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ])">
+ <!ENTITY inlineend "(?=[-\s’”»‐‑‒–— &apos;&quot;\)\]}&gt;/:\.,;!\?\\]|$)">
+ <!ENTITY SimpleReferenceNameChars "\w_\.:\+-">
]>
-<!-- Copyright Matt Williams <matt@milliams.com> June 2010 -->
-<language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="1.02" kateversion="2.4" casesensitive="1">
-
- <highlighting>
-
- <contexts>
- <context name="Normal" attribute="Normal" lineEndContext="#stay">
- <RegExpr attribute="Bold" context="#stay" String="&inlinestart;\*\*[^\s].*\*\*&inlineend;" minimal="true"/>
- <RegExpr attribute="Italic" context="#stay" String="&inlinestart;\*[^\s].*\*&inlineend;" minimal="true"/>
- <RegExpr attribute="InlineLiteral" context="#stay" String="&inlinestart;``[^\s].*``&inlineend;" minimal="true"/>
- <RegExpr attribute="SubstitutionReference" context="#stay" String="&inlinestart;\|[^\s].*\|&inlineend;" minimal="true"/>
- <RegExpr attribute="InlineInternalTarget" context="#stay" String="&inlinestart;_`[^\s].*`&inlineend;" minimal="true"/>
- <RegExpr attribute="Normal" context="#stay" String="&inlinestart;\[[^\s].*\]&inlineend;" minimal="true"/> <!--This is to stop greedy matching of [foo]-->
- <RegExpr attribute="FootnoteReference" context="#stay" String="&inlinestart;\[[^\s].*\]_&inlineend;" minimal="true"/>
- <RegExpr attribute="HyperlinkRefOrInterpretedText" context="#stay" String="&inlinestart;`[^\s].*(`|`_)&inlineend;" minimal="true"/>
- <RegExpr attribute="HyperlinkReference" context="#stay" String="\w+_(\s|$)" minimal="true"/>
- <RegExpr attribute="Role" String=":[^:]+:" context="Role" />
- <DetectChar attribute="Field" context="Field" firstNonSpace="true" char=":"/>
- <RegExpr attribute="Footnote" context="#stay" String="^\s*\.\. \[(\d+|#|\*|#[&SimpleReferenceNameChars;]+)\]\s" minimal="true" firstNonSpace="true"/>
- <RegExpr attribute="Citation" context="#stay" String="^\s*\.\. \[[&SimpleReferenceNameChars;]+\]\s" minimal="true" firstNonSpace="true"/>
- <RegExpr attribute="HyperlinkTarget" context="#stay" String="^\s*(\.\. (__:|_[&SimpleReferenceNameChars; ]+:(\s|$))|__ )" minimal="true" firstNonSpace="true"/>
- <RegExpr attribute="CMakeCode" String="\s*\.\. code-block::\s*cmake$" context="CMakeCodeBlock" />
- <RegExpr attribute="CppCode" String="\s*\.\. code-block::\s*c\+\+" context="CppCodeBlock" />
- <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. [\w-_\.]+::(\s|$)" minimal="true" firstNonSpace="true"/>
- <RegExpr attribute="Code" String="::$" context="CodeBlock" />
- <RegExpr attribute="SubstitutionDefinition" context="#stay" String="^\s*\.\. \|[&SimpleReferenceNameChars; ]+\|\s+[&SimpleReferenceNameChars;]+::\s" minimal="true" firstNonSpace="true"/>
- </context>
- <context name="Field" attribute="Field" lineEndContext="#stay">
- <DetectChar attribute="Field" context="#pop" char=":"/>
- <Detect2Chars attribute="Field" context="#stay" char="\" char1=":"/>
- </context>
- <context name="HyperlinkRefOrInterpretedText" attribute="HyperlinkRefOrInterpretedText" lineEndContext="#pop">
- <DetectChar attribute="HyperlinkRefOrInterpretedText" char="`" context="#pop" />
+<!--
+ This file is part of KDE's kate project.
+
+ Copyright 2010 Matt Williams (matt@milliams.com)
+ Copyright 2014 Matthew Woehlke (mw_triad@users.sourceforge.net)
+ -->
+<language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="1.4" kateversion="2.4" casesensitive="1">
+
+ <highlighting>
+
+ <contexts>
+ <context name="Normal" attribute="Normal" lineEndContext="#stay">
+ <RegExpr attribute="Bold" context="#stay" String="&inlinestart;\*\*[^\s].*\*\*&inlineend;" minimal="true"/>
+ <RegExpr attribute="Italic" context="#stay" String="&inlinestart;\*[^\s].*\*&inlineend;" minimal="true"/>
+ <IncludeRules context="InlineMarkup"/>
+ <RegExpr attribute="Footnote" context="#stay" String="^\s*\.\. \[(\d+|#|\*|#[&SimpleReferenceNameChars;]+)\]\s" minimal="true" column="0"/>
+ <RegExpr attribute="Citation" context="#stay" String="^\s*\.\. \[[&SimpleReferenceNameChars;]+\]\s" minimal="true" column="0"/>
+ <RegExpr attribute="HyperlinkTarget" context="#stay" String="^\s*(\.\. (__:|_[&SimpleReferenceNameChars; ]+:(\s|$))|__ )" minimal="true" column="0"/>
+ <RegExpr attribute="Code" String="^\s*\.\. code-block::" context="CodeBlock" column="0"/>
+ <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. [\w-_\.]+::(\s|$)" minimal="true" column="0"/>
+ <RegExpr attribute="Code" String="::$" context="CodeBlock" />
+ <RegExpr attribute="SubstitutionDefinition" context="#stay" String="^\s*\.\. \|[&SimpleReferenceNameChars; ]+\|\s+[&SimpleReferenceNameChars;]+::\s" minimal="true" column="0"/>
+ <RegExpr attribute="Field" String=":(?=([^:]*\\:)*[^:]*:(\s|$))" context="Field" firstNonSpace="true"/>
+ <RegExpr attribute="Comment" context="Comment" String="^(\s*)\.\.\s(?![\w-_\.]+::(\s|$))" column="0"/>
+ </context>
+
+ <context name="InlineMarkup" attribute="Normal" lineEndContext="#stay">
+ <RegExpr attribute="InlineLiteral" context="#stay" String="&inlinestart;``[^\s].*``&inlineend;" minimal="true"/>
+ <RegExpr attribute="SubstitutionReference" context="#stay" String="&inlinestart;\|[^\s].*\|&inlineend;" minimal="true"/>
+ <RegExpr attribute="InlineInternalTarget" context="#stay" String="&inlinestart;_`[^\s].*`&inlineend;" minimal="true"/>
+ <RegExpr attribute="FootnoteReference" context="#stay" String="&inlinestart;\[[&SimpleReferenceNameChars;]+\]_&inlineend;" minimal="true"/>
+ <RegExpr attribute="HyperlinkReference" context="#stay" String="&inlinestart;`[^\s].*`_&inlineend;" minimal="true"/>
+ <RegExpr attribute="HyperlinkReference" context="#stay" String="&inlinestart;\w+_&inlineend;" minimal="true"/>
+ <RegExpr attribute="InterpretedText" context="TrailingRole" String="&inlinestart;`[^\s].*`(?=:[\w-_\.\+]+:)" minimal="true"/>
+ <RegExpr attribute="Role" String=":[\w-_\.\+]+:(?=`)" context="Role"/>
+ </context>
+
+ <context name="Field" attribute="Field" lineEndContext="#stay">
+ <DetectChar attribute="Field" context="#pop" char=":"/>
+ <Detect2Chars attribute="Field" context="#stay" char="\" char1=":"/>
+ <RegExpr attribute="FieldBold" context="#stay" String="&inlinestart;\*\*[^\s].*\*\*&inlineend;" minimal="true"/>
+ <RegExpr attribute="FieldItalic" context="#stay" String="&inlinestart;\*[^\s].*\*&inlineend;" minimal="true"/>
+ <IncludeRules context="InlineMarkup"/>
+ </context>
+ <context name="InterpretedText" attribute="InterpretedText" lineEndContext="#pop">
+ <DetectChar attribute="InterpretedText" char="`" context="#pop" />
</context>
<context name="Role" attribute="Role" lineEndContext="#pop">
- <RegExpr attribute="Keyword" String="\w+" context="#stay" />
- <DetectChar attribute="HyperlinkRefOrInterpretedText" char="`" context="#pop!HyperlinkRefOrInterpretedText" />
+ <DetectChar attribute="InterpretedText" char="`" context="#pop!InterpretedText" />
</context>
- <context name="CMakeCodeBlock" attribute="CMakeCode" lineEndContext="#stay">
- <RegExpr attribute="CMakeCode" String="^\s" context="CMakeCode" />
+ <context name="TrailingRole" attribute="Role" lineEndContext="#pop">
+ <RegExpr attribute="Role" String=":[\w-_\.\+]+:" context="#pop"/>
</context>
- <context name="CppCodeBlock" attribute="CppCode" lineEndContext="#stay">
- <RegExpr attribute="CppCode" String="^\s" context="CppCode" />
+ <context name="Comment" attribute="Comment" lineEndContext="#stay" dynamic="true">
+ <RegExpr attribute="Code" String="^%1 " context="#stay" column="0" dynamic="true"/>
+ <RegExpr attribute="Normal" String="^(.|$)" lookAhead="true" column="0" context="#pop"/>
+ <IncludeRules context="##Alerts"/>
</context>
+
<context name="CodeBlock" attribute="Code" lineEndContext="#stay">
- <RegExpr attribute="Code" String="^\s" context="Code" />
+ <RegExpr attribute="Code" String="^(\s+)(?=\S)" context="Code" column="0"/>
</context>
- <context name="CMakeCode" attribute="CMakeCode" lineEndContext="#stay">
- <RegExpr attribute="Normal" String="^\S" lookAhead="true" context="#pop#pop" />
- <IncludeRules context="##CMake" includeAttrib="true"/>
- </context>
- <context name="CppCode" attribute="CppCode" lineEndContext="#stay">
- <RegExpr attribute="Normal" String="^\S" lookAhead="true" context="#pop#pop" />
- <IncludeRules context="##C++" includeAttrib="true"/>
+ <context name="Code" attribute="Code" lineEndContext="#stay" dynamic="true">
+ <RegExpr attribute="Code" String="^%1" context="#stay" column="0" dynamic="true"/>
+ <RegExpr attribute="Normal" String="^(.|$)" lookAhead="true" context="#pop#pop" column="0"/>
</context>
- <context name="Code" attribute="Code" lineEndContext="#stay">
- <RegExpr attribute="Normal" String="^\S" lookAhead="true" context="#pop#pop" />
- </context>
- </contexts>
-
- <itemDatas>
- <itemData name="Normal" defStyleNum="dsNormal" />
- <itemData name="Bold" defStyleNum="dsNormal" bold="1" />
- <itemData name="Italic" defStyleNum="dsNormal" italic="1" />
- <itemData name="InlineLiteral" defStyleNum="dsDataType" />
- <itemData name="SubstitutionReference" defStyleNum="dsFunction" />
- <itemData name="InlineInternalTarget" defStyleNum="dsFunction" />
- <itemData name="FootnoteReference" defStyleNum="dsOthers" />
- <itemData name="HyperlinkRefOrInterpretedText" defStyleNum="dsOthers" />
- <itemData name="HyperlinkReference" defStyleNum="dsOthers" />
- <itemData name="Monospaced" defStyleNum="dsNormal" color="#006600" />
- <itemData name="Field" defStyleNum="dsFunction" />
- <itemData name="Footnote" defStyleNum="dsDataType" />
- <itemData name="Citation" defStyleNum="dsDataType" />
- <itemData name="HyperlinkTarget" defStyleNum="dsDataType" />
- <itemData name="Directive" defStyleNum="dsDataType" />
- <itemData name="SubstitutionDefinition" defStyleNum="dsDataType" />
- <itemData name="Role" defStyleNum="dsNormal" bold="1" />
- <itemData name="CMakeCode" defStyleNum="dsDataType" />
- <itemData name="CppCode" defStyleNum="dsDataType" />
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal" defStyleNum="dsNormal" />
+ <itemData name="Bold" defStyleNum="dsNormal" bold="1" />
+ <itemData name="Italic" defStyleNum="dsNormal" italic="1" />
+ <itemData name="InlineLiteral" defStyleNum="dsDataType" />
+ <itemData name="SubstitutionReference" defStyleNum="dsFunction" />
+ <itemData name="InlineInternalTarget" defStyleNum="dsFunction" />
+ <itemData name="FootnoteReference" defStyleNum="dsOthers" />
+ <itemData name="InterpretedText" defStyleNum="dsDecVal" />
+ <itemData name="HyperlinkReference" defStyleNum="dsOthers" />
+ <itemData name="Field" defStyleNum="dsFunction" />
+ <itemData name="FieldBold" defStyleNum="dsFunction" bold="1" />
+ <itemData name="FieldItalic" defStyleNum="dsFunction" italic="1" />
+ <itemData name="Footnote" defStyleNum="dsDataType" />
+ <itemData name="Citation" defStyleNum="dsDataType" />
+ <itemData name="HyperlinkTarget" defStyleNum="dsDataType" />
+ <itemData name="Directive" defStyleNum="dsDataType" />
+ <itemData name="SubstitutionDefinition" defStyleNum="dsDataType" />
+ <itemData name="Role" defStyleNum="dsKeyword" />
<itemData name="Code" defStyleNum="dsDataType" />
- </itemDatas>
-
- </highlighting>
-
- <general>
- <folding indentationsensitive="true" />
- </general>
-
+ <itemData name="Comment" defStyleNum="dsComment" />
+ </itemDatas>
+
+ </highlighting>
+
+ <general>
+ <folding indentationsensitive="true" />
+ <comments>
+ <comment name="singleLine" start=".."/>
+ </comments>
+ </general>
+
</language>