From b920fb300cffc43a5d2dc4208365b6c30f866ee1 Mon Sep 17 00:00:00 2001 From: winston Date: Sat, 9 Sep 2023 02:34:36 +0200 Subject: [PATCH] fix: italic comments toggle (#165) Closes #152 --- src/theme/tokenColors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/tokenColors.ts b/src/theme/tokenColors.ts index cd90d385..ecfe8397 100644 --- a/src/theme/tokenColors.ts +++ b/src/theme/tokenColors.ts @@ -5,7 +5,8 @@ export const getTokenColors = (context: ThemeContext): TextmateColors => { const { options } = context; return tokens(context).map((token) => { - // honor the user's italic keyword settings, skip comments (they are handled separately) + if (token.name === "Comments") return token; + token = { ...token, settings: {