From bf5e888dc8750035086b4e51358335f1d4ade924 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Thu, 14 Jan 2021 02:21:10 +0100 Subject: kde-frameworks/syntax-highlighting: Fix another bash/zsh syntax bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See also: https://invent.kde.org/frameworks/syntax-highlighting/-/issues/5 Reported-by: Toralf Förster Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner --- .../syntax-highlighting-5.77.0-bash-zsh-fix.patch | 122 +++++++++++++++++++++ ...ntax-highlighting-5.77.0-bash-zsh-version.patch | 39 +++++++ .../syntax-highlighting-5.77.0-r2.ebuild | 37 +++++++ .../syntax-highlighting-5.78.0-r1.ebuild | 33 ++++++ 4 files changed, 231 insertions(+) create mode 100644 kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bash-zsh-fix.patch create mode 100644 kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bash-zsh-version.patch create mode 100644 kde-frameworks/syntax-highlighting/syntax-highlighting-5.77.0-r2.ebuild create mode 100644 kde-frameworks/syntax-highlighting/syntax-highlighting-5.78.0-r1.ebuild (limited to 'kde-frameworks/syntax-highlighting') diff --git a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bash-zsh-fix.patch b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bash-zsh-fix.patch new file mode 100644 index 000000000000..2ec92edb9c8f --- /dev/null +++ b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bash-zsh-fix.patch @@ -0,0 +1,122 @@ +From ba9b3c5e0ed2fb33b9a896ec910590410978befe Mon Sep 17 00:00:00 2001 +From: Jonathan Poelen +Date: Mon, 11 Jan 2021 01:29:01 +0100 +Subject: [PATCH] Bash: fix #5: $ at the end of a double quoted string + +--- + autotests/folding/highlight.sh.fold | 1 + + autotests/html/highlight.sh.dark.html | 1 + + autotests/html/highlight.sh.html | 1 + + autotests/input/highlight.sh | 1 + + autotests/reference/highlight.sh.ref | 1 + + data/syntax/bash.xml | 5 +++-- + data/syntax/zsh.xml | 3 +-- + 7 files changed, 9 insertions(+), 4 deletions(-) + +diff --git a/autotests/folding/highlight.sh.fold b/autotests/folding/highlight.sh.fold +index 652fef8f..d7a6b210 100644 +--- a/autotests/folding/highlight.sh.fold ++++ b/autotests/folding/highlight.sh.fold +@@ -16,6 +16,7 @@ echo 'single quoted string' + echo "double quoted string" + echo $'string with esc\apes\x0din it' + echo $"string meant to be translated" ++echo "$" + + + # comments: +diff --git a/autotests/html/highlight.sh.dark.html b/autotests/html/highlight.sh.dark.html +index d1d4fb8a..8cbd0929 100644 +--- a/autotests/html/highlight.sh.dark.html ++++ b/autotests/html/highlight.sh.dark.html +@@ -22,6 +22,7 @@ + echo "double quoted string" + echo $'string with esc\apes\x0din it' + echo $"string meant to be translated" ++echo "$" + + + # comments: +diff --git a/autotests/html/highlight.sh.html b/autotests/html/highlight.sh.html +index 5d687d86..d176b1cb 100644 +--- a/autotests/html/highlight.sh.html ++++ b/autotests/html/highlight.sh.html +@@ -22,6 +22,7 @@ + echo "double quoted string" + echo $'string with esc\apes\x0din it' + echo $"string meant to be translated" ++echo "$" + + + # comments: +diff --git a/autotests/input/highlight.sh b/autotests/input/highlight.sh +index 177e104f..5c2ae7b1 100644 +--- a/autotests/input/highlight.sh ++++ b/autotests/input/highlight.sh +@@ -16,6 +16,7 @@ echo 'single quoted string' + echo "double quoted string" + echo $'string with esc\apes\x0din it' + echo $"string meant to be translated" ++echo "$" + + + # comments: +diff --git a/autotests/reference/highlight.sh.ref b/autotests/reference/highlight.sh.ref +index 181c36af..edaf18ab 100644 +--- a/autotests/reference/highlight.sh.ref ++++ b/autotests/reference/highlight.sh.ref +@@ -16,6 +16,7 @@ + echo "double quoted string"
+ echo $'string with esc\apes\x0din it'
+ echo $"string meant to be translated"
++echo "$"
+
+
+ # comments:
+diff --git a/data/syntax/bash.xml b/data/syntax/bash.xml +index 3171247b..3b804f90 100644 +--- a/data/syntax/bash.xml ++++ b/data/syntax/bash.xml +@@ -30,7 +30,7 @@ + + ]> + +- ++ + +