Patch Realtime into CodeMirror in CryptPad

This commit is contained in:
Yann Flory
2015-11-25 09:48:30 +01:00
parent 05ce2695b2
commit 32f44161a7
721 changed files with 148708 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("divide_equal_operator",
"[variable bar] [operator /=] [variable foo]");
MT("divide_equal_operator_no_spacing",
"[variable foo][operator /=][number 42]");
})();