Closed xtvk closed 10 months ago
When I edit blade, the code below is indented correctly by web-mode:
<!-- foo.blade.php --> @include('a', [ 'key1' => 'value1', 'key2' => 'value2', ])
But when I change the 'value1' into someFunc('value1'), in other words, when I write:
'value1'
someFunc('value1')
@include('a', [ 'key1' => someFunc('value1'), // ← changed 'key2' => 'value2', ])
web-mode indents the code as follows:
@include('a', [ 'key1' => someFunc('value1'), 'key2' => 'value2', // ← misindented ])
I would love to see a fix for this.
By the way, thank you for your great plugin. This has been making my life drastically easier.
solved with last commit
When I edit blade, the code below is indented correctly by web-mode:
But when I change the
'value1'
intosomeFunc('value1')
, in other words, when I write:web-mode indents the code as follows:
I would love to see a fix for this.
By the way, thank you for your great plugin. This has been making my life drastically easier.