leafo / lessphp

LESS compiler written in PHP
http://leafo.net/lessphp
Other
2.2k stars 529 forks source link

each loop -> Uncaught Exception: parse error: failed at `); ` #662

Open Bizarrus opened 1 year ago

Bizarrus commented 1 year ago

When i try to use the each method, the parser will break:

LESS:

@size: 4.66666666667%, 13.3333333333%, 22%, 30.6666666667%, 39.3333333333%, 48%, 56.6666666667%, 65.3333333333%, 74.0%, 82.6666666667%, 91.3333333333%, 100%;
    each(@size, {
        ui-column[data-siz="@{index}"],
    ui-columns[data-siz="@{index}"] {
                width: @value;
        }
    });

Error: Fatal error: Uncaught Exception: parse error: failed at );