Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

distinguish between object literal and other properties #12

@aeschli

Description

@aeschli

In the TypeScript TextMate grammar, object literals get the scope meta.object-literal.key.ts and class interface properties get variable.object.property.

const x = { prop1: 1 }
interface X { prop2: 1 }

Semantic token don't distinguish between the two.
Some themes use the different scopes to colorize differently what causes in less colors when enabling semantic highlighting.

We could add a subtype 'objectProperty` to enable specific themeing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions