2022-11-25 06:41:33 +01:00
|
|
|
/*! `diff` grammar compiled for Highlight.js 11.7.0 */
|
2021-10-18 07:02:03 +02:00
|
|
|
(()=>{var e=(()=>{"use strict";return e=>{const a=e.regex;return{name:"Diff",
|
|
|
|
aliases:["patch"],contains:[{className:"meta",relevance:10,
|
|
|
|
match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)
|
|
|
|
},{className:"comment",variants:[{
|
|
|
|
begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),
|
|
|
|
end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{
|
|
|
|
className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,
|
|
|
|
end:/$/}]}}})();hljs.registerLanguage("diff",e)})();
|