Bug 450878 - Regression? highlighting bash code with comments
Summary: Regression? highlighting bash code with comments
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: 5.92.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-26 13:15 UTC by Ganton
Modified: 2022-05-26 18:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A shell script showing the problem when opened with Kate 21.08.1 (330 bytes, application/x-shellscript)
2022-02-26 13:15 UTC, Ganton
Details
Problems with Kate 21.08.1 (23.95 KB, image/png)
2022-02-26 13:17 UTC, Ganton
Details
OK with a previous version of Kate (19.12.3) (22.77 KB, image/png)
2022-02-26 13:18 UTC, Ganton
Details
OK using Vim (16.28 KB, image/png)
2022-02-26 13:21 UTC, Ganton
Details
OK using Joe (22.85 KB, image/png)
2022-02-26 13:23 UTC, Ganton
Details
Bash variable substitution - text (31 bytes, application/x-shellscript)
2022-05-05 10:09 UTC, Marián Konček
Details
Bash variable substitution - image (4.94 KB, image/png)
2022-05-05 10:09 UTC, Marián Konček
Details

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