diff.min.js 615 B

123456789
  1. /*! `diff` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{const a=e.regex;return{name:"Diff",
  3. 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:/$/}]}}})();hljs.registerLanguage("diff",e)})();