Bug 363280

Summary: highlighting: c++: #if 1 #endif #if defined (A) aaa #elif defined (B) bbb #endif
Product: [Applications] kate Reporter: Askar Safin <safinaskar>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ilmari.lauhakangas
Priority: NOR    
Version First Reported In: 16.04.1   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Askar Safin 2016-05-19 16:26:48 UTC
-

Reproducible: Always

Steps to Reproduce:
Open some C++ file in Kate 3.14.2 or KDevelop 4.7.0. Type:

#if 1
#endif
#if defined (A)
aaa
#elif defined (B)
bbb
#endif

Actual Results:  
"defined (B)" and "bbb" will be gray

Expected Results:  
"defined (B)" should be green like "defined (A)" and "bb" should be black like "aaa"

Debian GNU/Linux Jessie
Comment 1 Buovjaga 2016-07-08 18:55:23 UTC
Reproduced.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Christoph Cullmann 2016-09-05 20:19:11 UTC
Git commit 472c89ef37e96f46578141b850fcbc730606dc37 by Christoph Cullmann.
Committed on 05/09/2016 at 20:18.
Pushed by cullmann into branch 'master'.

Bug 363280 - highlighting: c++: #if 1 #endif #if defined (A) aaa #elif defined (B) bbb #endif

fix wrong greyed out lines + update regression test ;)

M  +2    -2    autotests/input/syntax/cpp/results/preprocessor-bug363280.cpp.reference.html
M  +2    -1    src/syntax/data/isocpp.xml

http://commits.kde.org/ktexteditor/472c89ef37e96f46578141b850fcbc730606dc37