diff options
author | Armen Kesablyan | 2012-02-22 16:26:41 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-22 16:26:41 -0800 |
commit | 0bd1cefea2ab350fad1a891bdc926053b799aafc (patch) | |
tree | 962f559fcc02a3dfeb297d59907e40fa153453f3 /imports/codemirror/mode/diff/diff.js | |
parent | 695bc5082f48dddf66ce31480a4faefc067b38bd (diff) | |
parent | 2d2b1af8b5c0d506fe6a1cf65614101fec145970 (diff) | |
download | ninja-0bd1cefea2ab350fad1a891bdc926053b799aafc.tar.gz |
Merge branch 'refs/heads/master' into new-tool-icons
Diffstat (limited to 'imports/codemirror/mode/diff/diff.js')
-rwxr-xr-x | imports/codemirror/mode/diff/diff.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/imports/codemirror/mode/diff/diff.js b/imports/codemirror/mode/diff/diff.js new file mode 100755 index 00000000..725bb2c7 --- /dev/null +++ b/imports/codemirror/mode/diff/diff.js | |||
@@ -0,0 +1,13 @@ | |||
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 | |||
13 | CodeMirror.defineMIME("text/x-diff", "diff"); | ||