Medalink / laravel-blade

This package adds syntax definitions for the Laravel Blade engine.
http://www.laravel.com
MIT License
421 stars 105 forks source link

Brackets in "if" statement break syntax highlighting #173

Closed FeBe95 closed 4 years ago

FeBe95 commented 6 years ago

I have the following if-condition:

grafik

The syntax highlighting brakes because of the multiple brackets opening and closing

EDIT: works when adding a space between the two opening brackets: grafik

FeBe95 commented 4 years ago

This bug persists after updating to 1.6.17. I checked it again with the code from the screenshots, same results. Here's the code in text format, so you can copy & paste it and try it out yourself:

<div class="changeplan-wrapper">
    @if(($foo1 == true or $foo2 == true) and $bar == false)
        <div class="row">
            <p class="red">foobar</p>
        </div>
    @endif
</div>

Please reopen this issue because from my point of view this bug isn't fixed yet.