Entry 3255

Highlight DEAMON test

   

Submitted by infinte on Feb. 25, 2010 at 8:29 a.m.
Language: JavaScript. Code size: 934 bytes.

// test 1 
function myfun(id) {
	/* this is mutilcomments "string" keyword: function */
	var str = "this is a string, /*fasasdf*/ //fdsasdf /^reg/";
	var reg = /^fdadfasdf$/ig;
	return "myvalue"; // hahah
}
//test 2
if(str.match(/(?:(?:[!=(,:]|\[|\n)[ \t]*\/$)|^\n?[\t ]*\/$/)){}
//test 3
a = 1
b = 2
g = {test:function(){return 1}}
c = a//
/*
*/
/b/g.test();
alert(c);
// test 4
function t4(test) {

	return (test/*
	/* //
	' "
	{ ;
	\*/ && // /* // " ' { ; \
	test &&
	" /* // \
	\" ' \
	{ ;" &&
	' /* // \
	" \' \
	{ ;' &&
	test);

}
// test 5
var rexT5 = /[/][+]([\S\s]*?)(?:[+][/]|$)|[/][/](.*)|"((?:\\"|[^"])*)"|'((?:\\'|[^'])*)'/g;  //if this line is highlighted correctly, you are a genius!
var nu = 1
/2/3 //This is divide!
var str = "123//456".replace(/[/]/g,'')+1/2/3; //comment
var o=[/re/,(/re/),typeof /re/,function(){return /re/},'o' in /re/,1 / /re/,!/re/];

RegExp.s = '';

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).