@shopify/liquid-html-parser
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -415,3 +415,11 @@ "use strict"; | ||
}, | ||
filterArguments: 0, | ||
arguments: 0, | ||
complexArguments: function (completeParams, _space1, _comma, _space2, incompleteParam) { | ||
const self = this; | ||
return completeParams | ||
.toAST(self.args.mapping) | ||
.concat(incompleteParam.sourceString === '' ? [] : incompleteParam.toAST(self.args.mapping)); | ||
}, | ||
simpleArgument: 0, | ||
tagArguments: 0, | ||
@@ -418,0 +426,0 @@ positionalArgument: 0, |
@@ -267,2 +267,7 @@ module.exports = String.raw`Helpers { | ||
tagArguments = listOf<namedArgument<delimTag>, argumentSeparatorOptionalComma> | ||
filterArguments<delim> = | ||
| complexArguments<delim> | ||
| simpleArgument<delim> | ||
complexArguments<delim> = arguments<delim> (space* "," space* simpleArgument<delim>)? | ||
simpleArgument<delim> = liquidVariableLookup<delim> | ||
@@ -499,14 +504,17 @@ variableSegment = (letter | "_") (~endOfTagName identifierCharacter)* | ||
WithPlaceholderLiquid <: Liquid { | ||
liquidFilter<delim> := space* "|" space* identifier (space* ":" space* filterArguments<delim> (space* ",")?)? | ||
liquidTagName := (letter | "█") (alnum | "_")* | ||
variableSegment := (letter | "_" | "█") identifierCharacter* | ||
variableSegment := (letter | "_" | "█") (identifierCharacter | "█")* | ||
} | ||
WithPlaceholderLiquidStatement <: LiquidStatement { | ||
liquidFilter<delim> := space* "|" space* identifier (space* ":" space* filterArguments<delim> (space* ",")?)? | ||
liquidTagName := (letter | "█") (alnum | "_")* | ||
variableSegment := (letter | "_" | "█") identifierCharacter* | ||
variableSegment := (letter | "_" | "█") (identifierCharacter | "█")* | ||
} | ||
WithPlaceholderLiquidHTML <: LiquidHTML { | ||
liquidFilter<delim> := space* "|" space* identifier (space* ":" space* filterArguments<delim> (space* ",")?)? | ||
liquidTagName := (letter | "█") (alnum | "_")* | ||
variableSegment := (letter | "_" | "█") identifierCharacter* | ||
variableSegment := (letter | "_" | "█") (identifierCharacter | "█")* | ||
leadingTagNameTextNode := (letter | "█") (alnum | "-" | ":" | "█")* | ||
@@ -513,0 +521,0 @@ trailingTagNameTextNode := (alnum | "-" | ":" | "█")+ |
{ | ||
"name": "@shopify/liquid-html-parser", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Liquid HTML parser by Shopify", | ||
@@ -5,0 +5,0 @@ "author": "CP Clermont <cp.clermont@shopify.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159172
3597