From c37f780dc7fa98cbcdacf2cc51ffa5305ca2dccf Mon Sep 17 00:00:00 2001 From: winston Date: Sat, 9 Sep 2023 03:14:45 +0200 Subject: [PATCH] fix(syntax): Object properties use `text` now 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 (

{`Hello ${foo.bar}`}

) ``` --- src/theme/tokens/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/theme/tokens/index.ts b/src/theme/tokens/index.ts index 6f23d431..ebe953e2 100644 --- a/src/theme/tokens/index.ts +++ b/src/theme/tokens/index.ts @@ -277,6 +277,14 @@ export default (context: ThemeContext) => { fontStyle: "", }, }, + { + name: "Object properties", + scope: "variable.object.property", + settings: { + foreground: palette.text, + fontStyle: "", + }, + }, // per-language tokens ...[