1;(function()
2{
3	// CommonJS
4	SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
5
6	function Brush()
7	{
8		// Contributed by Yegor Jbanov and David Bernard.
9
10		var keywords =	'val sealed case def true trait implicit forSome import match object null finally super ' +
11						'override try lazy for var catch throw type extends class while with new final yield abstract ' +
12						'else do if return protected private this package false';
13
14		var keyops =	'[_:=><%#@]+';
15
16		this.regexList = [
17			{ regex: SyntaxHighlighter.regexLib.singleLineCComments,			css: 'comments' },	// one line comments
18			{ regex: SyntaxHighlighter.regexLib.multiLineCComments,				css: 'comments' },	// multiline comments
19			{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString,	css: 'string' },	// multi-line strings
20			{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString,    css: 'string' },	// double-quoted string
21			{ regex: SyntaxHighlighter.regexLib.singleQuotedString,				css: 'string' },	// strings
22			{ regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi,								css: 'value' },		// numbers
23			{ regex: new RegExp(this.getKeywords(keywords), 'gm'),				css: 'keyword' },	// keywords
24			{ regex: new RegExp(keyops, 'gm'),									css: 'keyword' }	// scala keyword
25			];
26	}
27
28	Brush.prototype	= new SyntaxHighlighter.Highlighter();
29	Brush.aliases	= ['scala'];
30
31	SyntaxHighlighter.brushes.Scala = Brush;
32
33	// CommonJS
34	typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
35})();
36