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!]
Created attachment 147143 [details] Problems with Kate 21.08.1
Created attachment 147144 [details] OK with a previous version of Kate (19.12.3)
Created attachment 147145 [details] OK using Vim
Created attachment 147146 [details] OK using Joe
Created attachment 148573 [details] Bash variable substitution - text
Created attachment 148574 [details] Bash variable substitution - image
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/311
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.
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