Stillat / blade-parser-typescript

A Laravel Blade parser, compiler, and static analyzer written in TypeScript.
https://stillat.com
MIT License
82 stars 2 forks source link

`match` inside `@class` #33

Closed zepfietje closed 1 year ago

zepfietje commented 1 year ago
@class([
    'foo',
    match ($color) {
        'blue' => 'text-blue-500',
        'green' => 'text-green-500',
    },
])
@class([
    'foo',
    match($color){'blue' => 'text-blue-500',
    'green' => 'text-green-500'},
])
JohnathonKoster commented 1 year ago

Was a bit scared by the description for this one - but wasn't too bad to get sorted. Should be good to go as of 1.1.12 🙂

zepfietje commented 1 year ago

Awesome! 💪