Sha256: 146250040f40d4f3691eb9d6b2f38d138571eb42a1554163758018658c9da33c

Contents?: true

Size: 316 Bytes

Versions: 58

Compression:

Stored size: 316 Bytes

Contents

CodeMirror.defineMode("diff", function() {
  return {
    token: function(stream) {
      var ch = stream.next();
      stream.skipToEnd();
      if (ch == "+") return "plus";
      if (ch == "-") return "minus";
      if (ch == "@") return "rangeinfo";
    }
  };
});

CodeMirror.defineMIME("text/x-diff", "diff");

Version data entries

58 entries across 57 versions & 7 rubygems

Version Path
ledger_web-1.5.2 lib/ledger_web/public/codemirror/mode/diff/diff.js
ledger_web-1.5.1 lib/ledger_web/public/codemirror/mode/diff/diff.js
ledger_web-1.5.0 lib/ledger_web/public/codemirror/mode/diff/diff.js
ledger_web-1.4.11 lib/ledger_web/public/codemirror/mode/diff/diff.js
milksteak-0.0.15 lib/public/milksteak/codemirror2/mode/diff/diff.js
milksteak-0.0.13 lib/public/milksteak/codemirror2/mode/diff/diff.js
milksteak-0.0.12 lib/public/milksteak/codemirror2/mode/diff/diff.js
erp_app-3.0.7 public/javascripts/erp_app/codemirror/mode/diff/diff.js
erp_app-3.0.6 public/javascripts/erp_app/codemirror/mode/diff/diff.js
erp_app-3.0.5 public/javascripts/erp_app/codemirror/mode/diff/diff.js
erp_app-3.0.4 public/javascripts/erp_app/codemirror/mode/diff/diff.js
erp_app-3.0.3 public/javascripts/erp_app/codemirror/mode/diff/diff.js
milksteak-0.0.11 lib/public/milksteak/codemirror2/mode/diff/diff.js
ledger_web-1.4.10 lib/ledger_web/public/codemirror/mode/diff/diff.js
milksteak-0.0.10 lib/public/milksteak/codemirror2/mode/diff/diff.js
milksteak-0.0.9 lib/public/milksteak/codemirror2/mode/diff/diff.js
milksteak-0.0.8 lib/public/milksteak/codemirror2/mode/diff/diff.js
erp_app-3.0.2 public/javascripts/erp_app/codemirror/mode/diff/diff.js
milksteak-0.0.7 lib/public/milksteak/codemirror2/mode/diff/diff.js
milksteak-0.0.6 lib/public/milksteak/codemirror2/mode/diff/diff.js