haidubogdan / netbeans-php-blade-plugin

Netbeans 18+ module plugin for php blade template files
Apache License 2.0
26 stars 4 forks source link

Missing highlighting in blade core/custom attributes #45

Closed parallels999 closed 5 months ago

parallels999 commented 5 months ago

https://laravel.com/docs/9.x/blade#additional-attributes

image

<span @class([
    'p-4',
    'font-bold' => $isActive,
    'text-gray-500' => ! $isActive,
    'bg-red' => $hasError,
])></span>
<span @style([
    'background-color: red',
    'font-weight: bold' => $isActive,
])></span>
<input type="checkbox" @checked(old('active', $user->active)) />
<option value="{{ $version }}" @selected(old('version') == $version)>test</option>
<button type="submit" @disabled($errors->isNotEmpty())>Submit</button>
<input type="email" @readonly($user->isNotAdmin()) />
<input type="text" @required($user->isAdmin()) />
<input type="text" @echoIf('data-test="test"',$user->isAdmin()) />
haidubogdan commented 5 months ago

Sorry, a possible regression after some logic implementation related with blade components. Hope it's fixed on v.2.1.52

https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb180-v.2.1.52

parallels999 commented 5 months ago

Thanks