Bug 359770 - The parser colorizes commented code
Summary: The parser colorizes commented code
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: All editors (other bugs)
Version First Reported In: 4.90.90
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 19:06 UTC by Folco
Modified: 2021-03-09 22:48 UTC (History)
0 users

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 Folco 2016-02-24 19:06:27 UTC
I have commented a macro (line 14: see the screenshot: http://www.mirari.fr/xqfZ.png ).
But the symbol defined still remains colorized, and the tooltip appears when the mouse is above.

Reproducible: Always

Steps to Reproduce:
I couldn't reproduce with a simple Hello World, so I archived the (tiny) project here : http://www.mirari.fr/zzxe.zip
This is the project that you can see in the screenshot.
The involved headers, if needed, are here: https://github.com/debrouxl/gcc4ti/tree/next/trunk/tigcc/include/C

Actual Results:  
The commented code is colorized, the tooltip appears

Expected Results:  
The comment code is totally grayed out.
Comment 1 Folco 2016-02-24 19:13:44 UTC
Maybe you noticed that the yellow background of the symbol has an offset of two characters with the real position of the symbol.
Comment 2 Folco 2016-02-24 19:57:38 UTC
More infos:
After closing/re-opening KDevelop, I remove the double slash of the comment. Now the whole line is green: http://www.mirari.fr/yegW.png
When the mouse is over the macro, the wrong tooltip appears: http://www.mirari.fr/A3Fk.png
Comment 3 Justin Zobel 2021-03-09 22:48:39 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.