From cc4e99971d3664ce97d168889d6385d0d1dae441 Mon Sep 17 00:00:00 2001 From: RedCMD Date: Tue, 6 Aug 2024 17:46:43 +1200 Subject: [PATCH] Support legacy `FrontMatter` integration --- syntaxes/yaml-1.2.tmLanguage.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/syntaxes/yaml-1.2.tmLanguage.json b/syntaxes/yaml-1.2.tmLanguage.json index ad4b28b..84aa2c2 100644 --- a/syntaxes/yaml-1.2.tmLanguage.json +++ b/syntaxes/yaml-1.2.tmLanguage.json @@ -22,6 +22,19 @@ ] }, { + "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", "while": "\\G", "name": "meta.stream.yaml",