Skip to content

ifdef keyword in middle of a statement is not highlighted in vscode #107344

@wsrfad

Description

@wsrfad
  • VSCode Version: 1.49.0
  • OS Version: Linux x64 3.13.0-71-generic

REPRO

class TestClass {
    int m_x;
    #ifdef FLAG  // This ifdef keyword is highlighted
    int m_variable_used_when_flag_enabled;
    #endif
    TestClass(int x) : m_x(x) 
    #ifdef FLAG // This ifdef keyword is NOT highlighted
        ,m_variable_used_when_flag_enabled() 
    #endif
        {
            
        }
};

Does this issue occur when all extensions are disabled?: YES

Metadata

Metadata

Assignees

Labels

grammarSyntax highlighting grammarupstream-issue-linkedThis is an upstream issue that has been reported upstream

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions