bdkjones / Kit

The Kit Compiler, as implemented in CodeKit
77 stars 6 forks source link

Feature Request: Standardized Kit Comment Syntax #9

Open calvinjuarez opened 9 years ago

calvinjuarez commented 9 years ago

Issue

Currently, I'm using the following to make a comment that Kit removes, but also doesn't store a variable:

<!-- @c! Some Comment -->

This works perfectly, but feels a little hack-y. It'd be nice to have a defined syntax for a comment that Kit should remove, but wouldn't store a variable or do anything that may affect the output.

Possible Pattern

<!-- $! Some Comment -->
<!-- @! Some Comment -->

The $ or @ would mean it would match the current Special Comment check, and the ! feels like an concise (and HTML-ish) way to indicate a comment.

toonetown commented 8 years ago

BTW - the current way of doing this is brilliant (I'd like a more concise way as well - but this way is fine...). It also works for multi-line comments.

luxuryluke commented 7 years ago

Just finding this. Glad I looked. Very helpful hack.