Closed Soupertonic closed 1 year ago
C23 is still a draft right? best to wait for it to be released
It seems to be finalized.
C23 itself will therefore differ in a number of subtle but important ways from n3096, most importantly in the fact that UB no longer time-travels (!!!).
we also standardized $identifiers at the very last second because YOLO :P
Mmm, still leaning towards waiting until the C2y draft at least since there's potentially some unknown changes, unless something indicates that nothing will change from C3096
So as a quick fix and for the time being, because I cannot stand inconsistency in highlighting, I forked the repository and added constexpr
to the type qualifiers. Works like a charm.
that's totally fine - it'll be added here sooner or later 😁
C23 (N3006 + N3018) introduced the
constexpr
to the gang. While it is identified/highlighted as a keyword, the types following it are not.I swapped multiple themes to see if this just an issue with missing scopes in the theme file, but the incorrect highlighting applies to every theme.
Expected:
Status quo:
It seems to me Tree Sitter treats the
constexpr
statement as a type identifier and the actual type identifier as a regular identifier. Here's the Tree Sitter Playground output:Editor: Helix Tree Sitter Rev: 84bdf409067676dd5c003b2a7cb7760456e731bf