Sha256: c21392c1c60d6ec259940b6ef14a34e2052d7ec8b22b0b94cb6d7e11ad4d03e7

Contents?: true

Size: 1.31 KB

Versions: 11

Compression:

Stored size: 1.31 KB

Contents

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function() {
  var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "cypher");
  function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }

  MT("unbalancedDoubledQuotedString",
      "[string \"a'b\"][variable c]");

  MT("unbalancedSingleQuotedString",
      "[string 'a\"b'][variable c]");

  MT("doubleQuotedString",
      "[string \"a\"][variable b]");

  MT("singleQuotedString",
      "[string 'a'][variable b]");

  MT("single attribute (with content)",
      "[node {][atom a:][string 'a'][node }]");

  MT("multiple attribute, singleQuotedString (with content)",
      "[node {][atom a:][string 'a'][node ,][atom b:][string 'b'][node }]");

  MT("multiple attribute, doubleQuotedString (with content)",
      "[node {][atom a:][string \"a\"][node ,][atom b:][string \"b\"][node }]");

  MT("single attribute (without content)",
      "[node {][atom a:][string 'a'][node }]");

  MT("multiple attribute, singleQuotedString (without content)",
      "[node {][atom a:][string ''][node ,][atom b:][string ''][node }]");

  MT("multiple attribute, doubleQuotedString (without content)",
      "[node {][atom a:][string \"\"][node ,][atom b:][string \"\"][node }]");
 })();

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wallaby-7.0.0.beta2 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-7.0.0.beta1 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.6 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.5 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.4 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.3 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.2 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.1 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.1.0 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.0.2 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js
wallaby-6.0.1 vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js