Stillat / blade-parser-typescript

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

`@can` shouldn't get space #28

Closed zepfietje closed 1 year ago

zepfietje commented 1 year ago

https://laravel.com/docs/10.x/authorization#via-blade-templates

Input

@can('create', $post)
    Foo
@endcan

Output

@can ('create', $post)
    Foo
@endcan
JohnathonKoster commented 1 year ago

Made the automatic condition-detected formatting smarter in 1.1.9 🙂

zepfietje commented 1 year ago

Cool!