From 2221604533468fb1f11c8249d02fceffe80aabee Mon Sep 17 00:00:00 2001 From: shell7 Date: Wed, 20 Apr 2022 23:54:53 +0800 Subject: [PATCH] Add highlighting for python (#570) Add highlighting for parameters and python string formator placeholder. --- scripts/generator/color-set.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/scripts/generator/color-set.ts b/scripts/generator/color-set.ts index 8b83a30..5d17a67 100644 --- a/scripts/generator/color-set.ts +++ b/scripts/generator/color-set.ts @@ -85,6 +85,34 @@ export const getColorSet = (theme: ThemeSetting): IColorSet => { fontStyle: 'italic' } }, + { + name: 'Parameter', + scope: [ + 'variable.parameter' + ], + settings: { + fontStyle: 'italic' + } + }, + { + name: 'Python - Self Parameter', + scope: [ + 'variable.parameter.function.language.special.self.python' + ], + settings: { + foreground: theme.scheme.base.red, + fontStyle: 'italic' + } + }, + { + name: 'Python - Format Placeholder', + scope: [ + 'constant.character.format.placeholder.other.python' + ], + settings: { + foreground: theme.scheme.base.orange + } + }, { name: 'Markdown - Blockquote', scope: [