jwalton512 / vim-blade

Vim syntax highlighting for Blade templates.
226 stars 37 forks source link

Fix indent #43

Closed jn-jairo closed 8 years ago

jn-jairo commented 8 years ago

I found a few things to fix.

I had forgotten to add indent to @can.

And when the indent should be decreased, it was working right when the current indent is greater than or equal to the previous line indent, but when it is less did not change the indent.

This error does not appear when typing text, only when you put lines already indented in a location with another indentation level and selects the region to indent all at once is that the error appears.

Example, if you have this code.:

@unless (Auth::check())
    You are not signed in. 
@endunless

And put in a tag:

<div>
@unless (Auth::check())
    You are not signed in. 
@endunless
</div>

When you indent of all tags at once, look like this:

<div>
    @unless (Auth::check())
        You are not signed in.
@endunless
</div>
jwalton512 commented 8 years ago

Thanks for the contribution @jn-jairo