import e from"./html.66e44e78.js";import n from"./css.5abce139.js";import t from"./json.709f1c4d.js";import i from"./javascript.ddb4c460.js";const a=Object.freeze({name:"liquid",scopeName:"text.html.liquid",fileTypes:["liquid"],foldingStartMarker:`(?x)
{%
  -?
  \\s*
  (capture|case|comment|for|form|if|javascript|paginate|schema|style)
  [^(%})]+
%}
`,foldingStopMarker:`(?x)
{%
  \\s*
  (endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)
  [^(%})]+
%}
`,injections:{"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted":{patterns:[{include:"#injection"}]}},patterns:[{include:"#core"}],repository:{core:{patterns:[{include:"#raw_tag"},{include:"#comment_block"},{include:"#style_codefence"},{include:"#stylesheet_codefence"},{include:"#json_codefence"},{include:"#javascript_codefence"},{include:"#object"},{include:"#tag"},{include:"text.html.basic"}]},injection:{patterns:[{include:"#raw_tag"},{include:"#comment_block"},{include:"#object"},{include:"#tag_injection"}]},raw_tag:{begin:"{%-?\\s*(raw)\\s*-?%}",end:"{%-?\\s*(endraw)\\s*-?%}",beginCaptures:{1:{name:"entity.name.tag.liquid"}},endCaptures:{1:{name:"entity.name.tag.liquid"}},name:"meta.entity.tag.raw.liquid",contentName:"string.unquoted.liquid",patterns:[{match:"(.(?!{%-?\\s*endraw\\s*-?%}))*."}]},comment_block:{begin:"{%-?\\s*comment\\s*-?%}",end:"{%-?\\s*endcomment\\s*-?%}",name:"comment.block.liquid",patterns:[{include:"#comment_block"},{match:"(.(?!{%-?\\s*(comment|endcomment)\\s*-?%}))*."}]},style_codefence:{begin:"({%-?)\\s*(style)\\s*(-?%})",end:"({%-?)\\s*(endstyle)\\s*(-?%})",beginCaptures:{0:{name:"meta.tag.metadata.style.start.liquid"},1:{name:"punctuation.definition.tag.begin.liquid"},2:{name:"entity.name.tag.style.liquid"},3:{name:"punctuation.definition.tag.begin.liquid"}},endCaptures:{0:{name:"meta.tag.metadata.style.end.liquid"},1:{name:"punctuation.definition.tag.end.liquid"},2:{name:"entity.name.tag.style.liquid"},3:{name:"punctuation.definition.tag.end.liquid"}},name:"meta.block.style.liquid",contentName:"meta.embedded.block.css",patterns:[{include:"source.css"}]},stylesheet_codefence:{begin:"({%-?)\\s*(stylesheet)\\s*(-?%})",end:"({%-?)\\s*(endstylesheet)\\s*(-?%})",beginCaptures:{0:{name:"meta.tag.metadata.style.start.liquid"},1:{name:"punctuation.definition.tag.begin.liquid"},2:{name:"entity.name.tag.style.liquid"},3:{name:"punctuation.definition.tag.begin.liquid"}},endCaptures:{0:{name:"meta.tag.metadata.style.end.liquid"},1:{name:"punctuation.definition.tag.end.liquid"},2:{name:"entity.name.tag.style.liquid"},3:{name:"punctuation.definition.tag.end.liquid"}},name:"meta.block.style.liquid",contentName:"meta.embedded.block.css",patterns:[{include:"source.css"}]},json_codefence:{begin:"({%-?)\\s*(schema)\\s*(-?%})",end:"({%-?)\\s*(endschema)\\s*(-?%})",beginCaptures:{0:{name:"meta.tag.metadata.schema.start.liquid"},1:{name:"punctuation.definition.tag.begin.liquid"},2:{name:"entity.name.tag.schema.liquid"},3:{name:"punctuation.definition.tag.begin.liquid"}},endCaptures:{0:{name:"meta.tag.metadata.schema.end.liquid"},1:{name:"punctuation.definition.tag.end.liquid"},2:{name:"entity.name.tag.schema.liquid"},3:{name:"punctuation.definition.tag.end.liquid"}},name:"meta.block.schema.liquid",contentName:"meta.embedded.block.json",patterns:[{include:"source.json"}]},javascript_codefence:{begin:"({%-?)\\s*(javascript)\\s*(-?%})",end:"({%-?)\\s*(endjavascript)\\s*(-?%})",beginCaptures:{0:{name:"meta.tag.metadata.javascript.start.liquid"},1:{name:"punctuation.definition.tag.begin.liquid"},2:{name:"entity.name.tag.javascript.liquid"},3:{name:"punctuation.definition.tag.begin.liquid"}},endCaptures:{0:{name:"meta.tag.metadata.javascript.end.liquid"},1:{name:"punctuation.definition.tag.end.liquid"},2:{name:"entity.name.tag.javascript.liquid"},3:{name:"punctuation.definition.tag.end.liquid"}},name:"meta.block.javascript.liquid",contentName:"meta.embedded.block.js",patterns:[{include:"source.js"}]},tag:{begin:"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?",end:"-?%}",name:"meta.tag.liquid",beginCaptures:{0:{name:"punctuation.definition.tag.begin.liquid"}},endCaptures:{0:{name:"punctuation.definition.tag.end.liquid"}},patterns:[{include:"#tag_body"}]},tag_injection:{begin:"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?(?!-?\\s*(endstyle|endjavascript|endcomment|endraw))",end:"-?%}",name:"meta.tag.liquid",beginCaptures:{0:{name:"punctuation.definition.tag.end.liquid"}},endCaptures:{0:{name:"punctuation.definition.tag.end.liquid"}},patterns:[{include:"#tag_body"}]},tag_body:{patterns:[{include:"#tag_liquid"},{include:"#tag_assign"},{include:"#tag_comment_inline"},{include:"#tag_case"},{include:"#tag_conditional"},{include:"#tag_for"},{include:"#tag_paginate"},{include:"#tag_render"},{include:"#tag_tablerow"},{include:"#tag_expression"}]},tag_liquid:{name:"meta.entity.tag.liquid.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(liquid)\\b",beginCaptures:{1:{name:"keyword.control.liquid.liquid"}},end:"(?=%})",patterns:[{include:"#tag_comment_block_liquid"},{include:"#tag_comment_inline_liquid"},{include:"#tag_assign_liquid"},{include:"#tag_case_liquid"},{include:"#tag_conditional_liquid"},{include:"#tag_for_liquid"},{include:"#tag_paginate_liquid"},{include:"#tag_render_liquid"},{include:"#tag_tablerow_liquid"},{include:"#tag_expression_liquid"}]},tag_comment_block_liquid:{name:"comment.block.liquid",begin:"(?:^\\s*)(comment)\\b",end:"(?:^\\s*)(endcomment)\\b",patterns:[{include:"#tag_comment_block_liquid"},{match:"(?:^\\s*)(?!(comment|endcomment)).*"}]},tag_comment_inline:{name:"comment.line.number-sign.liquid",begin:"#",end:"(?=%})"},tag_comment_inline_liquid:{name:"comment.line.number-sign.liquid",begin:"(?:^\\s*)#.*",end:"$"},tag_tablerow:{name:"meta.entity.tag.tablerow.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b",beginCaptures:{1:{name:"keyword.control.tablerow.liquid"}},end:"(?=%})",patterns:[{include:"#tag_tablerow_body"}]},tag_tablerow_liquid:{name:"meta.entity.tag.tablerow.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b",beginCaptures:{1:{name:"keyword.control.tablerow.liquid"}},end:"$",patterns:[{include:"#tag_tablerow_body"}]},tag_tablerow_body:{patterns:[{match:"\\b(in)\\b",name:"keyword.control.liquid"},{match:"\\b(cols|offset|limit):",name:"keyword.control.liquid"},{include:"#value_expression"}]},tag_for:{name:"meta.entity.tag.for.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b",beginCaptures:{1:{name:"keyword.control.for.liquid"}},end:"(?=%})",patterns:[{include:"#tag_for_body"}]},tag_for_liquid:{name:"meta.entity.tag.for.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b",beginCaptures:{1:{name:"keyword.control.for.liquid"}},end:"$",patterns:[{include:"#tag_for_body"}]},tag_for_body:{patterns:[{match:"\\b(in|reversed)\\b",name:"keyword.control.liquid"},{match:"\\b(offset|limit):",name:"keyword.control.liquid"},{include:"#value_expression"}]},tag_assign:{name:"meta.entity.tag.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b",beginCaptures:{1:{name:"entity.name.tag.liquid"}},end:"(?=%})",patterns:[{include:"#filter"},{include:"#attribute"},{include:"#value_expression"}]},tag_assign_liquid:{name:"meta.entity.tag.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b",beginCaptures:{1:{name:"entity.name.tag.liquid"}},end:"$",patterns:[{include:"#filter"},{include:"#attribute_liquid"},{include:"#value_expression"}]},tag_render:{name:"meta.entity.tag.render.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b",beginCaptures:{1:{name:"entity.name.tag.render.liquid"}},end:"(?=%})",patterns:[{include:"#tag_render_special_keywords"},{include:"#attribute"},{include:"#value_expression"}]},tag_render_liquid:{name:"meta.entity.tag.render.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b",beginCaptures:{1:{name:"entity.name.tag.render.liquid"}},end:"$",patterns:[{include:"#tag_render_special_keywords"},{include:"#attribute_liquid"},{include:"#value_expression"}]},tag_render_special_keywords:{match:"\\b(with|as|for)\\b",name:"keyword.control.other.liquid"},tag_paginate:{name:"meta.entity.tag.paginate.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b",beginCaptures:{1:{name:"keyword.control.paginate.liquid"}},end:"(?=%})",patterns:[{include:"#tag_paginate_body"}]},tag_paginate_liquid:{name:"meta.entity.tag.paginate.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b",beginCaptures:{1:{name:"keyword.control.paginate.liquid"}},end:"$",patterns:[{include:"#tag_paginate_body"}]},tag_paginate_body:{patterns:[{match:"\\b(by)\\b",name:"keyword.control.liquid"},{include:"#value_expression"}]},tag_conditional:{name:"meta.entity.tag.conditional.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b",beginCaptures:{1:{name:"keyword.control.conditional.liquid"}},end:"(?=%})",patterns:[{include:"#value_expression"}]},tag_conditional_liquid:{name:"meta.entity.tag.conditional.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b",beginCaptures:{1:{name:"keyword.control.conditional.liquid"}},end:"$",patterns:[{include:"#value_expression"}]},tag_case:{name:"meta.entity.tag.case.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b",beginCaptures:{1:{name:"keyword.control.case.liquid"}},end:"(?=%})",patterns:[{include:"#value_expression"}]},tag_case_liquid:{name:"meta.entity.tag.case.liquid",begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b",beginCaptures:{1:{name:"keyword.control.case.liquid"}},end:"$",patterns:[{include:"#value_expression"}]},tag_expression_without_arguments:{patterns:[{match:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endunless|endif)\\b",captures:{1:{name:"keyword.control.conditional.liquid"}}},{match:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endfor|endtablerow|endpaginate)\\b",captures:{1:{name:"keyword.control.loop.liquid"}}},{match:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcase)\\b",captures:{1:{name:"keyword.control.case.liquid"}}},{match:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\b",captures:{1:{name:"keyword.control.other.liquid"}}},{match:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\b",captures:{1:{name:"keyword.control.other.liquid"}}},{match:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(else|break|continue)\\b",captures:{1:{name:"keyword.control.other.liquid"}}}]},tag_expression:{patterns:[{include:"#tag_expression_without_arguments"},{begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)",beginCaptures:{1:{name:"entity.name.tag.liquid"}},end:"(?=%})",name:"meta.entity.tag.liquid",patterns:[{include:"#value_expression"}]}]},tag_expression_liquid:{patterns:[{include:"#tag_expression_without_arguments"},{begin:"(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)",beginCaptures:{1:{name:"entity.name.tag.liquid"}},end:"$",name:"meta.entity.tag.liquid",patterns:[{include:"#value_expression"}]}]},object:{begin:"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){{-?",end:"-?}}",name:"meta.object.liquid",beginCaptures:{0:{name:"punctuation.definition.tag.begin.liquid"}},endCaptures:{0:{name:"punctuation.definition.tag.end.liquid"}},patterns:[{include:"#filter"},{include:"#attribute"},{include:"#value_expression"}]},invalid_range:{match:"\\((.(?!\\.\\.))+\\)",name:"invalid.illegal.range.liquid"},range:{begin:"\\(",end:"\\)",name:"meta.range.liquid",beginCaptures:{0:{name:"punctuation.section.parens.begin.liquid"}},endCaptures:{0:{name:"punctuation.section.parens.end.liquid"}},patterns:[{match:"\\.\\.",name:"punctuation.range.liquid"},{include:"#variable_lookup"},{include:"#number"}]},number:{match:"((-|\\+)\\s*)?[0-9]+(\\.[0-9]+)?",name:"constant.numeric.liquid"},string:{patterns:[{include:"#string_single"},{include:"#string_double"}]},string_double:{begin:'"',end:'"',name:"string.quoted.double.liquid"},string_single:{begin:"'",end:"'",name:"string.quoted.single.liquid"},operator:{match:"(?:(?<=\\s)|\\b)(\\=\\=|!\\=|\\>|\\<|\\>\\=|\\<\\=|or|and|contains)(?:(?=\\s)|\\b)",captures:{1:{name:"keyword.operator.expression.liquid"}}},language_constant:{match:"\\b(false|true|nil|blank)\\b|empty(?!\\?)",name:"constant.language.liquid"},attribute:{begin:"\\w+:",end:"(?=,|%}|}}|\\|)",beginCaptures:{0:{name:"entity.other.attribute-name.liquid"}},patterns:[{include:"#value_expression"}]},attribute_liquid:{begin:"\\w+:",end:"(?=,|\\|)|$",beginCaptures:{0:{name:"entity.other.attribute-name.liquid"}},patterns:[{include:"#value_expression"}]},filter:{match:"\\|\\s*((?![\\.0-9])[a-zA-Z0-9_-]+\\:?)\\s*",captures:{1:{name:"support.function.liquid"}}},value_expression:{patterns:[{match:"(\\[)(\\|)(?=[^\\]]*)(?=\\])",captures:{2:{name:"invalid.illegal.filter.liquid"},3:{name:"invalid.illegal.filter.liquid"}}},{match:"(?<=\\s)(\\+|\\-|\\/|\\*)(?=\\s)",name:"invalid.illegal.filter.liquid"},{include:"#language_constant"},{include:"#operator"},{include:"#invalid_range"},{include:"#range"},{include:"#number"},{include:"#string"},{include:"#variable_lookup"}]},variable_lookup:{patterns:[{match:"\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\b",name:"variable.language.liquid"},{match:"((?<=\\w\\:\\s)\\w+)",name:"variable.parameter.liquid"},{begin:"(?<=\\w)\\[",beginCaptures:{0:{name:"punctuation.section.brackets.begin.liquid"}},end:"\\]",endCaptures:{0:{name:"punctuation.section.brackets.end.liquid"}},name:"meta.brackets.liquid",patterns:[{include:"#string"}]},{match:"(?<=(\\w|\\])\\.)([-\\w]+\\??)",name:"variable.other.member.liquid"},{match:"(?<=\\w)\\.(?=\\w)",name:"punctuation.accessor.liquid"},{match:"(?i)[a-z_](\\w|(?:-(?!\\}\\})))*",name:"variable.other.liquid"}]}},displayName:"Liquid",embeddedLangs:["html","css","json","javascript"]});var s=[...e,...n,...t,...i,a];export{s as default};
