aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/diff/diff.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-02-22 16:26:41 -0800
committerArmen Kesablyan2012-02-22 16:26:41 -0800
commit0bd1cefea2ab350fad1a891bdc926053b799aafc (patch)
tree962f559fcc02a3dfeb297d59907e40fa153453f3 /imports/codemirror/mode/diff/diff.js
parent695bc5082f48dddf66ce31480a4faefc067b38bd (diff)
parent2d2b1af8b5c0d506fe6a1cf65614101fec145970 (diff)
downloadninja-0bd1cefea2ab350fad1a891bdc926053b799aafc.tar.gz
Merge branch 'refs/heads/master' into new-tool-icons
Diffstat (limited to 'imports/codemirror/mode/diff/diff.js')
-rwxr-xr-ximports/codemirror/mode/diff/diff.js13
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 @@
1CodeMirror.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
13CodeMirror.defineMIME("text/x-diff", "diff");