apex-D4U2URRR.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.js
  3. var conf = {
  4. wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
  5. comments: {
  6. lineComment: "//",
  7. blockComment: ["/*", "*/"]
  8. },
  9. brackets: [
  10. ["{", "}"],
  11. ["[", "]"],
  12. ["(", ")"]
  13. ],
  14. autoClosingPairs: [
  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. folding: {
  30. markers: {
  31. start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
  32. end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
  33. }
  34. }
  35. };
  36. var keywords = [
  37. "abstract",
  38. "activate",
  39. "and",
  40. "any",
  41. "array",
  42. "as",
  43. "asc",
  44. "assert",
  45. "autonomous",
  46. "begin",
  47. "bigdecimal",
  48. "blob",
  49. "boolean",
  50. "break",
  51. "bulk",
  52. "by",
  53. "case",
  54. "cast",
  55. "catch",
  56. "char",
  57. "class",
  58. "collect",
  59. "commit",
  60. "const",
  61. "continue",
  62. "convertcurrency",
  63. "decimal",
  64. "default",
  65. "delete",
  66. "desc",
  67. "do",
  68. "double",
  69. "else",
  70. "end",
  71. "enum",
  72. "exception",
  73. "exit",
  74. "export",
  75. "extends",
  76. "false",
  77. "final",
  78. "finally",
  79. "float",
  80. "for",
  81. "from",
  82. "future",
  83. "get",
  84. "global",
  85. "goto",
  86. "group",
  87. "having",
  88. "hint",
  89. "if",
  90. "implements",
  91. "import",
  92. "in",
  93. "inner",
  94. "insert",
  95. "instanceof",
  96. "int",
  97. "interface",
  98. "into",
  99. "join",
  100. "last_90_days",
  101. "last_month",
  102. "last_n_days",
  103. "last_week",
  104. "like",
  105. "limit",
  106. "list",
  107. "long",
  108. "loop",
  109. "map",
  110. "merge",
  111. "native",
  112. "new",
  113. "next_90_days",
  114. "next_month",
  115. "next_n_days",
  116. "next_week",
  117. "not",
  118. "null",
  119. "nulls",
  120. "number",
  121. "object",
  122. "of",
  123. "on",
  124. "or",
  125. "outer",
  126. "override",
  127. "package",
  128. "parallel",
  129. "pragma",
  130. "private",
  131. "protected",
  132. "public",
  133. "retrieve",
  134. "return",
  135. "returning",
  136. "rollback",
  137. "savepoint",
  138. "search",
  139. "select",
  140. "set",
  141. "short",
  142. "sort",
  143. "stat",
  144. "static",
  145. "strictfp",
  146. "super",
  147. "switch",
  148. "synchronized",
  149. "system",
  150. "testmethod",
  151. "then",
  152. "this",
  153. "this_month",
  154. "this_week",
  155. "throw",
  156. "throws",
  157. "today",
  158. "tolabel",
  159. "tomorrow",
  160. "transaction",
  161. "transient",
  162. "trigger",
  163. "true",
  164. "try",
  165. "type",
  166. "undelete",
  167. "update",
  168. "upsert",
  169. "using",
  170. "virtual",
  171. "void",
  172. "volatile",
  173. "webservice",
  174. "when",
  175. "where",
  176. "while",
  177. "yesterday"
  178. ];
  179. var uppercaseFirstLetter = (lowercase) => lowercase.charAt(0).toUpperCase() + lowercase.substr(1);
  180. var keywordsWithCaseVariations = [];
  181. keywords.forEach((lowercase) => {
  182. keywordsWithCaseVariations.push(lowercase);
  183. keywordsWithCaseVariations.push(lowercase.toUpperCase());
  184. keywordsWithCaseVariations.push(uppercaseFirstLetter(lowercase));
  185. });
  186. var language = {
  187. defaultToken: "",
  188. tokenPostfix: ".apex",
  189. keywords: keywordsWithCaseVariations,
  190. operators: [
  191. "=",
  192. ">",
  193. "<",
  194. "!",
  195. "~",
  196. "?",
  197. ":",
  198. "==",
  199. "<=",
  200. ">=",
  201. "!=",
  202. "&&",
  203. "||",
  204. "++",
  205. "--",
  206. "+",
  207. "-",
  208. "*",
  209. "/",
  210. "&",
  211. "|",
  212. "^",
  213. "%",
  214. "<<",
  215. ">>",
  216. ">>>",
  217. "+=",
  218. "-=",
  219. "*=",
  220. "/=",
  221. "&=",
  222. "|=",
  223. "^=",
  224. "%=",
  225. "<<=",
  226. ">>=",
  227. ">>>="
  228. ],
  229. symbols: /[=><!~?:&|+\-*\/\^%]+/,
  230. escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  231. digits: /\d+(_+\d+)*/,
  232. octaldigits: /[0-7]+(_+[0-7]+)*/,
  233. binarydigits: /[0-1]+(_+[0-1]+)*/,
  234. hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
  235. tokenizer: {
  236. root: [
  237. [
  238. /[a-z_$][\w$]*/,
  239. {
  240. cases: {
  241. "@keywords": { token: "keyword.$0" },
  242. "@default": "identifier"
  243. }
  244. }
  245. ],
  246. [
  247. /[A-Z][\w\$]*/,
  248. {
  249. cases: {
  250. "@keywords": { token: "keyword.$0" },
  251. "@default": "type.identifier"
  252. }
  253. }
  254. ],
  255. { include: "@whitespace" },
  256. [/[{}()\[\]]/, "@brackets"],
  257. [/[<>](?!@symbols)/, "@brackets"],
  258. [
  259. /@symbols/,
  260. {
  261. cases: {
  262. "@operators": "delimiter",
  263. "@default": ""
  264. }
  265. }
  266. ],
  267. [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
  268. [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
  269. [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
  270. [/(@digits)[fFdD]/, "number.float"],
  271. [/(@digits)[lL]?/, "number"],
  272. [/[;,.]/, "delimiter"],
  273. [/"([^"\\]|\\.)*$/, "string.invalid"],
  274. [/'([^'\\]|\\.)*$/, "string.invalid"],
  275. [/"/, "string", '@string."'],
  276. [/'/, "string", "@string.'"],
  277. [/'[^\\']'/, "string"],
  278. [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
  279. [/'/, "string.invalid"]
  280. ],
  281. whitespace: [
  282. [/[ \t\r\n]+/, ""],
  283. [/\/\*\*(?!\/)/, "comment.doc", "@apexdoc"],
  284. [/\/\*/, "comment", "@comment"],
  285. [/\/\/.*$/, "comment"]
  286. ],
  287. comment: [
  288. [/[^\/*]+/, "comment"],
  289. [/\*\//, "comment", "@pop"],
  290. [/[\/*]/, "comment"]
  291. ],
  292. apexdoc: [
  293. [/[^\/*]+/, "comment.doc"],
  294. [/\*\//, "comment.doc", "@pop"],
  295. [/[\/*]/, "comment.doc"]
  296. ],
  297. string: [
  298. [/[^\\"']+/, "string"],
  299. [/@escapes/, "string.escape"],
  300. [/\\./, "string.escape.invalid"],
  301. [
  302. /["']/,
  303. {
  304. cases: {
  305. "$#==$S2": { token: "string", next: "@pop" },
  306. "@default": "string"
  307. }
  308. }
  309. ]
  310. ]
  311. }
  312. };
  313. export {
  314. conf,
  315. language
  316. };
  317. /*! Bundled license information:
  318. monaco-editor/esm/vs/basic-languages/apex/apex.js:
  319. (*!-----------------------------------------------------------------------------
  320. * Copyright (c) Microsoft Corporation. All rights reserved.
  321. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  322. * Released under the MIT license
  323. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  324. *-----------------------------------------------------------------------------*)
  325. */
  326. //# sourceMappingURL=apex-D4U2URRR.js.map