sublimehq / Packages

Syntax highlighting files shipped with Sublime Text and Sublime Merge
https://sublimetext.com
Other
2.95k stars 588 forks source link

[C++] function modifier like [[nodiscard]] and [[noreturn]] break highlighting #3715

Open Sainan opened 1 year ago

Sainan commented 1 year ago
// Good
const void* f() final;
// Bad
[[nodiscard]] const void* f() final;
[[noreturn]] const void* f() final;

image

Sainan commented 1 year ago

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

deathaxe commented 1 year ago

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

martingalvan-volue commented 5 months ago

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

Sainan commented 5 months ago

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 commented 5 months ago

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: https://github.com/sublimehq/Packages/issues/1408

Sainan commented 5 months ago

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