Shopify / prettier-plugin-liquid

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

Add completion mode #195

Closed charlespwd closed 1 year ago

charlespwd commented 1 year ago

toLiquidHtmlAST and toLiquidAST now both accept the { mode: 'completion' } option.

This lets us add █ characters in places where it would otherwise be impossible to "partially" parse.

Stuff like the following will be parseable:

Which will empower us to complete those areas without having a partial string to complete.