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++] function modifier like [[nodiscard]] and [[noreturn]] break highlighting #3715

Open
Sainan opened this issue Apr 28, 2023 · 2 comments
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@Sainan
Copy link
Contributor

Sainan commented Apr 28, 2023

// Good
const void* f() final;
// Bad
[[nodiscard]] const void* f() final;
[[noreturn]] const void* f() final;

image

@Sainan
Copy link
Contributor Author

Sainan commented Apr 28, 2023

Might be related to #1408 although that's about "find symbol", but I suspect the root cause is the same.

@deathaxe
Copy link
Collaborator

C family hasn't been updated for a while, thus doesn't support most of the more modern language features right now.

@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Apr 29, 2023
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

2 participants