sparql-7NGBACI2.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.js
  3. var conf = {
  4. comments: {
  5. lineComment: "#"
  6. },
  7. brackets: [
  8. ["{", "}"],
  9. ["[", "]"],
  10. ["(", ")"]
  11. ],
  12. autoClosingPairs: [
  13. { open: "'", close: "'", notIn: ["string"] },
  14. { open: '"', close: '"', notIn: ["string"] },
  15. { open: "{", close: "}" },
  16. { open: "[", close: "]" },
  17. { open: "(", close: ")" }
  18. ]
  19. };
  20. var language = {
  21. defaultToken: "",
  22. tokenPostfix: ".rq",
  23. brackets: [
  24. { token: "delimiter.curly", open: "{", close: "}" },
  25. { token: "delimiter.parenthesis", open: "(", close: ")" },
  26. { token: "delimiter.square", open: "[", close: "]" },
  27. { token: "delimiter.angle", open: "<", close: ">" }
  28. ],
  29. keywords: [
  30. "add",
  31. "as",
  32. "asc",
  33. "ask",
  34. "base",
  35. "by",
  36. "clear",
  37. "construct",
  38. "copy",
  39. "create",
  40. "data",
  41. "delete",
  42. "desc",
  43. "describe",
  44. "distinct",
  45. "drop",
  46. "false",
  47. "filter",
  48. "from",
  49. "graph",
  50. "group",
  51. "having",
  52. "in",
  53. "insert",
  54. "limit",
  55. "load",
  56. "minus",
  57. "move",
  58. "named",
  59. "not",
  60. "offset",
  61. "optional",
  62. "order",
  63. "prefix",
  64. "reduced",
  65. "select",
  66. "service",
  67. "silent",
  68. "to",
  69. "true",
  70. "undef",
  71. "union",
  72. "using",
  73. "values",
  74. "where",
  75. "with"
  76. ],
  77. builtinFunctions: [
  78. "a",
  79. "abs",
  80. "avg",
  81. "bind",
  82. "bnode",
  83. "bound",
  84. "ceil",
  85. "coalesce",
  86. "concat",
  87. "contains",
  88. "count",
  89. "datatype",
  90. "day",
  91. "encode_for_uri",
  92. "exists",
  93. "floor",
  94. "group_concat",
  95. "hours",
  96. "if",
  97. "iri",
  98. "isblank",
  99. "isiri",
  100. "isliteral",
  101. "isnumeric",
  102. "isuri",
  103. "lang",
  104. "langmatches",
  105. "lcase",
  106. "max",
  107. "md5",
  108. "min",
  109. "minutes",
  110. "month",
  111. "now",
  112. "rand",
  113. "regex",
  114. "replace",
  115. "round",
  116. "sameterm",
  117. "sample",
  118. "seconds",
  119. "sha1",
  120. "sha256",
  121. "sha384",
  122. "sha512",
  123. "str",
  124. "strafter",
  125. "strbefore",
  126. "strdt",
  127. "strends",
  128. "strlang",
  129. "strlen",
  130. "strstarts",
  131. "struuid",
  132. "substr",
  133. "sum",
  134. "timezone",
  135. "tz",
  136. "ucase",
  137. "uri",
  138. "uuid",
  139. "year"
  140. ],
  141. ignoreCase: true,
  142. tokenizer: {
  143. root: [
  144. [/<[^\s\u00a0>]*>?/, "tag"],
  145. { include: "@strings" },
  146. [/#.*/, "comment"],
  147. [/[{}()\[\]]/, "@brackets"],
  148. [/[;,.]/, "delimiter"],
  149. [/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/, "tag"],
  150. [/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, "tag"],
  151. [
  152. /[$?]?[_\w\d]+/,
  153. {
  154. cases: {
  155. "@keywords": { token: "keyword" },
  156. "@builtinFunctions": { token: "predefined.sql" },
  157. "@default": "identifier"
  158. }
  159. }
  160. ],
  161. [/\^\^/, "operator.sql"],
  162. [/\^[*+\-<>=&|^\/!?]*/, "operator.sql"],
  163. [/[*+\-<>=&|\/!?]/, "operator.sql"],
  164. [/@[a-z\d\-]*/, "metatag.html"],
  165. [/\s+/, "white"]
  166. ],
  167. strings: [
  168. [/'([^'\\]|\\.)*$/, "string.invalid"],
  169. [/'$/, "string.sql", "@pop"],
  170. [/'/, "string.sql", "@stringBody"],
  171. [/"([^"\\]|\\.)*$/, "string.invalid"],
  172. [/"$/, "string.sql", "@pop"],
  173. [/"/, "string.sql", "@dblStringBody"]
  174. ],
  175. stringBody: [
  176. [/[^\\']+/, "string.sql"],
  177. [/\\./, "string.escape"],
  178. [/'/, "string.sql", "@pop"]
  179. ],
  180. dblStringBody: [
  181. [/[^\\"]+/, "string.sql"],
  182. [/\\./, "string.escape"],
  183. [/"/, "string.sql", "@pop"]
  184. ]
  185. }
  186. };
  187. export {
  188. conf,
  189. language
  190. };
  191. /*! Bundled license information:
  192. monaco-editor/esm/vs/basic-languages/sparql/sparql.js:
  193. (*!-----------------------------------------------------------------------------
  194. * Copyright (c) Microsoft Corporation. All rights reserved.
  195. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  196. * Released under the MIT license
  197. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  198. *-----------------------------------------------------------------------------*)
  199. */
  200. //# sourceMappingURL=sparql-7NGBACI2.js.map