aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/diff/diff.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-02-24 12:08:49 -0800
committerPushkar Joshi2012-02-24 12:08:49 -0800
commit03ca7a5ed13c25faaa9100bb666e062fd15335e6 (patch)
treec51112223ceb9121cd595a60335eb2795215590f /imports/codemirror/mode/diff/diff.js
parentfcb12cc09eb3cd3b42bd215877ba18f449275b75 (diff)
parent053fc63a2950c7a5ee4ebf98033b64d474a3c46e (diff)
downloadninja-03ca7a5ed13c25faaa9100bb666e062fd15335e6.tar.gz
Merge branch 'pentool' into brushtool
Conflicts: imports/codemirror/mode/scheme/scheme.js js/tools/BrushTool.js
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");