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.

Syntax highlight for C code breaks with macro definition containing a function/parenthesis #211

@mjbvz

Description

@mjbvz

From @mopsfelder on February 27, 2017 13:40

Steps to Reproduce:

  1. Create a basic C program with macro definition containing a function. For example:
#include <stdio.h>

#define FOO bar()

int main(void)
{
        return 0;
}
  1. With the above code example, the syntax highlight for C code breaks, turning main() definition entirely blue-ish. See:

selection_032

It seems that the syntax highlight motor expects a comma ; after a pair of parenthesis is added to macro definition, correcting the colors:

selection_033

Copied from original issue: microsoft/vscode#21493

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions