From ce686c018691f131541d7bc391a8d2e1c465b58f Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sun, 10 Mar 2024 14:55:00 +0100 Subject: [PATCH] Simplify markdown punctuation scope caused by: https://github.com/sublimehq/Packages/pull/3941 --- Syntaxes/HTML (Liquid).sublime-syntax | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Syntaxes/HTML (Liquid).sublime-syntax b/Syntaxes/HTML (Liquid).sublime-syntax index 5fe226c..4ab1ebd 100644 --- a/Syntaxes/HTML (Liquid).sublime-syntax +++ b/Syntaxes/HTML (Liquid).sublime-syntax @@ -22,17 +22,17 @@ contexts: frontmatter: - meta_include_prototype: false - - match: (---)\s*(?i:(ya?ml)\s*)?\n + - match: \s*(---)\s*\n captures: 0: meta.frontmatter.jekyll - 1: punctuation.section.block.begin.frontmatter.jekyll + 1: punctuation.section.frontmatter.begin.jekyll 2: constant.other.language-name.jekyll embed: scope:source.yaml embed_scope: meta.frontmatter.jekyll source.yaml.embedded.jekyll - escape: ^(---|\.{3})\s*\n # pandoc requires the remainder of the line to be blank + escape: ^\s*(---)\s*$\n? escape_captures: 0: meta.frontmatter.jekyll - 1: punctuation.section.block.end.frontmatter.jekyll + 1: punctuation.section.frontmatter.end.jekyll pop: 1 # Ensure to highlight frontmatter if the syntax is embedded, but pop as early as possible - match: ^|(?=\S)