less.js icon indicating copy to clipboard operation
less.js copied to clipboard

css variable without end semicolon get a compiler error

Open ShuZhong opened this issue 2 years ago • 2 comments

To reproduce:

.test {
    --test-var2: 0.4
}

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

Expected behavior: compiler success

Environment information:

  • less version: 4.1.2
  • nodejs version: 16
  • operating system: windows

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

ShuZhong avatar Mar 08 '22 04:03 ShuZhong

Thanks for bug reporting.

iChenLei avatar Mar 08 '22 07:03 iChenLei

Is this only true for custom props?

matthew-dean avatar Mar 09 '22 23:03 matthew-dean