SomMeri / less4j

Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
145 stars 47 forks source link

&--classname causes error #344

Open grobitto opened 8 years ago

grobitto commented 8 years ago

.class1 { &--class2 { background:white; } } should produce .class1--class2 { background:white}, but gives an error instead. Looks like it has something to do with html comments in less4j grammar.

the .parent--child classnames are quite common in BEM notation

SomMeri commented 8 years ago

Thank you, that seems like parser error.

maximgatilin commented 7 years ago

what about solving this issue? I'm going to move compilation to less4j, but this issue stop me