Packages
Packages copied to clipboard
[C] Falsely marking macro closing parentheses as red when using braces
This code seems to break the C syntax highlighter even though it can be valid.
struct my_struct* my_var = MY_MACRO({});

Typedeffing my_struct so that the struct keyword can be removed prevents it from breaking
my_struct* my_var = MY_MACRO({});

Omitting the braces also prevents it from breaking
struct my_struct* my_var = MY_MACRO();

Can you try out https://github.com/sublimehq/Packages/pull/1831 and see if it fixes it.
Can you try out #1831 and see if it fixes it.
Yup, seems to work.