Skip to content

Commit

Permalink
feat: add support for YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Vieira committed May 25, 2022
1 parent e36cb9c commit cc9360a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/scheme/rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down
16 changes: 16 additions & 0 deletions lib/scheme/rules/languages/yaml.ts
Original file line number Diff line number Diff line change
@@ -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)',
},
},
];
10 changes: 10 additions & 0 deletions schemes/Meetio Scheme Example.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
}
]
}

0 comments on commit cc9360a

Please sign in to comment.