diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-12-12 14:58:22 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-12-12 18:56:48 +0100 |
commit | 59ba73c7804bafa26df2c98093d0e323767f7055 (patch) | |
tree | a36781de3a8fb99d1ebd7251ec778334fc49772e /kde-frameworks/syntax-highlighting | |
parent | kde-frameworks/sonnet: 5.77.0 version bump (diff) | |
download | gentoo-59ba73c7804bafa26df2c98093d0e323767f7055.tar.gz gentoo-59ba73c7804bafa26df2c98093d0e323767f7055.tar.bz2 gentoo-59ba73c7804bafa26df2c98093d0e323767f7055.zip |
kde-frameworks/syntax-highlighting: 5.77.0 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/syntax-highlighting')
4 files changed, 260 insertions, 0 deletions
diff --git a/kde-frameworks/syntax-highlighting/Manifest b/kde-frameworks/syntax-highlighting/Manifest index c2c5724ba101..d619070d26cb 100644 --- a/kde-frameworks/syntax-highlighting/Manifest +++ b/kde-frameworks/syntax-highlighting/Manifest @@ -1,2 +1,3 @@ DIST syntax-highlighting-5.74.0.tar.xz 2028848 BLAKE2B b4641cd116b851564650a59a1354590b1fcca551a28fd0ea4034b5c95369a39084d0de83370416f10e2f4e51f724ab4bce5f22e97259013358aab54b980ca5b1 SHA512 6dfc9540ca4ec2c76c9b96a864a24bba6923529d72605dcd36136809250be12c366f52bf3dda02564169744729172eec2f0d3f69137d374d81af826ec97bc3b7 DIST syntax-highlighting-5.76.0.tar.xz 2124128 BLAKE2B 4617a01022175da1952e1dacede7f1abcc0c1e049d666bff64fb7a100281b7cb8f7eb147589ddc25db2558c0c1d2e0ed5da30800dd889ba1b7f058b424114890 SHA512 7098d82110e8e355198fdce9081c8a1aadc322b2e0fd168585b1cca6535666c96cf1f52b894ac99fb051a8ee0a690d8ddd5c91ed0648057c63447ac10d0e8c59 +DIST syntax-highlighting-5.77.0.tar.xz 2145120 BLAKE2B de91836509fd6264fe0b79f1a7153c4d581913870ec207bd4d69ce24c5d00d92e49ebc70d147715a732626805cf68045be6490ff6ae7e199454c53a4c82ec2dd SHA512 057e9be24608cd856ee8aea355ddc63da9a11d50c388ae303e1f34cdf3a7ac99c592de51e0f04fa2254246ad796ced5029117b22ca71420b6089139d827a31b9 diff --git a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bashfix-1.patch b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bashfix-1.patch new file mode 100644 index 000000000000..d9e71832c878 --- /dev/null +++ b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bashfix-1.patch @@ -0,0 +1,174 @@ +From f6607c869cf0f5113d657f713fc35fd66a13b8f1 Mon Sep 17 00:00:00 2001 +From: Jonathan Poelen <jonathan.poelen@gmail.com> +Date: Sun, 6 Dec 2020 16:25:16 +0000 +Subject: [PATCH] Bash: add (...), ||, && in [[ ... ]] ; add backquote in [ ... + ] and [[ ... ]] + +--- + data/syntax/bash.xml | 72 ++++++++++++++++++--------- + 6 files changed, 84 insertions(+), 23 deletions(-) + +diff --git a/data/syntax/bash.xml b/data/syntax/bash.xml +index f76b008c..3b8824df 100644 +--- a/data/syntax/bash.xml ++++ b/data/syntax/bash.xml +@@ -28,7 +28,7 @@ + <!ENTITY heredocq "(?|"([^"]+)"|'([^']+)'|\\(.[^&wordseps;&substseps;]*))"> + ]> + +-<language name="Bash" version="15" kateversion="5.62" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> ++<language name="Bash" version="16" kateversion="5.62" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> + + <!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl) + Changes by Matthew Woehlke (mw_triad@users.sourceforge.net) +@@ -495,7 +495,7 @@ + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="MaybeBracketExpression" fallthroughContext="#pop!Command"> + <!-- start expression in double brackets --> +- <RegExpr attribute="Keyword" context="ExprDblBracket" String="\[\[&eos;" beginRegion="expression"/> ++ <RegExpr attribute="Keyword" context="ExprDblBracket" String="\[\[(?=$|[ &tab;(])" beginRegion="expression"/> + <!-- start expression in single brackets --> + <RegExpr attribute="Builtin" context="ExprBracket" String="\[&eos;" beginRegion="expression"/> + </context> +@@ -642,6 +642,9 @@ + <IncludeRules context="FindWord"/> + <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> + <IncludeRules context="FindPathThenPop"/> ++ <IncludeRules context="FindNormalTextOption"/> ++ </context> ++ <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalTextOption"> + <RegExpr attribute="Normal Text" context="#stay" String="[^&wordseps;&substseps;]+"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="OptionMaybeBraceExpansion"> +@@ -1146,33 +1149,40 @@ + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketNot" fallthroughContext="#pop!ExprBracketParam1"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam1"/> +- <DetectChar context="ExprBracketTestMaybeNot" char="!" lookAhead="1"/> ++ <Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1=" " lookAhead="1"/> ++ <Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1="&tab;" lookAhead="1"/> + </context> +- <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketTestMaybeNot" fallthroughContext="#pop#pop!ExprBracketParam1"> +- <RegExpr attribute="Expression" context="#pop" String="!(?=[ &tab;])"/> ++ <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketTestMaybeNot"> ++ <DetectChar attribute="Expression" context="#pop" char="!"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam1" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam1" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam2"/> + <DetectChar context="TestMaybeUnary" char="-" lookAhead="1"/> + <IncludeRules context="FindExprBracketEnd"/> ++ </context> ++ ++ <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketValue"> + <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> ++ <AnyChar context="#pop" String=" &tab;" lookAhead="1"/> ++ <IncludeRules context="FindWord"/> ++ <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> ++ <IncludeRules context="FindPathThenPop"/> ++ <IncludeRules context="FindNormalTextOption"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam2" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam2" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam3"/> + <AnyChar context="TestMaybeBinary" String="-=!" lookAhead="1"/> + <IncludeRules context="FindExprBracketEnd"/> +- <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> + </context> + +- <context attribute="Normal Text" lineEndContext="ExprBracketFinal" name="ExprBracketParam3" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="ExprBracketFinal" name="ExprBracketParam3" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketFinal"/> + <IncludeRules context="FindExprBracketEnd"/> +- <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketFinal" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketFinal" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <IncludeRules context="FindExprBracketEnd"/> + <RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\][^ &tab;])++" endRegion="expression"/> +@@ -1183,10 +1193,10 @@ + <RegExpr attribute="Builtin" context="#pop" String="\](?=($|[ &tab;;|&<>]))" endRegion="expression"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary" fallthroughContext="#pop!NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary" fallthroughContext="#pop!ExprBracketValue"> + <RegExpr attribute="Expression" context="#pop" String="-[abcdefghkprstuwxGLNOSovRnz](?=[ &tab;])"/> + </context> +- <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary" fallthroughContext="#pop!NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary" fallthroughContext="#pop!ExprBracketValue"> + <RegExpr attribute="Expression" context="#pop" String="(?:-(?:e[fq]|[nolg]t|[nlg]e)|==?|!=)(?=[ &tab;])"/> + </context> + +@@ -1202,40 +1212,56 @@ + <DetectChar context="ExprDblBracketTestMaybeNot" char="!" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketTestMaybeNot" fallthroughContext="#pop#pop!ExprDblBracketParam1"> +- <IncludeRules context="ExprBracketTestMaybeNot"/> ++ <RegExpr attribute="Expression" context="#pop" String="!(?=$|[ &tab;(])"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam1" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam1" fallthroughContext="ExprDblBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam2"/> + <DetectChar context="TestMaybeUnary" char="-" lookAhead="1"/> + <AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="<>"/> + <IncludeRules context="FindExprDblBracketEnd"/> +- <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam2" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValue"> ++ <Detect2Chars attribute="Keyword" context="ExprDblParen" char="(" char1="(" beginRegion="expression"/> ++ <DetectChar context="ExprDblBracketSubValue" char="(" lookAhead="1"/> ++ <DetectChar attribute="Operator" context="#pop#pop" char=")"/> ++ <Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="&" char1="&"/> ++ <Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="|" char1="|"/> ++ <AnyChar attribute="Error" context="#stay" String="|&;)"/> ++ <AnyChar context="#pop" String=" &tab;<>" lookAhead="1"/> ++ <IncludeRules context="FindWord"/> ++ <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> ++ <IncludeRules context="FindPathThenPop"/> ++ <IncludeRules context="FindNormalTextOption"/> ++ </context> ++ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketSubValue" fallthroughContext="#pop"> ++ <DetectChar attribute="Operator" context="ExprDblBracketNot" char="("/> ++ <Detect2Chars context="#pop#pop" char="]" char1="]" lookAhead="1"/> ++ </context> ++ ++ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam2" fallthroughContext="ExprDblBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/> + <AnyChar context="TestMaybeBinary2" String="-=!" lookAhead="1"/> + <AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="<>"/> + <IncludeRules context="FindExprDblBracketEnd"/> +- <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> + </context> +- <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary2" fallthroughContext="#pop!NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary2" fallthroughContext="#pop!ExprDblBracketValue"> + <IncludeRules context="TestMaybeBinary"/> +- <RegExpr attribute="Expression" context="#pop#pop!ExprDblBracketRegex" String="=~(?=[ &tab;])"/> ++ <RegExpr attribute="Expression" context="#pop#pop!ExprDblBracketRegex" String="=~(?=[ &tab;(])"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3Spe" fallthroughContext="#pop!ExprDblBracketParam3"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/> + </context> + +- <context attribute="Normal Text" lineEndContext="ExprDblBracketFinal" name="ExprDblBracketParam3" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="ExprDblBracketFinal" name="ExprDblBracketParam3" fallthroughContext="ExprDblBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/> + <IncludeRules context="FindExprDblBracketEnd"/> +- <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> ++ <AnyChar attribute="Error" context="#stay" String="<>"/> + </context> + +- <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketFinal" fallthroughContext="NormalOption"> ++ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketFinal" fallthroughContext="ExprDblBracketValue"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <IncludeRules context="FindExprDblBracketEnd"/> + <RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\](?:[^]]|\][^ &tab;]))++" endRegion="expression"/> +-- +GitLab diff --git a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bashfix-2.patch b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bashfix-2.patch new file mode 100644 index 000000000000..3ff4bdc01315 --- /dev/null +++ b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.77.0-bashfix-2.patch @@ -0,0 +1,54 @@ +From b232881ed1ecc010b8a13c6aa295bbdddc87c70b Mon Sep 17 00:00:00 2001 +From: Jonathan Poelen <jonathan.poelen@gmail.com> +Date: Thu, 10 Dec 2020 02:11:29 +0100 +Subject: [PATCH] fix && and || in a subcontext and fix function name pattern + +--- + data/syntax/bash.xml | 10 ++++++---- + 6 files changed, 46 insertions(+), 4 deletions(-) + +diff --git a/data/syntax/bash.xml b/data/syntax/bash.xml +index 3b8824df..70cee765 100644 +--- a/data/syntax/bash.xml ++++ b/data/syntax/bash.xml +@@ -2,7 +2,7 @@ + <!DOCTYPE language SYSTEM "language.dtd" + [ + <!ENTITY tab "	"> +- <!ENTITY funcname "[A-Za-z_:][A-Za-z0-9_:#%@-]*"> ++ <!ENTITY funcname "([^&_fragpathseps;{}=#$]|[+!@](?!\())([^&_fragpathseps;{}=$]*+([+!@](?!\())?+)*+"> + <!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*"> + <!ENTITY eos "(?=$|[ &tab;])"> <!-- eol or space following --> + <!ENTITY eoexpr "(?=$|[ &tab;<>|&;])"> +@@ -28,7 +28,7 @@ + <!ENTITY heredocq "(?|"([^"]+)"|'([^']+)'|\\(.[^&wordseps;&substseps;]*))"> + ]> + +-<language name="Bash" version="16" kateversion="5.62" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> ++<language name="Bash" version="17" kateversion="5.62" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> + + <!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl) + Changes by Matthew Woehlke (mw_triad@users.sourceforge.net) +@@ -471,8 +471,8 @@ + <Detect2Chars attribute="Redirection" context="FdRedirection" char="&" char1=">"/> + + <!-- handle branche conditions --> +- <Detect2Chars attribute="Control" context="#pop" char="&" char1="&"/> +- <Detect2Chars attribute="Control" context="#pop" char="|" char1="|"/> ++ <Detect2Chars attribute="Control" context="#stay" char="&" char1="&"/> ++ <Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/> + + <!-- handle &, |, ; --> + <AnyChar attribute="Control" context="#stay" String="&|;"/> +@@ -1269,6 +1269,8 @@ + + <context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblBracketEnd"> + <LineContinue attribute="Escape" context="#stay"/> ++ <Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="&" char1="&"/> ++ <Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="|" char1="|"/> + <RegExpr attribute="Keyword" context="#pop" String="\]\](?=($|[ &tab;;|&]))" endRegion="expression"/> + </context> + +-- +GitLab + diff --git a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.77.0.ebuild b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.77.0.ebuild new file mode 100644 index 000000000000..947c290db845 --- /dev/null +++ b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.77.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_TEST="forceoptional" +QTMIN=5.15.1 +inherit ecm kde.org + +DESCRIPTION="Framework for syntax highlighting" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="nls" + +BDEPEND=" + dev-lang/perl + nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 ) +" +DEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtnetwork-${QTMIN}:5 + >=dev-qt/qtxmlpatterns-${QTMIN}:5 +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-bashfix-{1,2}.patch ) + +src_install() { + ecm_src_install + dobin "${BUILD_DIR}"/bin/katehighlightingindexer +} |