view tests/xcomments.ur @ 1283:b04354e24d1b

ML-style comments inside XML
author Adam Chlipala <adam@chlipala.net>
date Tue, 10 Aug 2010 14:44:26 -0400
parents
children 43ca083678f8
line wrap: on
line source
fun foo () = <xml>Hi!</xml>

(* fun bar () = return (* No *)<xml>Yes!</xml> *)

fun main () = return <xml><body>
  A (* B *) C (* D (* E *) F *) D<br/>
  <b>A</b> <i>(* B *) C <b>D (* E *) F {foo ()}</b></i>
</body></xml>