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		function hereDocProcess(match, regexInfo)
25		{
26			var constructor = SyntaxHighlighter.Match,
27				result = []
28				;
29			if (match.here_doc != null)
30				result.push(new constructor(match.here_doc, match.index + match[0].indexOf(match.here_doc), 'string'));
31
32			if (match.full_tag != null)
33				result.push(new constructor(match.full_tag, match.index, 'preprocessor'));
34
35			if (match.end_tag != null)
36				result.push(new constructor(match.end_tag, match.index + match[0].lastIndexOf(match.end_tag), 'preprocessor'));
37			return result;
38		}
39		var keywords =	'if fi then elif else for do done until while break continue case esac function return in eq ne ge le';
40		var commands =  'alias apropos awk basename base64 bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
41						'cksum clear cmp comm command cp cron crontab crypt csplit cut date dc dd ddrescue declare df ' +
42						'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
43						'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
44						'free fsck ftp gawk gcc gdb getconf getopts grep groups gzip hash head history hostname id ifconfig ' +
45						'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
46						'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
47						'mv nasm nc ndisasm netstat nice nl nohup nslookup objdump od open op passwd paste pathchk ping popd pr printcap ' +
48						'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
49						'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
50						'sleep sort source split ssh strace strings su sudo sum symlink sync tail tar tee test time ' +
51						'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
52						'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
53						'vi watch wc whereis which who whoami Wget xargs xxd yes chsh'
54						;
55
56		this.regexList = [
57			{ regex: /^#!.*$/gm,											css: 'preprocessor bold' },
58			{ regex: /\/[\w-\/]+/gm,										css: 'plain' },
59			{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments,		css: 'comments' },		// one line comments
60			{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,			css: 'string' },		// double quoted strings
61			{ regex: SyntaxHighlighter.regexLib.singleQuotedString,			css: 'string' },		// single quoted strings
62			{ regex: new RegExp(this.getKeywords(keywords), 'gm'),			css: 'keyword' },		// keywords
63			{ regex: new RegExp(this.getKeywords(commands), 'gm'),			css: 'functions' },		// commands
64			{ regex: new XRegExp("(?<full_tag>(&lt;|<){2}(?<tag>\\w+)) .*$(?<here_doc>[\\s\\S]*)(?<end_tag>^\\k<tag>$)",'gm'),	func: hereDocProcess }
65			];
66	}
67
68	Brush.prototype	= new SyntaxHighlighter.Highlighter();
69	Brush.aliases	= ['bash', 'shell', 'sh'];
70
71	SyntaxHighlighter.brushes.Bash = Brush;
72
73	// CommonJS
74	typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
75})();
76