Bug 450878

Summary: Regression? highlighting bash code with comments
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Ganton <kubry>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cullmann, jonathan.poelen, koncek.marian, walter.von.entferndt
Priority: NOR    
Version: 5.92.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: A shell script showing the problem when opened with Kate 21.08.1
Problems with Kate 21.08.1
OK with a previous version of Kate (19.12.3)
OK using Vim
OK using Joe
Bash variable substitution - text
Bash variable substitution - image

Description Ganton 2022-02-26 13:15:20 UTC
Created attachment 147142 [details]
A shell script showing the problem when opened with Kate 21.08.1

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

OBSERVED RESULT
See incorrect highlighting , like in the screenshot that I will attach. That doesn't happen with previous Kate versions, like 19.12.3 (I will attach a screenshot about that, too).

EXPECTED RESULT
What's seen in the screenshot of Kate 19.12.3

[And thanks for making Kate such a great editor!]
Comment 1 Ganton 2022-02-26 13:17:20 UTC
Created attachment 147143 [details]
Problems with Kate 21.08.1
Comment 2 Ganton 2022-02-26 13:18:50 UTC
Created attachment 147144 [details]
OK with a previous version of Kate (19.12.3)
Comment 3 Ganton 2022-02-26 13:21:07 UTC
Created attachment 147145 [details]
OK using Vim
Comment 4 Ganton 2022-02-26 13:23:59 UTC
Created attachment 147146 [details]
OK using Joe
Comment 5 Marián Konček 2022-05-05 10:09:20 UTC
Created attachment 148573 [details]
Bash variable substitution - text
Comment 6 Marián Konček 2022-05-05 10:09:45 UTC
Created attachment 148574 [details]
Bash variable substitution - image
Comment 7 Bug Janitor Service 2022-05-26 15:40:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/311
Comment 8 Jonathan Poelen 2022-05-26 15:56:11 UTC
Marián Konček: this bug has already been reported and fixed (around March/April). You have to manually update your syntax files or wait for your packages to be updated.
Comment 9 Jonathan Poelen 2022-05-26 18:12:32 UTC
Git commit 56da9379626e3ab1b3343d6877d298b4dea21c46 by jonathan poelen.
Committed on 26/05/2022 at 18:12.
Pushed by jpoelen into branch 'master'.

Bash: fix comments in double braces

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

https://invent.kde.org/frameworks/syntax-highlighting/commit/56da9379626e3ab1b3343d6877d298b4dea21c46