Skip to content

Commit

Permalink
Support legacy FrontMatter integration v2
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Aug 6, 2024
1 parent 4884a51 commit d4dca9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 0 additions & 12 deletions syntaxes/yaml-1.2.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@
{ "include": "#presentation-detail" }
]
},
{
"comment": "Support legacy FrontMatter integration",
"begin": "\\G$",
"while": "^(?! {3,0}-{3,}[ \t]*+$|[ \t]*+\\.{3}$)",
"name": "meta.stream.yaml",
"patterns": [
{ "include": "#byte-order-mark" },
{ "include": "#directives" },
{ "include": "#document" },
{ "include": "#presentation-detail" }
]
},
{
"comment": "For when YAML is embedded inside a Markdown code-block",
"begin": "\\G",
Expand Down
7 changes: 7 additions & 0 deletions syntaxes/yaml.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"scopeName": "source.yaml",
"name": "YAML Ain't Markup Language",
"patterns": [
{
"comment": "Support legacy FrontMatter integration",
"//": "https://github.com/microsoft/vscode-markdown-tm-grammar/pull/162",
"begin": "(?<=^-{3,}\\s*+)\\G$",
"while": "^(?! {3,0}-{3,}[ \t]*+$|[ \t]*+\\.{3}$)",
"patterns": [ { "include": "source.yaml.1.2" } ]
},
{
"comment": "Default to YAML version 1.2",
"include": "source.yaml.1.2"
Expand Down

0 comments on commit d4dca9f

Please sign in to comment.