Bug 363280 - highlighting: c++: #if 1 #endif #if defined (A) aaa #elif defined (B) bbb #endif
Summary: highlighting: c++: #if 1 #endif #if defined (A) aaa #elif defined (B) bbb #endif
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: 16.04.1
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-19 16:26 UTC by Askar Safin
Modified: 2016-09-05 20:19 UTC (History)
1 user (show)

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 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