From 7418dd20d76c72e82fadee2909e03239e9973b35 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 8 Jul 2024 08:57:33 -0700 Subject: [PATCH] Rebuild grammar --- syntaxes/markdown.tmLanguage | 46 ++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/syntaxes/markdown.tmLanguage b/syntaxes/markdown.tmLanguage index 4e7e101..9ca3022 100644 --- a/syntaxes/markdown.tmLanguage +++ b/syntaxes/markdown.tmLanguage @@ -3921,18 +3921,50 @@ frontMatter begin - \A-{3}\s*$ - contentName - meta.embedded.block.frontmatter + \A(?=(-{3,})) + end + ^ {,3}\1-*[ \t]*$|^[ \t]*\.{3}$ + applyEndPatternLast + 1 + endCaptures + + 0 + + name + punctuation.definition.end.frontmatter + + patterns - include - source.yaml + begin + \A(-{3,})(.*)$ + while + ^(?! {,3}\1-*[ \t]*$|[ \t]*\.{3}$) + beginCaptures + + 1 + + name + punctuation.definition.begin.frontmatter + + 2 + + name + comment.frontmatter + + + contentName + meta.embedded.block.frontmatter + patterns + + + include + source.yaml + + - end - (^|\G)-{3}|\.{3}\s*$ table