As in subject. Below line is showing in red color (skipping hash) instead of green (default setting) #ifndef _LISTVIEWITEMDELEGATE_ This line is green (default setting) #ifndef LISTVIEWITEMDELEGATE_ In some previous version it worked fine (both lines were green).
Please attach a screenshot.
I think the issue is that we highlight _+... defines as error because they are reserved. That might make sense for #define but I don't think for the uses.
I think that handling shall be removed. Your can do #define _xxxx just fine but not #ifdef _xxxx
Created attachment 114562 [details] ifndef correct syntax highlighting
Created attachment 114563 [details] ifndef incorrect syntax highlighting
In attachment screen shots as you asked.
Git commit 365fee5787c164e9e4a5c17440196456869d0a14 by Christoph Cullmann. Committed on 25/08/2018 at 18:42. Pushed by cullmann into branch 'master'. fix highlighting for #ifdef _xxx stuff unit test extended to catch this case M +9 -0 autotests/folding/highlight.cpp.fold M +9 -0 autotests/html/highlight.cpp.html M +9 -0 autotests/input/highlight.cpp M +9 -0 autotests/reference/highlight.cpp.ref M +2 -2 data/syntax/isocpp.xml https://commits.kde.org/syntax-highlighting/365fee5787c164e9e4a5c17440196456869d0a14
*** Bug 398147 has been marked as a duplicate of this bug. ***