Skip to content
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
@barisdemiray

Description

@barisdemiray

Prerequisites

Description

A code block is not grayed out when it is disabled with #if 0 and a corresponding #endif.

Steps to Reproduce

  1. 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

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions