Sha256: 3f346c75cac33fdecde7144a671141840aefdb1e783ba9ae11b550ea6cac90a8
Contents?: true
Size: 355 Bytes
Versions: 23
Compression:
Stored size: 355 Bytes
Contents
CodeMirror.defineMode("diff",function(){var r={"+":"tag","-":"string","@":"meta"};return{token:function(e){var i=e.string.search(/[\t ]+?$/);if(!e.sol()||0===i)return e.skipToEnd(),("error "+(r[e.string.charAt(0)]||"")).replace(/ $/,"");var n=r[e.peek()]||e.skipToEnd();return-1===i?e.skipToEnd():e.pos=i,n}}}),CodeMirror.defineMIME("text/x-diff","diff");
Version data entries
23 entries across 23 versions & 1 rubygems