DenVdmj / js-crunchy

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

Limited support for IE comment statements #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For something like

//@cc_on
//@if(@_win32)
//@  document.write("IE windows");
//@else
     document.write("Others");
//@end

Also block comments. I probably should require complete statements inside 
comments, ie. not:

//@cc_on
var ieWin = /*@if(@_win32) true @else@*/ false /*@end@*/

As I don't want to have to think about inserting semi-colons for weird 
cases.

Need to also think about how this will interact with declared variables - 
maybe disallow declaring variable inside a comment statement.

Original issue reported on code.google.com by dnl...@gmail.com on 18 Feb 2007 at 10:29