-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting breaks object operator -> #150
Comments
@sven-ahrens Hi, can you check your format setting? I have two blade formatter installed, either won't break the syntax |
@sven-ahrens I noticed that your input tag does not close properly |
Hey, first of all: Thank you so much for replying. You are right, my example is missing the closing tag but in my "real" code it doesn't. I checked that right now. and it turns into: Also I've selected your formatter: Versions
|
I'm not sure if it breaks because of the
|
@sven-ahrens How about change |
I'm coming from Vue background and I'm used to have them exactly like in my example. I tried your version out and yes this works but it seems like it's a bug then, isnt it? The formatter will break when having |
@sven-ahrens Blade formatter is build based on HTML formatter. However, php syntax is not treat the same way as html. |
Description
In my blade file I've multiple
@checked
directives that include a php variable accessing a method.When I format this, it turns into:
Expected behaviour
I'd assume that it does not break the object operator and keeps it on the same line.
So instead of this:
I'd expect this:
The text was updated successfully, but these errors were encountered: