Bug 426190

Summary: [KDevelop] : C++ code highlighter glitch
Product: [Applications] kdevelop Reporter: RJVB <rjvbertin>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.5.80   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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