Hi Peter. In your configuration file, change "+legacy_control_comments" to "-legacy_control_comments". This will cause JavaScript Lint to completely ignore the code in the conditional comment.
Regards,
Matthias Miller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello,
With the following simple piece of code:
/*@cc_on
@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@else
xmlhttp = false;
@end
@*/
I get the following warning:
lint warning: couldn't understand control comment using /*@keyword@*/ syntax
@*/
The rest of the JScript it seems to have understood. How should the end comment be written?
Peter
Hi Peter. In your configuration file, change "+legacy_control_comments" to "-legacy_control_comments". This will cause JavaScript Lint to completely ignore the code in the conditional comment.
Regards,
Matthias Miller