Skip to content

Add semantic token modifiers for punctuation #6152

Closed
@Veetaha

Description

@Veetaha

I used to have different colors for curly braces, operators, parens, brackets and other punctuation in TypeScript.

Take this colorization as an example:

image

It is not possible to achieve this amount of color diversity for punctuation in rust-analyzer for now, so I propose to add more specific semantic token modifiers for punctuation: punctuation.curlyBrace, punctuation.bracket, punctuation.paren ... so that it is possible to control the style of each individual punctuation symbol kind.

I am not insisting on implementing this via semantic token modifiers, this is just the first thing that comes to my head.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-mediumS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions