cypher-VACC23DH.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/cypher/cypher.js
  3. var conf = {
  4. comments: {
  5. lineComment: "//",
  6. blockComment: ["/*", "*/"]
  7. },
  8. brackets: [
  9. ["{", "}"],
  10. ["[", "]"],
  11. ["(", ")"]
  12. ],
  13. autoClosingPairs: [
  14. { open: "{", close: "}" },
  15. { open: "[", close: "]" },
  16. { open: "(", close: ")" },
  17. { open: '"', close: '"' },
  18. { open: "'", close: "'" },
  19. { open: "`", close: "`" }
  20. ],
  21. surroundingPairs: [
  22. { open: "{", close: "}" },
  23. { open: "[", close: "]" },
  24. { open: "(", close: ")" },
  25. { open: '"', close: '"' },
  26. { open: "'", close: "'" },
  27. { open: "`", close: "`" }
  28. ]
  29. };
  30. var language = {
  31. defaultToken: "",
  32. tokenPostfix: `.cypher`,
  33. ignoreCase: true,
  34. brackets: [
  35. { open: "{", close: "}", token: "delimiter.curly" },
  36. { open: "[", close: "]", token: "delimiter.bracket" },
  37. { open: "(", close: ")", token: "delimiter.parenthesis" }
  38. ],
  39. keywords: [
  40. "ALL",
  41. "AND",
  42. "AS",
  43. "ASC",
  44. "ASCENDING",
  45. "BY",
  46. "CALL",
  47. "CASE",
  48. "CONTAINS",
  49. "CREATE",
  50. "DELETE",
  51. "DESC",
  52. "DESCENDING",
  53. "DETACH",
  54. "DISTINCT",
  55. "ELSE",
  56. "END",
  57. "ENDS",
  58. "EXISTS",
  59. "IN",
  60. "IS",
  61. "LIMIT",
  62. "MANDATORY",
  63. "MATCH",
  64. "MERGE",
  65. "NOT",
  66. "ON",
  67. "ON",
  68. "OPTIONAL",
  69. "OR",
  70. "ORDER",
  71. "REMOVE",
  72. "RETURN",
  73. "SET",
  74. "SKIP",
  75. "STARTS",
  76. "THEN",
  77. "UNION",
  78. "UNWIND",
  79. "WHEN",
  80. "WHERE",
  81. "WITH",
  82. "XOR",
  83. "YIELD"
  84. ],
  85. builtinLiterals: ["true", "TRUE", "false", "FALSE", "null", "NULL"],
  86. builtinFunctions: [
  87. "abs",
  88. "acos",
  89. "asin",
  90. "atan",
  91. "atan2",
  92. "avg",
  93. "ceil",
  94. "coalesce",
  95. "collect",
  96. "cos",
  97. "cot",
  98. "count",
  99. "degrees",
  100. "e",
  101. "endNode",
  102. "exists",
  103. "exp",
  104. "floor",
  105. "head",
  106. "id",
  107. "keys",
  108. "labels",
  109. "last",
  110. "left",
  111. "length",
  112. "log",
  113. "log10",
  114. "lTrim",
  115. "max",
  116. "min",
  117. "nodes",
  118. "percentileCont",
  119. "percentileDisc",
  120. "pi",
  121. "properties",
  122. "radians",
  123. "rand",
  124. "range",
  125. "relationships",
  126. "replace",
  127. "reverse",
  128. "right",
  129. "round",
  130. "rTrim",
  131. "sign",
  132. "sin",
  133. "size",
  134. "split",
  135. "sqrt",
  136. "startNode",
  137. "stDev",
  138. "stDevP",
  139. "substring",
  140. "sum",
  141. "tail",
  142. "tan",
  143. "timestamp",
  144. "toBoolean",
  145. "toFloat",
  146. "toInteger",
  147. "toLower",
  148. "toString",
  149. "toUpper",
  150. "trim",
  151. "type"
  152. ],
  153. operators: [
  154. "+",
  155. "-",
  156. "*",
  157. "/",
  158. "%",
  159. "^",
  160. "=",
  161. "<>",
  162. "<",
  163. ">",
  164. "<=",
  165. ">=",
  166. "->",
  167. "<-",
  168. "-->",
  169. "<--"
  170. ],
  171. escapes: /\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  172. digits: /\d+/,
  173. octaldigits: /[0-7]+/,
  174. hexdigits: /[0-9a-fA-F]+/,
  175. tokenizer: {
  176. root: [[/[{}[\]()]/, "@brackets"], { include: "common" }],
  177. common: [
  178. { include: "@whitespace" },
  179. { include: "@numbers" },
  180. { include: "@strings" },
  181. [/:[a-zA-Z_][\w]*/, "type.identifier"],
  182. [
  183. /[a-zA-Z_][\w]*(?=\()/,
  184. {
  185. cases: {
  186. "@builtinFunctions": "predefined.function"
  187. }
  188. }
  189. ],
  190. [
  191. /[a-zA-Z_$][\w$]*/,
  192. {
  193. cases: {
  194. "@keywords": "keyword",
  195. "@builtinLiterals": "predefined.literal",
  196. "@default": "identifier"
  197. }
  198. }
  199. ],
  200. [/`/, "identifier.escape", "@identifierBacktick"],
  201. [/[;,.:|]/, "delimiter"],
  202. [
  203. /[<>=%+\-*/^]+/,
  204. {
  205. cases: {
  206. "@operators": "delimiter",
  207. "@default": ""
  208. }
  209. }
  210. ]
  211. ],
  212. numbers: [
  213. [/-?(@digits)[eE](-?(@digits))?/, "number.float"],
  214. [/-?(@digits)?\.(@digits)([eE]-?(@digits))?/, "number.float"],
  215. [/-?0x(@hexdigits)/, "number.hex"],
  216. [/-?0(@octaldigits)/, "number.octal"],
  217. [/-?(@digits)/, "number"]
  218. ],
  219. strings: [
  220. [/"([^"\\]|\\.)*$/, "string.invalid"],
  221. [/'([^'\\]|\\.)*$/, "string.invalid"],
  222. [/"/, "string", "@stringDouble"],
  223. [/'/, "string", "@stringSingle"]
  224. ],
  225. whitespace: [
  226. [/[ \t\r\n]+/, "white"],
  227. [/\/\*/, "comment", "@comment"],
  228. [/\/\/.*$/, "comment"]
  229. ],
  230. comment: [
  231. [/\/\/.*/, "comment"],
  232. [/[^/*]+/, "comment"],
  233. [/\*\//, "comment", "@pop"],
  234. [/[/*]/, "comment"]
  235. ],
  236. stringDouble: [
  237. [/[^\\"]+/, "string"],
  238. [/@escapes/, "string"],
  239. [/\\./, "string.invalid"],
  240. [/"/, "string", "@pop"]
  241. ],
  242. stringSingle: [
  243. [/[^\\']+/, "string"],
  244. [/@escapes/, "string"],
  245. [/\\./, "string.invalid"],
  246. [/'/, "string", "@pop"]
  247. ],
  248. identifierBacktick: [
  249. [/[^\\`]+/, "identifier.escape"],
  250. [/@escapes/, "identifier.escape"],
  251. [/\\./, "identifier.escape.invalid"],
  252. [/`/, "identifier.escape", "@pop"]
  253. ]
  254. }
  255. };
  256. export {
  257. conf,
  258. language
  259. };
  260. /*! Bundled license information:
  261. monaco-editor/esm/vs/basic-languages/cypher/cypher.js:
  262. (*!-----------------------------------------------------------------------------
  263. * Copyright (c) Microsoft Corporation. All rights reserved.
  264. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  265. * Released under the MIT license
  266. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  267. *-----------------------------------------------------------------------------*)
  268. */
  269. //# sourceMappingURL=cypher-VACC23DH.js.map