Bug 426190 - [KDevelop] : C++ code highlighter glitch
Summary: [KDevelop] : C++ code highlighter glitch
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: 5.5.80
Platform: Compiled Sources All
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-04 20:50 UTC by RJVB
Modified: 2020-09-04 20:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2020-09-04 20:50:47 UTC
SUMMARY
The C++ code highlighter derails in KDMGeneralWidget::loadGuiStyles() 

STEPS TO REPRODUCE
1. Fetch my KDM5 project from github:RJVB/kdm5.git and import it into KDevelop
2. open kdm/kcm/kdm-gen.cpp and navigate to `KDMGeneralWidget::loadGuiStyles()`

OBSERVED RESULT
The highlighting and auto-indenting are off from the #else in that function if code is forced to use the #else branch.

EXPECTED RESULT
It should make no difference if the code has `#if 0` or `#if 1`.

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.60.0
Qt Version: 5.9.8