3 ms·
I wish the start of comment can still be made less verbose-y “{!-- comment --}”
by CodeSheikh 9y ago
I wish the start of comment can still be made less verbose-y
“{!-- comment --}”
- henryluo 9y agoComment can just be {!comment} or {#comment} in Mark, if you like. In the README example, I deliberately made it resemble HTML comment, so as to make it easier for people to correlate.
- jfoutz 9y agohuh. when i read the spec, i thought comments were c like begin_sl_comment ::= '//' begin_ml_comment ::= '/*' end_ml_comment ::= '*/' maybe that ebnf is out of date.
- henryluo 9y agoIn Mark, there are two types of 'comment'. // comment and /* comment */ are lexical comments, which are stripped during parsing. Then there's Mark pragma, like {!pragma}, which are preserved in the data model. HTML comment is supported as Mark pragma, not Mark comment.
- nfoz 9y agoOh that's a really interesting distinction.