From 5b018882bff8ff602e5c8077e0a482a492e43467 Mon Sep 17 00:00:00 2001 From: Alok Swamy Date: Fri, 3 Jan 2025 16:19:11 -0500 Subject: [PATCH] Update grammar to allow variables to be detected inside style tags --- .changeset/soft-moose-smell.md | 5 +++++ packages/liquid-html-parser/grammar/liquid-html.ohm | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/soft-moose-smell.md diff --git a/.changeset/soft-moose-smell.md b/.changeset/soft-moose-smell.md new file mode 100644 index 000000000..2036edc00 --- /dev/null +++ b/.changeset/soft-moose-smell.md @@ -0,0 +1,5 @@ +--- +'@shopify/liquid-html-parser': patch +--- + +[Bug Fix] Update grammar to allow liquid variables to be detected inside style tags diff --git a/packages/liquid-html-parser/grammar/liquid-html.ohm b/packages/liquid-html-parser/grammar/liquid-html.ohm index 5d6481c26..c289baa5b 100644 --- a/packages/liquid-html-parser/grammar/liquid-html.ohm +++ b/packages/liquid-html-parser/grammar/liquid-html.ohm @@ -202,7 +202,6 @@ Liquid <: Helpers { | liquidRawTagImpl<"javascript"> | liquidRawTagImpl<"schema"> | liquidRawTagImpl<"stylesheet"> - | liquidRawTagImpl<"style"> liquidRawTagImpl = "{%" "-"? space* (name endOfIdentifier) space* tagMarkup "-"? "%}" anyExceptStar>