You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB
JavaScript

/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.9 (Thu, 04 Dec 2014 12:32:21 GMT)
*
* @copyright
* Copyright (C) 2004-2013 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush() {
// Contributed by Chad Granum
this.regexList = [
// Plan
{ regex: new RegExp('^1..\\d+', 'gm'), css: 'plain bold italic' },
// Match ok, not ok, and with test numbers
{ regex: new RegExp('^ok( \\d+)?', 'gm'), css: 'keyword' },
{ regex: new RegExp('^not ok( \\d+)?', 'gm'), css: 'color3 bold' },
// Directives
{ regex: new RegExp('(?!^\\s*)#.*$', 'gm'), css: 'variable bold' },
// Diagnostics
{ regex: new RegExp('^#.*$', 'gm'), css: 'comments bold' },
// comments
{ regex: new RegExp('^(?!(not )?ok)[^1].*$', 'gm'), css: 'comments' },
// Quoted items in messages
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
];
}
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['tap', 'Tap', 'TAP'];
SyntaxHighlighter.brushes.TAP = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();