1 |
|
2 | var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex;return{
|
3 | name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,
|
4 | match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)
|
5 | },{className:"comment",variants:[{
|
6 | begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),
|
7 | end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{
|
8 | className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,
|
9 | end:/$/}]}}})();export default hljsGrammar; |
\ | No newline at end of file |