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

Missing highlight in assume attribute #666

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

Missing highlight in assume attribute #666

EienMiku opened this issue Nov 19, 2024 · 3 comments

Comments

@EienMiku
Copy link

Checklist

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

The code with a problem is:

int x{};
[[assume(true)]];
[[assume(sizeof x == 4)]];

It looks like:

The theme is Default Dark Modern.
image
Expression in assume attribute is not highlighted.

It should look like:

Expression in assume attribute should be highlighted consistently with the expressions outside.

@jeff-hykin
Copy link
Owner

Is assume part of the C++ spec? I'm not familiar with it

@EienMiku
Copy link
Author

Is assume part of the C++ spec? I'm not familiar with it

Yes, attribute assume is part of C++23.

@EienMiku
Copy link
Author

Is assume part of the C++ spec? I'm not familiar with it

https://en.cppreference.com/w/cpp/language/attributes/assume

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

2 participants