Open barisdemiray opened 4 years ago
A code block is not grayed out when it is disabled with #if 0 and a corresponding #endif.
#if 0
#endif
#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.
Atom : 1.40.1 Electron: 3.1.10 Chrome : 66.0.3359.181 Node : 10.2.0
Thanks for the report! Reproduced with 1.42.0-nightly7 on macOS 10.14.6:
For comparison with Tree-sitter disabled and checking the scopes for any of the greyed out text:
Prerequisites
Description
A code block is not grayed out when it is disabled with
#if 0
and a corresponding#endif
.Steps to Reproduce
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
Additional Information