antlr / stringtemplate4

StringTemplate 4
http://www.stringtemplate.org
Other
956 stars 231 forks source link

Unterminated comment starting at 1:0: '!>' missing #165

Closed jlerbsc closed 8 years ago

jlerbsc commented 8 years ago

We have "Unterminated comment starting at 1:0: '!>' missing" error message if we start html document with a doctype declaration like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
sharwell commented 8 years ago

StringTemplate comments have the form <! commented text !>. I'm actually not sure what the proper escape sequence is so the <! appears in the output... @parrt should know.

parrt commented 8 years ago

if you're generating html, <...> is the the wrong set of delimiters. Use $...$ or something.

jlerbsc commented 8 years ago

Thanks.