Bug 466712 - Problem highlighting Bash code
Summary: Problem highlighting Bash code
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: 5.98.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-02 12:24 UTC by Ganton
Modified: 2023-03-05 19:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A shell script showing the problem when opened with Kate 22.08.3 (245 bytes, application/x-shellscript)
2023-03-02 12:24 UTC, Ganton
Details
Problems that are seen (21.22 KB, image/png)
2023-03-02 12:25 UTC, Ganton
Details

Note You need to log in before you can comment on or make changes to this bug.
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