Created attachment 134851 [details] Bug presentation, with an example file with a struct. SUMMARY From a user perspective this depends on his typing speed. The C code might get improperly highlighted. The issue isn't dependent on the "Highlight range between selected brackets" setting. STEPS TO REPRODUCE Write out C structs, the syntax highlight sometimes doesn't follow up with the syntax highlight convention. OBSERVED RESULT "};" traces into syntax of a struct type name, user needs to refresh the file for proper syntax highlight. EXPECTED RESULT After a short period of inactivity, the structs should get properly highlighted. (they don't always do) SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION clangd version 11.0.1
https://invent.kde.org/utilities/kate/-/merge_requests/214/commits
Git commit 30c1295901b99c009066569fef9a4a2569fe3eca by Waqar Ahmed. Committed on 30/01/2021 at 15:45. Pushed by cullmann into branch 'master'. Don't expand semantic highlighting ranges to prevent incorrect highlighting while typing M +1 -2 addons/lspclient/lspclientpluginview.cpp https://invent.kde.org/utilities/kate/commit/30c1295901b99c009066569fef9a4a2569fe3eca