wzy
2021-04-01 d388e2788b7ef088d7cd40f901b0acdcec460bc3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 * SyntaxHighlighter
 * http://alexgorbatchev.com/SyntaxHighlighter
 *
 * SyntaxHighlighter is donationware. If you are using it, please donate.
 * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
 *
 * @version
 * 3.0.83 (July 02 2010)
 * 
 * @copyright
 * Copyright (C) 2004-2010 Alex Gorbatchev.
 *
 * @license
 * Dual licensed under the MIT and GPL licenses.
 */
;(function()
{
    // CommonJS
    typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
 
    function Brush()
    {
        this.regexList = [
            { regex: /^\+\+\+.*$/gm,        css: 'color2' },
            { regex: /^\-\-\-.*$/gm,        css: 'color2' },
            { regex: /^\s.*$/gm,            css: 'color1' },
            { regex: /^@@.*@@$/gm,            css: 'variable' },
            { regex: /^\+[^\+]{1}.*$/gm,    css: 'string' },
            { regex: /^\-[^\-]{1}.*$/gm,    css: 'comments' }
            ];
    };
 
    Brush.prototype    = new SyntaxHighlighter.Highlighter();
    Brush.aliases    = ['diff', 'patch'];
 
    SyntaxHighlighter.brushes.Diff = Brush;
 
    // CommonJS
    typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();