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

Macro prefixes cause severe syntax highlighting errors in structs and classes #664

Open
1 task done
EienMiku opened this issue Nov 19, 2024 · 0 comments
Open
1 task done

Comments

@EienMiku
Copy link

EienMiku commented Nov 19, 2024

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

#define magicro
magicro struct c {
    template <class a, class b>
    [[noreturn]] static inline constexpr unsigned int &&__cdecl f(const volatile register int *) noexcept;
};

👆 I added a lot of keywords just for emphasis.

It looks like:

image

Magically, remove class b and the following line will be correct.

image

It should look like:

edited with ps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant