Shopify / prettier-plugin-liquid

Prettier Liquid/HTML plugin
https://npm.im/@shopify/prettier-plugin-liquid
MIT License
93 stars 15 forks source link

Parsing error in Liquid else tag with whitespace stripping and missing space #126

Closed charlespwd closed 1 year ago

charlespwd commented 1 year ago

Describe the bug

LiquidHTMLParsingError Line 39, col 17: expected not an identifierCharacter
  37 |           <span class="visually-hidden">{{ 'general.slider.of' | t }}</span>
  38 |           <span class="slider-counter--total">{{ section.blocks.size }}</span>
> 39 |         {%- else-%}
     |                 ^
  40 |           <div class="slideshow__control-wrapper">
  41 |             {%- for block in section.blocks -%}
  42 |               <button class="slider-cou

Additional context

Looks like the identifierCharacter thing stroke again. Or maybe that's because they are running 0.4.0 and not 0.4.3. To be verified.