Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/rest.xml
Context not available. | |||||
11 | Copyright 2010 Matt Williams (matt@milliams.com) | 11 | Copyright 2010 Matt Williams (matt@milliams.com) | ||
---|---|---|---|---|---|
12 | Copyright 2014 Matthew Woehlke (mw_triad@users.sourceforge.net) | 12 | Copyright 2014 Matthew Woehlke (mw_triad@users.sourceforge.net) | ||
13 | --> | 13 | --> | ||
14 | <language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="4" kateversion="2.4" casesensitive="1"> | 14 | <language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="5" kateversion="2.4" casesensitive="1"> | ||
15 | 15 | | |||
16 | <highlighting> | 16 | <highlighting> | ||
17 | 17 | | |||
Context not available. | |||||
24 | <RegExpr attribute="Citation" context="#stay" String="^\s*\.\. \[[&SimpleReferenceNameChars;]+\]\s" minimal="true" column="0"/> | 24 | <RegExpr attribute="Citation" context="#stay" String="^\s*\.\. \[[&SimpleReferenceNameChars;]+\]\s" minimal="true" column="0"/> | ||
25 | <RegExpr attribute="HyperlinkTarget" context="#stay" String="^\s*(\.\. (__:|_[&SimpleReferenceNameChars; ]+:(\s|$))|__ )" minimal="true" column="0"/> | 25 | <RegExpr attribute="HyperlinkTarget" context="#stay" String="^\s*(\.\. (__:|_[&SimpleReferenceNameChars; ]+:(\s|$))|__ )" minimal="true" column="0"/> | ||
26 | <StringDetect attribute="Code" String=".. code-block::" context="CodeBlock" firstNonSpace="true"/> | 26 | <StringDetect attribute="Code" String=".. code-block::" context="CodeBlock" firstNonSpace="true"/> | ||
27 | <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. [\w\-_\.]+::(\s|$)" minimal="true" column="0"/> | 27 | <StringDetect attribute="Code" String=".. code::" context="CodeBlock" firstNonSpace="true"/> | ||
28 | <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. ([\w\-_\.]+)(:[\w\-_\.]+)*::(\s|$)" minimal="true" column="0"/> | ||||
28 | <RegExpr attribute="Code" String="::$" context="CodeBlock" /> | 29 | <RegExpr attribute="Code" String="::$" context="CodeBlock" /> | ||
29 | <RegExpr attribute="SubstitutionDefinition" context="#stay" String="^\s*\.\. \|[&SimpleReferenceNameChars; ]+\|\s+[&SimpleReferenceNameChars;]+::\s" minimal="true" column="0"/> | 30 | <RegExpr attribute="SubstitutionDefinition" context="#stay" String="^\s*\.\. \|[&SimpleReferenceNameChars; ]+\|\s+[&SimpleReferenceNameChars;]+::\s" minimal="true" column="0"/> | ||
30 | <RegExpr attribute="Field" String=":(?=([^:]*\\:)*[^:]*:(\s|$))" context="Field" firstNonSpace="true"/> | 31 | <RegExpr attribute="Field" String=":(?=([^:]*\\:)*[^:]*:(\s|$))" context="Field" firstNonSpace="true"/> | ||
31 | <RegExpr attribute="Comment" context="Comment" String="^(\s*)\.\.\s(?![\w\-_\.]+::(\s|$))" column="0"/> | 32 | <RegExpr attribute="Comment" context="Comment" String="^(\s*)\.\.(\s|$)(?!([\w\-_\.]+)(:[\w\-_\.]+)*::(\s|$))" column="0"/> | ||
32 | </context> | 33 | </context> | ||
33 | 34 | | |||
34 | <context name="InlineMarkup" attribute="Normal" lineEndContext="#stay"> | 35 | <context name="InlineMarkup" attribute="Normal" lineEndContext="#stay"> | ||
Context not available. | |||||
37 | <RegExpr attribute="InlineInternalTarget" context="#stay" String="&inlinestart;_`[^\s].*`&inlineend;" minimal="true"/> | 38 | <RegExpr attribute="InlineInternalTarget" context="#stay" String="&inlinestart;_`[^\s].*`&inlineend;" minimal="true"/> | ||
38 | <RegExpr attribute="FootnoteReference" context="#stay" String="&inlinestart;\[[&SimpleReferenceNameChars;]+\]_&inlineend;" minimal="true"/> | 39 | <RegExpr attribute="FootnoteReference" context="#stay" String="&inlinestart;\[[&SimpleReferenceNameChars;]+\]_&inlineend;" minimal="true"/> | ||
39 | <RegExpr attribute="HyperlinkReference" context="#stay" String="&inlinestart;(`[^\s].*`|\w+)_&inlineend;" minimal="true"/> | 40 | <RegExpr attribute="HyperlinkReference" context="#stay" String="&inlinestart;(`[^\s].*`|\w+)_&inlineend;" minimal="true"/> | ||
40 | <RegExpr attribute="InterpretedText" context="TrailingRole" String="&inlinestart;`[^\s].*`(?=:[\w\-_\.\+]+:)" minimal="true"/> | 41 | <RegExpr attribute="InterpretedText" context="TrailingRole" String="&inlinestart;`[^\s].*`(?=:([\w\-_\.\+]+)(:[\w\-_\.\+]+)*:)" minimal="true"/> | ||
41 | <RegExpr attribute="Role" String=":[\w\-_\.\+]+:(?=`)" context="Role"/> | 42 | <RegExpr attribute="Role" String=":([\w\-_\.\+]+)(:[\w\-_\.\+]+)*:(?=`)" context="Role"/> | ||
43 | <RegExpr attribute="DefaultRole" context="#stay" String="&inlinestart;`[^\s].*`&inlineend;" minimal="true"/> | ||||
42 | </context> | 44 | </context> | ||
43 | 45 | | |||
44 | <context name="Field" attribute="Field" lineEndContext="#stay"> | 46 | <context name="Field" attribute="Field" lineEndContext="#stay"> | ||
Context not available. | |||||
92 | <itemData name="Directive" defStyleNum="dsDataType" /> | 94 | <itemData name="Directive" defStyleNum="dsDataType" /> | ||
93 | <itemData name="SubstitutionDefinition" defStyleNum="dsDataType" /> | 95 | <itemData name="SubstitutionDefinition" defStyleNum="dsDataType" /> | ||
94 | <itemData name="Role" defStyleNum="dsKeyword" /> | 96 | <itemData name="Role" defStyleNum="dsKeyword" /> | ||
97 | <itemData name="DefaultRole" defStyleNum="dsDecVal" /> | ||||
95 | <itemData name="Code" defStyleNum="dsDataType" /> | 98 | <itemData name="Code" defStyleNum="dsDataType" /> | ||
96 | <itemData name="Comment" defStyleNum="dsComment" /> | 99 | <itemData name="Comment" defStyleNum="dsComment" /> | ||
97 | </itemDatas> | 100 | </itemDatas> | ||
Context not available. |