test.js 675 B

12345678910111213141516
  1. // CodeMirror, copyright (c) by Marijn Haverbeke and others
  2. // Distributed under an MIT license: https://codemirror.net/LICENSE
  3. (function() {
  4. var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");
  5. function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
  6. MT("divide_equal_operator",
  7. "[variable bar] [operator /=] [variable foo]");
  8. MT("divide_equal_operator_no_spacing",
  9. "[variable foo][operator /=][number 42]");
  10. MT("complex_regexp",
  11. "[keyword if] [variable cr] [operator =~] [string-2 /(?: \\( #{][tag RE_NOT][string-2 }\\( | #{][tag RE_NOT_PAR_OR][string-2 }* #{][tag RE_OPA_OR][string-2 } )/][variable x]")
  12. })();