From cc9360ae8bd6b1f6c2903cdfd7b7554169ad6010 Mon Sep 17 00:00:00 2001 From: Mauro Vieira Date: Wed, 25 May 2022 11:20:12 +0100 Subject: [PATCH] feat: add support for YAML --- lib/scheme/rules/index.ts | 1 + lib/scheme/rules/languages/yaml.ts | 16 ++++++++++++++++ .../Meetio Scheme Example.sublime-color-scheme | 10 ++++++++++ 3 files changed, 27 insertions(+) create mode 100644 lib/scheme/rules/languages/yaml.ts diff --git a/lib/scheme/rules/index.ts b/lib/scheme/rules/index.ts index 0627519..aa18fd7 100644 --- a/lib/scheme/rules/index.ts +++ b/lib/scheme/rules/index.ts @@ -24,6 +24,7 @@ export { default as json } from './languages/json'; export { default as jsx } from './languages/jsx'; export { default as python } from './languages/python'; export { default as vue } from './languages/vue'; +export { default as yaml } from './languages/yaml'; export const ui: UI = { accent: 'var(accent)', diff --git a/lib/scheme/rules/languages/yaml.ts b/lib/scheme/rules/languages/yaml.ts new file mode 100644 index 0000000..531b56e --- /dev/null +++ b/lib/scheme/rules/languages/yaml.ts @@ -0,0 +1,16 @@ +export default [ + { + name: 'YAML - Key', + scope: ['entity.name.tag.yaml'], + settings: { + foreground: 'var(red)', + }, + }, + { + name: 'YAML - String', + scope: ['source.yaml string.unquoted'], + settings: { + foreground: 'var(green)', + }, + }, +]; diff --git a/schemes/Meetio Scheme Example.sublime-color-scheme b/schemes/Meetio Scheme Example.sublime-color-scheme index 778cec5..e1e8302 100644 --- a/schemes/Meetio Scheme Example.sublime-color-scheme +++ b/schemes/Meetio Scheme Example.sublime-color-scheme @@ -734,6 +734,16 @@ "name": "VUE - Console, \"console\"", "scope": "text.html.vue meta.property.object", "foreground": "var(foreground)" + }, + { + "name": "YAML - Key", + "scope": "entity.name.tag.yaml", + "foreground": "var(red)" + }, + { + "name": "YAML - String", + "scope": "source.yaml string.unquoted", + "foreground": "var(green)" } ] } \ No newline at end of file