foam-framework / foam

Feature-Oriented Active Modeller
Apache License 2.0
786 stars 55 forks source link

Support one-liner CSS comments in the CSS parser #329

Open bshepherdson opened 9 years ago

bshepherdson commented 9 years ago

We can't use proper /* comments */ because it's inside a comment already.

(And Javascript doesn't support nesting comments, like C, even though C made that decision in 1971 and can be excused.)

kgrgreer commented 9 years ago

You can include HTML/XML style comments in your CSS and FOAM will strip them out.

Ex.:

  <!-- Comment -->

On 20 August 2015 at 09:43, Braden Shepherdson notifications@github.com wrote:

We can't use proper /* comments */ because it's inside a comment already.

(And Javascript doesn't support nesting comments, like C, even though C made that decision in 1971 and can be excused.)

— Reply to this email directly or view it on GitHub https://github.com/foam-framework/foam/issues/329.

bshepherdson commented 8 years ago

@mdittmer do we still want to add // one-liners or are XML-style comments sufficient?

mdittmer commented 8 years ago

Might as well do both.

On 25 November 2015 at 12:23, Braden Shepherdson notifications@github.com wrote:

@mdittmer https://github.com/mdittmer do we still want to add // one-liners or are XML-style comments sufficient?

— Reply to this email directly or view it on GitHub https://github.com/foam-framework/foam/issues/329#issuecomment-159679660 .