web-mode icon indicating copy to clipboard operation
web-mode copied to clipboard

Blade: `@if` with following space: condition not highlighted

Open cweiske opened this issue 8 months ago • 0 comments

In a laravel .blade.php template, the condition in an @if statement is only highlighted when there is no space between @if and (: 2024-05-30 blade web-mode if

Highlighted:

@if($feedbackform && false)
    {{$feedbackform}}
@endif

Not highlighted:

@if ($feedbackform && false)
    {{$feedbackform}}
@endif

The laravel blade documentation itself uses a single space between @if and the opening parenthesis: https://laravel.com/docs/11.x/blade#if-statements


This is with emacs 28.2 on Debian 12 using web-mode 20240413.1455. There is no update installable.

cweiske avatar May 30 '24 12:05 cweiske