Summary: | Underline as first character in name passed to #ifndef breaks highlighting | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Piotr Mierzwinski <piotr.mierzwinski> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph, kobalicek.petr, piotr.mierzwinski |
Priority: | NOR | ||
Version: | 5.49.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/syntax-highlighting/365fee5787c164e9e4a5c17440196456869d0a14 | Version Fixed In: | 5.50.0 |
Sentry Crash Report: | |||
Attachments: |
ifndef correct syntax highlighting
ifndef incorrect syntax highlighting |
Description
Piotr Mierzwinski
2018-08-23 00:55:51 UTC
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. *** |