Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JerwuQu opened this issue Mar 19, 2019 · 2 comments
Open
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@JerwuQu
Copy link

JerwuQu commented Mar 19, 2019

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

@ismell
Copy link

ismell commented Mar 19, 2019

Can you try out #1831 and see if it fixes it.

@JerwuQu
Copy link
Author

JerwuQu commented Mar 19, 2019

Can you try out #1831 and see if it fixes it.

Yup, seems to work.

@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: bug A bug in an existing language feature
Projects
None yet
Development

No branches or pull requests

3 participants