This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Code block disabled with #if 0 is not grayed out #335
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
A code block is not grayed out when it is disabled with #if 0
and a corresponding #endif
.
Steps to Reproduce
- Type the snipped below and observe that it is highlighted as if it wasn't "disabled".
#if 0
{
cap >> frame;
if (frame.empty())
{
waitKey();
break;
}
#endif
Expected behavior:
I'd expect it to be grayed out as if it was a comment line.
Actual behavior:
It is highlighted as if this block wasn't taken out of the build.
Reproduces how often:
Everytime.
Versions
Atom : 1.40.1
Electron: 3.1.10
Chrome : 66.0.3359.181
Node : 10.2.0