less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
17.02k stars 3.41k forks source link

css variable without end semicolon get a compiler error #3698

Closed ShuZhong closed 1 year ago

ShuZhong commented 2 years ago

To reproduce:

.test {
    --test-var2: 0.4
}

Current behavior: error Unrecognised input. Possibly missing opening '{'

Expected behavior: compiler success

Environment information:

Can be reproduce in http://lesscss.org/less-preview/

iChenLei commented 2 years ago

Thanks for bug reporting.

matthew-dean commented 2 years ago

Is this only true for custom props?