More Intuitive Syntax for Manifest (enum) Constants

Per Nordlöw per.nordlow at gmail.com
Fri Nov 21 11:25:57 UTC 2025


On Friday, 21 November 2025 at 11:20:08 UTC, Per Nordlöw wrote:
> What do you think?

I got this idea when noticing that

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#semanticTokenTypes

has no entry named `constant` and it's meaning of `enum` is 
always a enumeration type.

The symbol `SemanticTokenTypes.enumMember` could be reused in 
this case but I believe `SemanticTokenTypes.macro` better 
resembles the semantics of D's manifest constants.


More information about the Digitalmars-d mailing list