pearsonjohn / js-addin

Automatically exported from code.google.com/p/js-addin
0 stars 0 forks source link

Add syntax so that some code won't be parsed by JsParser #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be most welcome to have a line syntax to put in the code so that parts 
of the of it would not be parsed by JSParser.

Ex : 

Some script tag in a XSLT file :
 <script>
     <![CDATA[   
     // ** jsparser:off
     var cgi  = '<xsl:value-of select="$CGI"/>';
     // ** jsparser:on

     ]]>
</script>

or some closure compiled code which sometime fails in jsParser:
 <script>
// ** jsparser:off
new function(h){var 
l=h.separator||"&",k=h.spaces===!1?!1:!0,m=h.prefix!==!1?h.h....
// ** jsparser:on
</script>

Thank you.

Original issue reported on code.google.com by jeanp...@gmail.com on 7 Jun 2013 at 7:24

GoogleCodeExporter commented 9 years ago

Original comment by mega.boich@gmail.com on 15 Jul 2013 at 11:21