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
25		var inits = 'class interface package macro enum typedef extends implements dynamic in for if while else do try switch case catch';
26
27		var keywords = 'return break continue new throw cast using import function public private inline static untyped callback true false null Int Float String Void Std Bool Dynamic Array Vector';
28
29		this.regexList = [
30			{ regex:SyntaxHighlighter.regexLib.singleLineCComments , css:'comments' },
31			// one line comments
32			{ regex:SyntaxHighlighter.regexLib.multiLineCComments , css:'comments' },
33			// multiline comments
34			{ regex:SyntaxHighlighter.regexLib.doubleQuotedString , css:'string' },
35			// double quoted strings
36			{ regex:SyntaxHighlighter.regexLib.singleQuotedString , css:'string' },
37			// single quoted strings
38			{ regex:/\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi , css:'value' },
39			// numbers
40			{ regex:new RegExp ( this.getKeywords ( inits ) , 'gm' ) , css:'color3' },
41			// initializations
42			{ regex:new RegExp ( this.getKeywords ( keywords ) , 'gm' ) , css:'keyword' },
43			// keywords
44			{ regex:new RegExp ( 'var' , 'gm' ) , css:'variable' },
45			// variable
46			{ regex:new RegExp ( 'trace' , 'gm' ) , css:'color1' },
47			//compiler conditionals
48			{ regex:new RegExp ( '#if' , 'gm' ) , css:'comments' },
49			{ regex:new RegExp ( '#elseif' , 'gm' ) , css:'comments' },
50			{ regex:new RegExp ( '#end' , 'gm' ) , css:'comments' },
51			{ regex:new RegExp ( '#error' , 'gm' ) , css:'comments' }
52		];
53
54		//standard compiler conditionals flags
55		var flags = [
56			"debug", "error", "cpp", "js", "neko", "php", "flash", "flash8", "flash9", "flash10", "flash10", "mobile", "desktop", "web", "ios", "android", "iphone"
57		];
58
59		//append the flags to the array with a ! operator
60		var i;
61		var length = flags.length;
62		for ( i = 0 ; i <= length - 1 ; i ++ )
63		{
64			this.regexList.push ( {regex:new RegExp ( flags[i] , 'gm' ) , css:'comments'} );
65			this.regexList.push ( {regex:new RegExp ( '!' + flags[i] , 'gm' ) , css:'comments'} );
66		}
67
68		this.forHtmlScript ( SyntaxHighlighter.regexLib.scriptScriptTags );
69	}
70
71	;
72
73	Brush.prototype = new SyntaxHighlighter.Highlighter ();
74	Brush.aliases = ['haxe', 'hx'];
75
76	SyntaxHighlighter.brushes.Haxe = Brush;
77
78	// CommonJS
79	typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
80}) ();
81