Skip to content

[C] Falsely marking macro closing parentheses as red when using braces #1913

Open
@JerwuQu

Description

@JerwuQu

This code seems to break the C syntax highlighter even though it can be valid.

struct my_struct* my_var = MY_MACRO({});

the code above shown in sublime


Typedeffing my_struct so that the struct keyword can be removed prevents it from breaking

my_struct* my_var = MY_MACRO({});

the code above shown in sublime


Omitting the braces also prevents it from breaking

struct my_struct* my_var = MY_MACRO();

the code above shown in sublime

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: SyntaxT: bugA bug in an existing language feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions