Stillat / blade-parser-typescript

A Laravel Blade parser, compiler, and static analyzer written in TypeScript.
https://stillat.com
MIT License
82 stars 2 forks source link

Formatter breaking Blade comments inside components #71

Closed ralphjsmit closed 1 year ago

ralphjsmit commented 1 year ago

I also noticed that the formatter added spaces between the {{ and the -- part of the {{-- Blade comment syntax when a comment is added inside an HTML tag/Blade component.

This also caused a server error to break the part of the code:

Comments

Hereby the original code:

<x-filament::button
    outlined
    color="secondary"
    {{-- Do not include statePath as parameter to close-modal, otherwise the media picker will update the selected values --}}
    x-on:click="$dispatch('close-modal', {id: 'media-library-picker'})"
>
    Text
</x-filament::button>

Thanks!

JohnathonKoster commented 1 year ago

Resolved in 1.6.9 🙂

ralphjsmit commented 1 year ago

Thanks!