Summary: |
[LSP][clangd]Incorrect syntax highlight in C post typing out the entire struct. |
Product: |
[Applications] kate
|
Reporter: |
jakubby |
Component: |
syntax | Assignee: |
KWrite Developers <kwrite-bugs-null> |
Status: |
RESOLVED
FIXED
|
|
|
Severity: |
minor
|
CC: |
nate, waqar.17a
|
Priority: |
NOR
|
|
|
Version: |
20.12.1 | |
|
Target Milestone: |
--- | |
|
Platform: |
Arch Linux | |
|
OS: |
Linux | |
|
Latest Commit:
|
https://invent.kde.org/utilities/kate/commit/30c1295901b99c009066569fef9a4a2569fe3eca
|
Version Fixed In:
|
|
Attachments: |
Bug presentation, with an example file with a struct.
|
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