3 * http://alexgorbatchev.com/
\r
5 * SyntaxHighlighter is donationware. If you are using it, please donate.
\r
6 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
\r
9 * 2.0.296 (March 01 2009)
\r
12 * Copyright (C) 2004-2009 Alex Gorbatchev.
\r
15 * This file is part of SyntaxHighlighter.
\r
17 * SyntaxHighlighter is free software: you can redistribute it and/or modify
\r
18 * it under the terms of the GNU General Public License as published by
\r
19 * the Free Software Foundation, either version 3 of the License, or
\r
20 * (at your option) any later version.
\r
22 * SyntaxHighlighter is distributed in the hope that it will be useful,
\r
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
25 * GNU General Public License for more details.
\r
27 * You should have received a copy of the GNU General Public License
\r
28 * along with SyntaxHighlighter. If not, see <http://www.gnu.org/licenses/>.
\r
30 SyntaxHighlighter.brushes.JScript = function()
\r
32 var keywords = 'abstract boolean break byte case catch char class const continue debugger ' +
\r
33 'default delete do double else enum export extends false final finally float ' +
\r
34 'for function goto if implements import in instanceof int interface long native ' +
\r
35 'new null package private protected public return short static super switch ' +
\r
36 'synchronized this throw throws transient true try typeof var void volatile while with';
\r
39 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
\r
40 { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
\r
41 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
\r
42 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
\r
43 { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
\r
44 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
\r
47 this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
\r
50 SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
\r
51 SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
\r