Page 1 of 1

less: begin(@n) not working?

Posted: Fri Nov 13, 2015 12:11 am
by Patrik
Hi,

I wanted to define a less variable for the index I'm using within a number of :begin(n) and :after(n):

Code: Select all

@index: 5;
*MyElement:before(@index) {
...
}
But I get the ParseError "Unrecognised Input".

Is this an intentional limitation?

Thanks and regards,

Patrik

Re: less: begin(@n) not working?

Posted: Fri Nov 13, 2015 1:06 am
by Patrik
Sorry, should have looked into the spec first...

Using the correct syntax (with curly braces) it works fine:

Code: Select all

@index: 5;
*MyElement:before(@{index}) {
...
}
Patrik