30 SyntaxHighlighter.brushes.JScript =
function()
32 var keywords =
'break case catch continue ' +
33 'default delete do else false ' +
34 'for function if in instanceof ' +
35 'new null return super switch ' +
36 'this throw true try typeof var while with'
40 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css:
'comments' },
41 { regex: SyntaxHighlighter.regexLib.multiLineCComments, css:
'comments' },
42 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css:
'string' },
43 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css:
'string' },
44 { regex: /\s*#.*/gm, css:
'preprocessor' },
45 { regex:
new RegExp(this.getKeywords(keywords),
'gm'), css:
'keyword' }
48 this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
51 SyntaxHighlighter.brushes.JScript.prototype =
new SyntaxHighlighter.Highlighter();
52 SyntaxHighlighter.brushes.JScript.aliases = [
'js',
'jscript',
'javascript'];