lessphp
lessphp copied to clipboard
Multiline comments /* .. */ not compiling inside lines
[code]
.class /* here is comment _/ {
}
[/code]
will produce error
parse error: failed at .class /_ here is comment */ {
It wasn't just that you forgot the ending star?
.class /* here is comment */ {
}
Because I can't reproduce this in the online editor: http://leafo.net/lessphp/editor.html
Github forum destroys comments. Try to use php class, not web interface.
I check this on my environment (PHP 5.5.14) and can't reproduce error. Checked with using CLI and PHP class.
Input:
.class /* here is comment */ {
margin: 0;
}
Output:
.class {
margin: 0;
}