1/**
2 * SyntaxHighlighter
3 * http://alexgorbatchev.com/SyntaxHighlighter
4 *
5 * @license
6 * Dual licensed under the MIT and GPL licenses.
7 */
8;(function()
9{
10    // CommonJS
11    typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
12
13    function Brush() {
14        // Contributed by Chad Granum
15        this.regexList = [
16            // Plan
17            { regex: new RegExp('^1..\\d+', 'gm'), css: 'plain bold italic' },
18
19            // Match ok, not ok, and with test numbers
20            { regex: new RegExp('^ok( \\d+)?', 'gm'),     css: 'keyword' },
21            { regex: new RegExp('^not ok( \\d+)?', 'gm'), css: 'color3 bold' },
22
23            // Directives
24            { regex: new RegExp('(?!^\\s*)#.*$', 'gm'), css: 'variable bold' },
25
26            // Diagnostics
27            { regex: new RegExp('^#.*$', 'gm'), css: 'comments bold' },
28
29            // comments
30            { regex: new RegExp('^(?!(not )?ok)[^1].*$', 'gm'), css: 'comments' },
31
32            // Quoted items in messages
33			{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
34			{ regex: SyntaxHighlighter.regexLib.singleQuotedString,	css: 'string' },
35        ];
36    }
37
38    Brush.prototype = new SyntaxHighlighter.Highlighter();
39    Brush.aliases   = ['tap', 'Tap', 'TAP'];
40
41    SyntaxHighlighter.brushes.TAP = Brush;
42
43    // CommonJS
44    typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
45})();
46
47