Skip to content

Commit

Permalink
[Markdown] Add yml language tag in frontmatter and code blocks (#3383)
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed May 15, 2022
1 parent 30894ae commit dd371a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Markdown/Code Block Syntaxes.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -577,5 +577,11 @@
"kind": ["markup", "s", "Syntax"],
"details": "Specifies <code>YAML</code> code highlighting"
},
{
"trigger": "yml",
"annotation": "YAML",
"kind": ["markup", "s", "Syntax"],
"details": "Specifies <code>YAML</code> code highlighting"
},
],
}
4 changes: 2 additions & 2 deletions Markdown/Markdown.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ contexts:
escape_captures:
0: meta.frontmatter.markdown
1: punctuation.section.block.end.frontmatter.markdown
- match: (---)\s*(?i:(yaml)\s*)?\n
- match: (---)\s*(?i:(yaml|yml)\s*)?\n
captures:
0: meta.frontmatter.markdown
1: punctuation.section.block.begin.frontmatter.markdown
Expand Down Expand Up @@ -1692,7 +1692,7 @@ contexts:
- match: |-
(?x)
{{fenced_code_block_start}}
((?i:yaml))
((?i:yaml|yml))
{{fenced_code_block_trailing_infostring_characters}}
captures:
0: meta.code-fence.definition.begin.yaml.markdown-gfm
Expand Down

0 comments on commit dd371a2

Please sign in to comment.