2
0

diff.js 316 B

12345678910111213
  1. CodeMirror.defineMode("diff", function() {
  2. return {
  3. token: function(stream) {
  4. var ch = stream.next();
  5. stream.skipToEnd();
  6. if (ch == "+") return "plus";
  7. if (ch == "-") return "minus";
  8. if (ch == "@") return "rangeinfo";
  9. }
  10. };
  11. });
  12. CodeMirror.defineMIME("text/x-diff", "diff");