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 · 6 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
@martingalvan-volue
Copy link

Hi, this bug still exists. What's the ETA for it being fixed?

@Sainan
Copy link
Contributor Author

Sainan commented Jun 10, 2024

It will be fixed when someone who's a) anal about syntax highlighting, b) cares enough to learn Sublime's weird tmLanguage replacements, c) and cares about C/C++ decides they want to submit some PRs. 😀

@martingalvan-volue
Copy link

It will be fixed when someone who's a) anal about syntax highlighting, b) cares enough to learn Sublime's weird tmLanguage replacements, c) and cares about C/C++ decides they want to submit some PRs. 😀

This is not so much about being "anal about syntax highlighting", but rather about Sublime not being able to find the symbols with F12, etc, which is a huge issue on larger codebases: #1408

@Sainan
Copy link
Contributor Author

Sainan commented Jun 10, 2024

To put it more generally: Someone who cares about Sublime Text being able to accurately classify code.

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