Skip to content

Commit

Permalink
Add some custom syntax rules for yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Nov 11, 2022
1 parent 09c5ee2 commit 6fec019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/style/_syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ pre > code {

// Markdown
.syntax-heading { color: var(--color-syntax-attribute); font-weight: bold; }

// YAML
.syntax-yaml .syntax-string { color: var(--color-syntax-string); }
.syntax-yaml .syntax-name { color: var(--color-syntax-foreground); }
// 99% of the time a "boolean" is actually `on` which is really a string
.syntax-yaml .syntax-boolean { color: var(--color-syntax-foreground); }
.syntax-yaml .syntax-punctuation { color: var(--color-syntax-keyword1); }
.syntax-yaml .syntax-comment .syntax-punctuation { color: var(--color-syntax-comment); }

0 comments on commit 6fec019

Please sign in to comment.