diff.min.js 610 B

123456789
  1. /*! `diff` grammar compiled for Highlight.js 11.7.0 */
  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;