123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- import "./chunk-2LSFTFF7.js";
- // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/cypher/cypher.js
- var conf = {
- comments: {
- lineComment: "//",
- blockComment: ["/*", "*/"]
- },
- brackets: [
- ["{", "}"],
- ["[", "]"],
- ["(", ")"]
- ],
- autoClosingPairs: [
- { open: "{", close: "}" },
- { open: "[", close: "]" },
- { open: "(", close: ")" },
- { open: '"', close: '"' },
- { open: "'", close: "'" },
- { open: "`", close: "`" }
- ],
- surroundingPairs: [
- { open: "{", close: "}" },
- { open: "[", close: "]" },
- { open: "(", close: ")" },
- { open: '"', close: '"' },
- { open: "'", close: "'" },
- { open: "`", close: "`" }
- ]
- };
- var language = {
- defaultToken: "",
- tokenPostfix: `.cypher`,
- ignoreCase: true,
- brackets: [
- { open: "{", close: "}", token: "delimiter.curly" },
- { open: "[", close: "]", token: "delimiter.bracket" },
- { open: "(", close: ")", token: "delimiter.parenthesis" }
- ],
- keywords: [
- "ALL",
- "AND",
- "AS",
- "ASC",
- "ASCENDING",
- "BY",
- "CALL",
- "CASE",
- "CONTAINS",
- "CREATE",
- "DELETE",
- "DESC",
- "DESCENDING",
- "DETACH",
- "DISTINCT",
- "ELSE",
- "END",
- "ENDS",
- "EXISTS",
- "IN",
- "IS",
- "LIMIT",
- "MANDATORY",
- "MATCH",
- "MERGE",
- "NOT",
- "ON",
- "ON",
- "OPTIONAL",
- "OR",
- "ORDER",
- "REMOVE",
- "RETURN",
- "SET",
- "SKIP",
- "STARTS",
- "THEN",
- "UNION",
- "UNWIND",
- "WHEN",
- "WHERE",
- "WITH",
- "XOR",
- "YIELD"
- ],
- builtinLiterals: ["true", "TRUE", "false", "FALSE", "null", "NULL"],
- builtinFunctions: [
- "abs",
- "acos",
- "asin",
- "atan",
- "atan2",
- "avg",
- "ceil",
- "coalesce",
- "collect",
- "cos",
- "cot",
- "count",
- "degrees",
- "e",
- "endNode",
- "exists",
- "exp",
- "floor",
- "head",
- "id",
- "keys",
- "labels",
- "last",
- "left",
- "length",
- "log",
- "log10",
- "lTrim",
- "max",
- "min",
- "nodes",
- "percentileCont",
- "percentileDisc",
- "pi",
- "properties",
- "radians",
- "rand",
- "range",
- "relationships",
- "replace",
- "reverse",
- "right",
- "round",
- "rTrim",
- "sign",
- "sin",
- "size",
- "split",
- "sqrt",
- "startNode",
- "stDev",
- "stDevP",
- "substring",
- "sum",
- "tail",
- "tan",
- "timestamp",
- "toBoolean",
- "toFloat",
- "toInteger",
- "toLower",
- "toString",
- "toUpper",
- "trim",
- "type"
- ],
- operators: [
- "+",
- "-",
- "*",
- "/",
- "%",
- "^",
- "=",
- "<>",
- "<",
- ">",
- "<=",
- ">=",
- "->",
- "<-",
- "-->",
- "<--"
- ],
- escapes: /\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
- digits: /\d+/,
- octaldigits: /[0-7]+/,
- hexdigits: /[0-9a-fA-F]+/,
- tokenizer: {
- root: [[/[{}[\]()]/, "@brackets"], { include: "common" }],
- common: [
- { include: "@whitespace" },
- { include: "@numbers" },
- { include: "@strings" },
- [/:[a-zA-Z_][\w]*/, "type.identifier"],
- [
- /[a-zA-Z_][\w]*(?=\()/,
- {
- cases: {
- "@builtinFunctions": "predefined.function"
- }
- }
- ],
- [
- /[a-zA-Z_$][\w$]*/,
- {
- cases: {
- "@keywords": "keyword",
- "@builtinLiterals": "predefined.literal",
- "@default": "identifier"
- }
- }
- ],
- [/`/, "identifier.escape", "@identifierBacktick"],
- [/[;,.:|]/, "delimiter"],
- [
- /[<>=%+\-*/^]+/,
- {
- cases: {
- "@operators": "delimiter",
- "@default": ""
- }
- }
- ]
- ],
- numbers: [
- [/-?(@digits)[eE](-?(@digits))?/, "number.float"],
- [/-?(@digits)?\.(@digits)([eE]-?(@digits))?/, "number.float"],
- [/-?0x(@hexdigits)/, "number.hex"],
- [/-?0(@octaldigits)/, "number.octal"],
- [/-?(@digits)/, "number"]
- ],
- strings: [
- [/"([^"\\]|\\.)*$/, "string.invalid"],
- [/'([^'\\]|\\.)*$/, "string.invalid"],
- [/"/, "string", "@stringDouble"],
- [/'/, "string", "@stringSingle"]
- ],
- whitespace: [
- [/[ \t\r\n]+/, "white"],
- [/\/\*/, "comment", "@comment"],
- [/\/\/.*$/, "comment"]
- ],
- comment: [
- [/\/\/.*/, "comment"],
- [/[^/*]+/, "comment"],
- [/\*\//, "comment", "@pop"],
- [/[/*]/, "comment"]
- ],
- stringDouble: [
- [/[^\\"]+/, "string"],
- [/@escapes/, "string"],
- [/\\./, "string.invalid"],
- [/"/, "string", "@pop"]
- ],
- stringSingle: [
- [/[^\\']+/, "string"],
- [/@escapes/, "string"],
- [/\\./, "string.invalid"],
- [/'/, "string", "@pop"]
- ],
- identifierBacktick: [
- [/[^\\`]+/, "identifier.escape"],
- [/@escapes/, "identifier.escape"],
- [/\\./, "identifier.escape.invalid"],
- [/`/, "identifier.escape", "@pop"]
- ]
- }
- };
- export {
- conf,
- language
- };
- /*! Bundled license information:
- monaco-editor/esm/vs/basic-languages/cypher/cypher.js:
- (*!-----------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
- * Released under the MIT license
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
- *-----------------------------------------------------------------------------*)
- */
- //# sourceMappingURL=cypher-VACC23DH.js.map
|