shufo / vscode-blade-formatter

An opinionated Blade file formatter for VSCode

Home Page:https://marketplace.visualstudio.com/items?itemName=shufo.vscode-blade-formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Formatting Bug]: syntax error with double curly braces

ionutdrg45 opened this issue · comments

Platform

Windows

Template before formatting

<div class="google-iframe-box">
    {{!! $girl->city->google_iframe !!}}
</div>

Template after formatting

<div class="google-iframe-box">
    {{!! $girl->city->google_iframe !!}}
</div>

Expected Behaviour

It should format the entire file but instead I get this error:
image
Parse Error : syntax error, unexpected '!', expecting ';' on line 1

1 | city->google_iframe !! ?>
| ^

Relevant log output

No response

It seems syntax error.

To use unescaped expression, you must use single curly braces for expression.

<div class="google-iframe-box">
    {!! $girl->city->google_iframe !!}
</div>

https://laravel.com/docs/10.x/blade#displaying-unescaped-data

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days