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.
146 stars 47 forks source link

.extend() does not support more than 1 argument #246

Closed gdelhumeau closed 9 years ago

gdelhumeau commented 9 years ago

Hi.

Code to reproduce the bug:

.class1 {
  color: #ff0000;
}
.class2 {
  background-color: #0000ff;
}
.class3 {
  &:extend(.class1, .class2);
}

Results with less.js:

.class1,
.class3 {
  color: #ff0000;
}
.class2,
.class3 {
  background-color: #0000ff;
}

Error with less4j:

# java -jar less4j-1.8.4.jar test.less output.css
Errors produced by compilation of test.less
ERROR 8:19 mismatched input ',' expecting ')' in ruleset (which started at 7:1)
ERROR 8:28 no viable alternative at input ')' in ruleset (which started at 7:1)
ERROR 8:28 no viable alternative at input ')' in ruleset (which started at 8:21)
Could not compile the file test.less

I hope it helps. Thanks, Guillaume

SomMeri commented 9 years ago

Hi, bug reports always help, thank you for both.