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/** 18 * SyntaxHighlighter 19 * http://alexgorbatchev.com/SyntaxHighlighter 20 * 21 * @license 22 * Dual licensed under the MIT and GPL licenses. 23 */ 24;(function() 25{ 26 // CommonJS 27 typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 28 29 function Brush() { 30 // Contributed by Chad Granum 31 this.regexList = [ 32 // Plan 33 { regex: new RegExp('^1..\\d+', 'gm'), css: 'plain bold italic' }, 34 35 // Match ok, not ok, and with test numbers 36 { regex: new RegExp('^ok( \\d+)?', 'gm'), css: 'keyword' }, 37 { regex: new RegExp('^not ok( \\d+)?', 'gm'), css: 'color3 bold' }, 38 39 // Directives 40 { regex: new RegExp('(?!^\\s*)#.*$', 'gm'), css: 'variable bold' }, 41 42 // Diagnostics 43 { regex: new RegExp('^#.*$', 'gm'), css: 'comments bold' }, 44 45 // comments 46 { regex: new RegExp('^(?!(not )?ok)[^1].*$', 'gm'), css: 'comments' }, 47 48 // Quoted items in messages 49 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 50 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 51 ]; 52 } 53 54 Brush.prototype = new SyntaxHighlighter.Highlighter(); 55 Brush.aliases = ['tap', 'Tap', 'TAP']; 56 57 SyntaxHighlighter.brushes.TAP = Brush; 58 59 // CommonJS 60 typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 61})(); 62 63