(function(i){typeof exports=="object"&&typeof module=="object"?i(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("diff",function(){var o={"+":"positive","-":"negative","@":"meta"};return{token:function(e){var n=e.string.search(/[\t ]+?$/);if(!e.sol()||n===0)return e.skipToEnd(),("error "+(o[e.string.charAt(0)]||"")).replace(/ $/,"");var f=o[e.peek()]||e.skipToEnd();return n===-1?e.skipToEnd():e.pos=n,f}}}),i.defineMIME("text/x-diff","diff")});
