123456789101112131415161718192021222324252627282930313233343536373839 |
- module.exports = function(hljs) {
- return {
- 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: /^\*{15}$/ }
- ]
- },
- {
- className: 'addition',
- begin: '^\\+', end: '$'
- },
- {
- className: 'deletion',
- begin: '^\\-', end: '$'
- },
- {
- className: 'addition',
- begin: '^\\!', end: '$'
- }
- ]
- };
- };
|