Stillat / vscode-antlers-language-server

Provides rich language features for Statamic's Antlers templating language, including code completions, syntax highlighting, and more.
https://antlers.dev
MIT License
36 stars 3 forks source link

Awkward formatting of `{{# commented code #}}` #61

Closed jesseleite closed 1 year ago

jesseleite commented 1 year ago

Describe the bug If you surround a block of code with antlers comments...

{{# 
{{ collection:articles limit="5" as="articles" }}
    {{ if no_results }}
        <h2 class="text-3xl italic tracking-tight">
            Feel the rhythm! Feel the rhyme! Get on up, it's writing time! Cool writings!
        </h2>
    {{ /if }}
{{ /collection:articles }}
#}}

It formats to this...

{{#
    {{ collection:articles limit="5" as="articles" }}
    {{ if no_results }}
    <h2 class="text-3xl italic tracking-tight">
    Feel the rhythm! Feel the rhyme! Get on up, it's writing time! Cool writings!
    </h2>
    {{ /if }}
    {{ /collection:articles }}
#}}

Impacted Products

Versions and Other Plugins/Extensions

VSCode and/or Neovim, tested with both prettier plugin and cli implementation.

JohnathonKoster commented 1 year ago

Resolved in: