Sha256: aeda1ae04b9a0a46f7b58d8abcfe4ebbf86b8d36e433321b8c1d283e47750a8f

Contents?: true

Size: 853 Bytes

Versions: 20

Compression:

Stored size: 853 Bytes

Contents

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://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]");

  MT("complex_regexp",
     "[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]")

  MT("indented_heredoc",
     "[keyword def] [def x]",
     "  [variable y] [operator =] [string <<-FOO]",
     "[string     bar]",
     "[string   FOO]",
     "[keyword end]")
})();

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
hyde_admin-0.0.13 bin/mode/ruby/test.js
wallaby-7.0.0.beta2 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-7.0.0.beta1 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.1.6 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
hyde_admin-0.0.11 bin/mode/ruby/test.js
hyde_admin-0.0.10 bin/mode/ruby/test.js
wallaby-6.1.5 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.1.4 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
hyde_admin-0.0.9 bin/mode/ruby/test.js
hyde_admin-0.0.8 bin/mode/ruby/test.js
hyde_admin-0.0.7 bin/mode/ruby/test.js
hyde_admin-0.0.5 bin/mode/ruby/test.js
hyde_admin-0.0.4 bin/mode/ruby/test.js
hyde_admin-0.0.3 bin/mode/ruby/test.js
wallaby-6.1.3 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.1.2 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.1.1 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.1.0 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.0.2 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js
wallaby-6.0.1 vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js