UNPKG

highlight-ts

Version:

Highlight.JS in TypeScript (and ES6).

47 lines 1.26 kB
"use strict"; /* Language: Diff Description: Unified and context diff Author: Vasily Polovnyov <vast@whiteants.net> Category: common */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Diff = { name: 'diff', aliases: ['patch'], contains: [ { className: 'meta', relevance: 10, variants: [ { begin: /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/ }, { begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/ }, { begin: /^\-\-\- +\d+,\d+ +\-\-\-\-$/ } ] }, { className: 'comment', variants: [ { begin: /Index: /, end: /$/ }, { begin: /={3,}/, end: /$/ }, { begin: /^\-{3}/, end: /$/ }, { begin: /^\*{3} /, end: /$/ }, { begin: /^\+{3}/, end: /$/ }, { begin: /\*{5}/, end: /\*{5}$/ } ] }, { className: 'addition', begin: '^\\+', end: '$' }, { className: 'deletion', begin: '^\\-', end: '$' }, { className: 'addition', begin: '^\\!', end: '$' } ] }; //# sourceMappingURL=diff.js.map