From 065ebf998d9283dd1acb05e35dd7d5089243bf4e Mon Sep 17 00:00:00 2001 From: RedCMD <33529441+RedCMD@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:13:53 +1300 Subject: [PATCH] Fix [Fix embedding in new YAML grammar] Fixes issue in https://github.com/ruschaaf/extended-embedded-languages/pull/17#issuecomment-2323109273 --- utilities/syntax_templates/yaml_syntax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/syntax_templates/yaml_syntax.js b/utilities/syntax_templates/yaml_syntax.js index 4c87770..8ea3444 100644 --- a/utilities/syntax_templates/yaml_syntax.js +++ b/utilities/syntax_templates/yaml_syntax.js @@ -26,7 +26,7 @@ export function buildYamlSyntax(hostSpec, embeddedSpecs) { 'end': String.raw`^(?=\S)|(?!\G)`, 'patterns': [ { - 'begin': String.raw`(?>^|\\G)([ ]+)(?! )`, + 'begin': String.raw`(?>^|\G)([ ]+)(?! )`, 'end': String.raw`^(?!\1|\s*$)`, 'patterns': [{ 'include': `${embedded.root_scope}` }], 'name': `meta.embedded.block.${embedded.vsname}.${hostSpec.vsname} ${embedded.root_scope}`,