fxbois / web-mode

web template editing mode for emacs

Home Page:https://web-mode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blade indentation seems to fail after function application in array

xtvk opened this issue · comments

commented

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:

@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