Skip to content

Commit

Permalink
fix(syntax): Object properties use text now
Browse files Browse the repository at this point in the history
Types in TypeScript had their properties use `yellow` before; This also
fixes another problem with string interpolation colors like

```js
const foo = { bar: "World" };
return (
  <p>
    {`Hello ${foo.bar}`}
  <p>
)
```
  • Loading branch information
nekowinston committed Sep 9, 2023
1 parent 10cf259 commit c37f780
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/theme/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ export default (context: ThemeContext) => {
fontStyle: "",
},
},
{
name: "Object properties",
scope: "variable.object.property",
settings: {
foreground: palette.text,
fontStyle: "",
},
},

// per-language tokens
...[
Expand Down

0 comments on commit c37f780

Please sign in to comment.