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]: @elsecan blade directive is ignored

lrakauskas opened this issue · comments

Platform

Windows

Template before formatting

<html>
  <head></head>
  <body>
    @can('test')
    a
    @elsecan
    b
    @endcan
  </body>
</html>

Template after formatting

<html>
  <head></head>
  <body>
    @can('test')
      a
      @elsecan
      b
    @endcan
  </body>
</html>

Expected Behaviour

@elsecan should be aligned together with whole @can block. Currently it's treated as regular text

<html>
  <head></head>
  <body>
    @can('test')
      a
    @elsecan
      b
    @endcan
  </body>
</html>

Relevant log output

No response

Nevermind, @elsecan is wrong syntax, it's supposed to be @elsecan('xxx') which works just fine :)