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

distinguish between object literal and other properties #12

Open
aeschli opened this issue Apr 27, 2020 · 0 comments
Open

distinguish between object literal and other properties #12

aeschli opened this issue Apr 27, 2020 · 0 comments

Comments

@aeschli
Copy link
Owner

aeschli commented Apr 27, 2020

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.

@aeschli aeschli changed the title Distiguish betwwen object literal properies and other properties Distiguish between object literal and other properties Apr 27, 2020
@aeschli aeschli changed the title Distiguish between object literal and other properties Distinguish between object literal and other properties Apr 29, 2020
@aeschli aeschli changed the title Distinguish between object literal and other properties distinguish between object literal and other properties Apr 29, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant