source:
trunk/plugins/LocalFilesEditor/codemirror/mode/diff/diff.js
@
10307
Last change on this file since 10307 was 10307, checked in by , 13 years ago | |
---|---|
File size: 331 bytes |
Line | |
---|---|
1 | CodeMirror.defineMode("diff", function() { |
2 | return { |
3 | token: function(stream) { |
4 | var ch = stream.next(); |
5 | stream.skipToEnd(); |
6 | if (ch == "+") return "diff-plus"; |
7 | if (ch == "-") return "diff-minus"; |
8 | if (ch == "@") return "diff-rangeinfo"; |
9 | } |
10 | }; |
11 | }); |
12 | |
13 | CodeMirror.defineMIME("text/x-diff", "diff"); |
Note: See TracBrowser
for help on using the repository browser.