SyntaxHighlighter.brushes.JScript = function()
{
	var variables =	'break case catch continue '
		  +'default delete do else false  '
		  +'for if in instanceof '
		  +'new null return super switch '
			+'throw true try typeof while with ';
	var keywords = 'function prototype this var undefined ';
	var functions = 'Image Array Date Math RegExp String Number '
	    +'XMLHttpRequest parseInt parseFloat unescape escape eval '
      +'encodeURI encodeURIComponent decodeURI decodeURIComponent ';
	var constants = 'NaN Infinity '

	this.regexList = [
		{ regex: SyntaxHighlighter.regexLib.singleLineCComments,	css: 'comments' },			// one line comments
		{ regex: SyntaxHighlighter.regexLib.multiLineCComments,		css: 'comments' },			// multiline comments
		{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,		css: 'string' },			// double quoted strings
		{ regex: SyntaxHighlighter.regexLib.singleQuotedString,		css: 'string' },			// single quoted strings
		{ regex: /\s*#.*/gm,						css: 'preprocessor' },		// preprocessor tags like #region and #endregion
		{ regex: new RegExp(this.getKeywords(keywords), 'gm'),		css: 'keyword' },			// keywords
		{ regex: new RegExp(this.getKeywords(constants), 'gm'),		css: 'constants'},
		{ regex: new RegExp(this.getKeywords(variables), 'gm'),		css: 'variable'},
		{ regex: new RegExp(this.getKeywords(functions), 'gm'),		css: 'functions'},
		{ regex: /[0-9]+(\.[0-9]*)?/gm,					css: 'value'},
		{ regex: /[0-9]*\.[0-9]+/gm,					css: 'value'}
		];
	
	this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
};

SyntaxHighlighter.brushes.JScript.prototype	= new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.JScript.aliases	= ['js', 'jscript', 'javascript'];

