siteleaf / liquid-syntax-mode

Liquid syntax mode for Sublime Text
71 stars 23 forks source link

Syntax highlighting not working for new {%- and -%} tags #2

Closed blindMoe closed 7 years ago

blindMoe commented 8 years ago

Any chance you could add in the syntax highlighting for the new {%- and -%} tags that Shopify has enabled?

sawyerh commented 8 years ago

Hm, could you clarify or point me to a link about what you're referring to?

blindMoe commented 8 years ago

No Problem. If you look at the Shopify Liquid cheatsheet ( https://www.shopify.com/partners/shopify-cheat-sheet ) you will see in the 'Whitespace Control' box that they allow the use of {%- and -%} to remove any whitespace before or after the tag.

screen shot 2016-10-07 at 3 29 33 pm

horsejockey commented 7 years ago

@blindMoe and @sawyerh I just submitted a pull request with the fix for this issue.