Skip to content

Syntax highlighting for disabled code (preprocessorSymbols) is wrong in newest prerelease #8277

Description

@dannoe

1. Describe the bug
The syntax highlighting for enabled (normal) vs disabled (grey italic) code is wrong.

2. To Reproduce
Steps to reproduce the behavior:

  • Create project
  • add "FOO" to preprocessorSymbols in app.json
  • Add this code:
codeunit 50000 "test codeunit"
{

    // FOO is set in app.json
#if FOO
    procedure Bar()
    begin
    end;
#else
    procedure Baz()
    begin
        message('test');
    end;
#endif

}

3. Expected behavior

Image

4. Actual behavior
Image

5. Versions:

Not working in version: 18.0.2293710 (pre-release)
Working in version: Version: 18.0.2242655 (pre-release)

Internal work item: AB#639565

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions