pmaports/kde/syntax-highlighting/remove-broken-regex.patch
PureTryOut 689b8e4fec Added all missing makedepends, and removed some optional dependencies (#398)
* Added all missing makedepends, and removed some optional dependencies
* Made dbus-nox11-libs properly replace dbus-x11
* Add missing breeze-dev subpackage
2017-08-17 16:19:36 +00:00

35 lines
2.6 KiB
Diff

diff --git a/data/syntax/rest.xml b/data/syntax/rest.xml
index 1363965..f0f65a6 100644
--- a/data/syntax/rest.xml
+++ b/data/syntax/rest.xml
@@ -24,11 +24,9 @@
<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">
@@ -38,8 +36,6 @@
<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">
@@ -55,9 +51,6 @@
<context name="Role" attribute="Role" lineEndContext="#pop">
<DetectChar attribute="InterpretedText" char="`" context="#pop!InterpretedText" />
</context>
- <context name="TrailingRole" attribute="Role" lineEndContext="#pop">
- <RegExpr attribute="Role" String=":[\w-_\.\+]+:" context="#pop"/>
- </context>
<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"/>