Created attachment 173944 [details] Badly highlighted sample code SUMMARY Swift code is highlighted wrong after a protocol ending in a method declaration. STEPS TO REPRODUCE 1. Open the attached file in Kate or KWrite. OBSERVED RESULT The second comment is purple (with white slashes), as is the name of the Fruit enum. EXPECTED RESULT If everything above the "Something tasty" comment is removed, the comment and Fruit enum look the same. SOFTWARE/OS VERSIONS KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/663
Git commit 4e76ba20fcaf3c0e6c079853fd4eec1540bbb81a by Christoph Cullmann, on behalf of Jonathan Poelen. Committed on 22/09/2024 at 18:42. Pushed by cullmann into branch 'master'. Swift: fix detection of end of protocol method declaration M +9 -0 autotests/folding/test.swift.fold M +9 -0 autotests/html/test.swift.dark.html M +9 -0 autotests/html/test.swift.html M +9 -0 autotests/input/test.swift M +9 -0 autotests/reference/test.swift.ref M +26 -10 data/syntax/swift.xml https://invent.kde.org/frameworks/syntax-highlighting/-/commit/4e76ba20fcaf3c0e6c079853fd4eec1540bbb81a