4 ms·
huh. when i read the spec, i thought comments were c like begin_sl_comment ::= '//' begin_ml_comment ::= '/*' end_ml_comment ::= '*/' maybe that
by jfoutz 9y ago
huh. 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.