aports/community/syntax-highlighting5/fix-pcre.patch
ptrcnull bb09fca9ea community/syntax-highlighting5: restore
used by:
- buho
- gammaray
- kommit
- ktexteditor5
- nota
- mauikit-texteditor
- mauikit
- ruqola
- vvave
2024-03-08 02:21:37 +00:00

60 lines
3.9 KiB
Diff

Patch-Source: https://invent.kde.org/frameworks/syntax-highlighting/-/commit/680c90ba438b7df3447222058a541424c9c91dbd
From 680c90ba438b7df3447222058a541424c9c91dbd Mon Sep 17 00:00:00 2001
From: Christoph Cullmann <cullmann@kde.org>
Date: Sun, 3 Mar 2024 18:01:38 +0100
Subject: [PATCH] use (?:sub){0,2} to work with all pcre versions
---
autotests/html/highlight.ly.dark.html | 2 +-
autotests/html/highlight.ly.html | 2 +-
autotests/reference/highlight.ly.ref | 2 +-
data/syntax/lilypond.xml | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/autotests/html/highlight.ly.dark.html b/autotests/html/highlight.ly.dark.html
index 8a84661..d80002d 100644
--- a/autotests/html/highlight.ly.dark.html
+++ b/autotests/html/highlight.ly.dark.html
@@ -17,3 +17,3 @@
<span style="font-weight:bold;">\header {</span>
- title = <span style="color:#f44f4f;">&quot;Katepart Lilypond syntax highlighting test file&quot;</span>
+ <span style="color:#2980b9;">title</span> = <span style="color:#f44f4f;">&quot;Katepart Lilypond syntax highlighting test file&quot;</span>
<span style="color:#2980b9;">composer</span> = <span style="color:#7a7c7d;">%{&quot;Wilbert Berendsen&quot;%}</span> <span style="color:#f44f4f;">&quot;Anonymus&quot;</span>
diff --git a/autotests/html/highlight.ly.html b/autotests/html/highlight.ly.html
index 8bc7146..6aca458 100644
--- a/autotests/html/highlight.ly.html
+++ b/autotests/html/highlight.ly.html
@@ -17,3 +17,3 @@
<span style="font-weight:bold;">\header {</span>
- title = <span style="color:#bf0303;">&quot;Katepart Lilypond syntax highlighting test file&quot;</span>
+ <span style="color:#0057ae;">title</span> = <span style="color:#bf0303;">&quot;Katepart Lilypond syntax highlighting test file&quot;</span>
<span style="color:#0057ae;">composer</span> = <span style="color:#898887;">%{&quot;Wilbert Berendsen&quot;%}</span> <span style="color:#bf0303;">&quot;Anonymus&quot;</span>
diff --git a/autotests/reference/highlight.ly.ref b/autotests/reference/highlight.ly.ref
index f11654d..9b7afdb 100644
--- a/autotests/reference/highlight.ly.ref
+++ b/autotests/reference/highlight.ly.ref
@@ -11,3 +11,3 @@
<Keyword>\header {</Keyword><br/>
-<Normal Text> title = </Normal Text><Quoted Text>"Katepart Lilypond syntax highlighting test file"</Quoted Text><br/>
+<Normal Text> </Normal Text><Variable>title</Variable><Normal Text> = </Normal Text><Quoted Text>"Katepart Lilypond syntax highlighting test file"</Quoted Text><br/>
<Normal Text> </Normal Text><Variable>composer</Variable><Normal Text> = </Normal Text><Comment>%{"Wilbert Berendsen"%}</Comment><Normal Text> </Normal Text><Quoted Text>"Anonymus"</Quoted Text><br/>
diff --git a/data/syntax/lilypond.xml b/data/syntax/lilypond.xml
index 58a4459..1894d40 100644
--- a/data/syntax/lilypond.xml
+++ b/data/syntax/lilypond.xml
@@ -25,3 +25,3 @@
<!ENTITY deprecatedmarkup "bigger|h?center">
- <!ENTITY headervars "dedication|(sub){,2}title|poet|composer|meter|opus|arranger|instrument|piece|breakbefore|copyright|tagline|mutopia(title|composer|poet|opus|instrument)|date|enteredby|source|style|maintainer(Email|Web)?|moreInfo|lastupdated|texidoc|footer">
+ <!ENTITY headervars "dedication|(?:sub){0,2}title|poet|composer|meter|opus|arranger|instrument|piece|breakbefore|copyright|tagline|mutopia(title|composer|poet|opus|instrument)|date|enteredby|source|style|maintainer(Email|Web)?|moreInfo|lastupdated|texidoc|footer">
@@ -58,3 +58,3 @@
style="lilypond" indenter="lilypond"
- version="10" kateversion="5.0"
+ version="11" kateversion="5.0"
extensions="*.ly;*.LY;*.ily;*.ILY;*.lyi;*.LYI"
@@ -1078,3 +1078,3 @@
<keyword String="properties" attribute="Property"/>
- <RegExpr String="\b(&headervars;|&papervars;|&layoutvars;)\b" attribute="Variable"/>
+ <RegExpr String="\b(?:&headervars;|&papervars;|&layoutvars;)\b" attribute="Variable"/>
<keyword String="deprecatedproperties" attribute="Deprecated Property"/>