MCPcopy Create free account
hub / github.com/unconed/TermKit / Brush

Function Brush

HTML/external/syntaxhighlighter_3.0.83/scripts/shBrushDiff.js:22–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
22 function Brush()
23 {
24 this.regexList = [
25 { regex: /^\+\+\+.*$/gm, css: 'color2' },
26 { regex: /^\-\-\-.*$/gm, css: 'color2' },
27 { regex: /^\s.*$/gm, css: 'color1' },
28 { regex: /^@@.*@@$/gm, css: 'variable' },
29 { regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
30 { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
31 ];
32 };
33
34 Brush.prototype = new SyntaxHighlighter.Highlighter();
35 Brush.aliases = ['diff', 'patch'];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected