Bug 466712

Summary: Problem highlighting Bash code
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Ganton <kubry>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: walter.von.entferndt
Priority: NOR    
Version: 5.98.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A shell script showing the problem when opened with Kate 22.08.3
Problems that are seen

Description Ganton 2023-03-02 12:24:16 UTC
Created attachment 156916 [details]
A shell script showing the problem when opened with Kate 22.08.3

SUMMARY
Problem highlighting Bash code.

STEPS TO REPRODUCE
Using Kate 22.08.3: Open the attached example.sh file.

OBSERVED RESULT
See incorrect highlighting , like in the screenshot that I will attach.

EXPECTED RESULT
A correct highlighting.

[And thanks for making KDE software such a great one!]
Comment 1 Ganton 2023-03-02 12:25:56 UTC
Created attachment 156917 [details]
Problems that are seen
Comment 2 Bug Janitor Service 2023-03-05 19:01:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/463
Comment 3 Christoph Cullmann 2023-03-05 19:47:28 UTC
Git commit 4c58d69abf7494791a67ce51a08d87de30620c2b by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 05/03/2023 at 19:45.
Pushed by cullmann into branch 'master'.

Bash: fix ${!#}

M  +1    -1    autotests/folding/highlight.sh.fold
M  +1    -1    autotests/html/highlight.sh.dark.html
M  +1    -1    autotests/html/highlight.sh.html
M  +1    -1    autotests/input/highlight.sh
M  +1    -1    autotests/reference/highlight.sh.ref
M  +6    -1    data/syntax/bash.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/4c58d69abf7494791a67ce51a08d87de30620c2b