Skip to content

Assign type scope for exclamation mark preceding colon #701

@usernamehw

Description

@usernamehw
class Cl {
    one?: string;
    two!: string;
}

Some themes have different coloring for type punctuation scopes like keyword.operator.type. But exclamation mark stands out because it's keyword.operator.logical.

screenshot 20

It would be nice for it to have a separate scope (like question mark keyword.operator.optional) or at least the same as colon keyword.operator.type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions