lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

Multiline comments /* .. */ not compiling inside lines

Open deepeloper opened this issue 11 years ago • 3 comments

[code] .class /* here is comment _/ { } [/code] will produce error parse error: failed at .class /_ here is comment */ {

deepeloper avatar Jun 27 '14 11:06 deepeloper

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

khromov avatar Jul 03 '14 12:07 khromov

Github forum destroys comments. Try to use php class, not web interface.

deepeloper avatar Jul 03 '14 12:07 deepeloper

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;
}

maximkou avatar Jul 09 '14 10:07 maximkou