Commit bb4191fc authored by Dominik Haumann's avatar Dominik Haumann

fix: Highlighting for PPD doesn’t catch well multiline values

Thanks to Lukas Sommer for the patch!
BUG: 341944
parent ff4fb760
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd" []>
......@@ -9,7 +9,7 @@ The following documentation is available for PPD:
- CUPS PPD Extensions: http://www.cups.org/documentation.php/doc-1.4/spec-ppd.html
-->
<language name="PostScript Printer Description" version="0.1" kateversion="2.4" section="Markup" extensions="*.ppd" author="Lukas Sommer" mimetype="application/vnd.cups-ppd" license="public domain">
<language name="PostScript Printer Description" version="0.2" kateversion="2.4" section="Markup" extensions="*.ppd" author="Lukas Sommer" mimetype="application/vnd.cups-ppd" license="public domain">
<highlighting>
......@@ -26,7 +26,17 @@ The following documentation is available for PPD:
<context attribute="Comment" lineEndContext="#pop" name="contextComment">
<IncludeRules context="##Alerts"/>
</context>
<context attribute="Value" lineEndContext="#pop" name="contextValue"></context>
<context attribute="Value" lineEndContext="#pop" name="contextValue">
<DetectSpaces/>
<DetectChar attribute="Value" context="contextValueMultiLine" char="&quot;" />
<RegExpr attribute="Value" context="contextValueSingleLine" String="."/>
</context>
<context attribute="Value" lineEndContext="#stay" name="contextValueMultiLine">
<DetectSpaces/>
<DetectChar attribute="Value" context="#pop" char="&quot;" />
</context>
<context attribute="Value" lineEndContext="#pop" name="contextValueSingleLine">
</context>
</contexts>
<itemDatas>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment