1/**
2 * SyntaxHighlighter
3 * http://alexgorbatchev.com/SyntaxHighlighter
4 *
5 * SyntaxHighlighter is donationware. If you are using it, please donate.
6 * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 *
8 * @version
9 * 3.0.90 (Sat, 18 Jun 2016 21:01:41 GMT)
10 *
11 * @copyright
12 * Copyright (C) 2004-2013 Alex Gorbatchev.
13 *
14 * @license
15 * Dual licensed under the MIT and GPL licenses.
16 */
17;(function()
18{
19	// CommonJS
20	SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
22	function Brush()
23	{
24		var keywords =	'abstract as async await base bool break byte case catch char checked class const ' +
25						'continue decimal default delegate do double else enum event explicit volatile ' +
26						'extern false finally fixed float for foreach get goto if implicit in int ' +
27						'interface internal is lock long namespace new null object operator out ' +
28						'override params private protected public readonly ref return sbyte sealed set ' +
29						'short sizeof stackalloc static string struct switch this throw true try ' +
30						'typeof uint ulong unchecked unsafe ushort using virtual void while var ' +
31						'from group by into select let where orderby join on equals ascending descending';
32
33		function fixComments(match, regexInfo)
34		{
35			var css = (match[0].indexOf("///") == 0)
36				? 'color1'
37				: 'comments'
38				;
39
40			return [new SyntaxHighlighter.Match(match[0], match.index, css)];
41		}
42
43		this.regexList = [
44			{ regex: SyntaxHighlighter.regexLib.singleLineCComments,	func : fixComments },		// one line comments
45			{ regex: SyntaxHighlighter.regexLib.multiLineCComments,		css: 'comments' },			// multiline comments
46			{ regex: /@"(?:[^"]|"")*"/g,								css: 'string' },			// @-quoted strings
47			{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,		css: 'string' },			// strings
48			{ regex: SyntaxHighlighter.regexLib.singleQuotedString,		css: 'string' },			// strings
49			{ regex: /^\s*#.*/gm,										css: 'preprocessor' },		// preprocessor tags like #region and #endregion
50			{ regex: new RegExp(this.getKeywords(keywords), 'gm'),		css: 'keyword' },			// c# keyword
51			{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g,	css: 'keyword' },			// contextual keyword: 'partial'
52			{ regex: /\byield(?=\s+(?:return|break)\b)/g,				css: 'keyword' }			// contextual keyword: 'yield'
53			];
54
55		this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
56	};
57
58	Brush.prototype	= new SyntaxHighlighter.Highlighter();
59	Brush.aliases	= ['c#', 'c-sharp', 'csharp'];
60
61	SyntaxHighlighter.brushes.CSharp = Brush;
62
63	// CommonJS
64	typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
65})();
66