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 this.regexList = [ 25 { regex: /^\+\+\+ .*$/gm, css: 'color2' }, // new file 26 { regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file 27 { regex: /^\s.*$/gm, css: 'color1' }, // unchanged 28 { regex: /^@@.*@@.*$/gm, css: 'variable' }, // location 29 { regex: /^\+.*$/gm, css: 'string' }, // additions 30 { regex: /^\-.*$/gm, css: 'color3' } // deletions 31 ]; 32 }; 33 34 Brush.prototype = new SyntaxHighlighter.Highlighter(); 35 Brush.aliases = ['diff', 'patch']; 36 37 SyntaxHighlighter.brushes.Diff = Brush; 38 39 // CommonJS 40 typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 41})(); 42