git add stuff
This commit is contained in:
13
simpla/design/js/codemirror/mode/diff/diff.js
vendored
Normal file
13
simpla/design/js/codemirror/mode/diff/diff.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
CodeMirror.defineMode("diff", function() {
|
||||
return {
|
||||
token: function(stream) {
|
||||
var ch = stream.next();
|
||||
stream.skipToEnd();
|
||||
if (ch == "+") return "diff-plus";
|
||||
if (ch == "-") return "diff-minus";
|
||||
if (ch == "@") return "diff-rangeinfo";
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
CodeMirror.defineMIME("text/x-diff", "diff");
|
||||
Reference in New Issue
Block a user