Skip to content

Emit semantic tokens for user defined conversions #10550

Open
@akbyrd

Description

@akbyrd

Feature Request

User defined conversions are the only operator overloads that aren't able to be syntax colored to make them more obvious (aside from new and delete, which I reported recently).

I'd like to request semantic tokens to enable syntax highlighting when a user defined conversion is invoked.

image

The tricky bit is, which token should it be? On the parentheses? Sometimes there aren't any parenthesis.

image

Perhaps it should be a modifier on the variable being converted? Can we do that if it's an entire expression? Maybe then we could underline the expression without changing the color of the entire thing.

image

It would also be nice if "go to definition" worked for the conversion, like other operator overloads. But I don't know if that's feasible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions