fsharp-YK6TTKDA.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.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. ],
  19. surroundingPairs: [
  20. { open: "{", close: "}" },
  21. { open: "[", close: "]" },
  22. { open: "(", close: ")" },
  23. { open: '"', close: '"' },
  24. { open: "'", close: "'" }
  25. ],
  26. folding: {
  27. markers: {
  28. start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),
  29. end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")
  30. }
  31. }
  32. };
  33. var language = {
  34. defaultToken: "",
  35. tokenPostfix: ".fs",
  36. keywords: [
  37. "abstract",
  38. "and",
  39. "atomic",
  40. "as",
  41. "assert",
  42. "asr",
  43. "base",
  44. "begin",
  45. "break",
  46. "checked",
  47. "component",
  48. "const",
  49. "constraint",
  50. "constructor",
  51. "continue",
  52. "class",
  53. "default",
  54. "delegate",
  55. "do",
  56. "done",
  57. "downcast",
  58. "downto",
  59. "elif",
  60. "else",
  61. "end",
  62. "exception",
  63. "eager",
  64. "event",
  65. "external",
  66. "extern",
  67. "false",
  68. "finally",
  69. "for",
  70. "fun",
  71. "function",
  72. "fixed",
  73. "functor",
  74. "global",
  75. "if",
  76. "in",
  77. "include",
  78. "inherit",
  79. "inline",
  80. "interface",
  81. "internal",
  82. "land",
  83. "lor",
  84. "lsl",
  85. "lsr",
  86. "lxor",
  87. "lazy",
  88. "let",
  89. "match",
  90. "member",
  91. "mod",
  92. "module",
  93. "mutable",
  94. "namespace",
  95. "method",
  96. "mixin",
  97. "new",
  98. "not",
  99. "null",
  100. "of",
  101. "open",
  102. "or",
  103. "object",
  104. "override",
  105. "private",
  106. "parallel",
  107. "process",
  108. "protected",
  109. "pure",
  110. "public",
  111. "rec",
  112. "return",
  113. "static",
  114. "sealed",
  115. "struct",
  116. "sig",
  117. "then",
  118. "to",
  119. "true",
  120. "tailcall",
  121. "trait",
  122. "try",
  123. "type",
  124. "upcast",
  125. "use",
  126. "val",
  127. "void",
  128. "virtual",
  129. "volatile",
  130. "when",
  131. "while",
  132. "with",
  133. "yield"
  134. ],
  135. symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
  136. escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  137. integersuffix: /[uU]?[yslnLI]?/,
  138. floatsuffix: /[fFmM]?/,
  139. tokenizer: {
  140. root: [
  141. [
  142. /[a-zA-Z_]\w*/,
  143. {
  144. cases: {
  145. "@keywords": { token: "keyword.$0" },
  146. "@default": "identifier"
  147. }
  148. }
  149. ],
  150. { include: "@whitespace" },
  151. [/\[<.*>\]/, "annotation"],
  152. [/^#(if|else|endif)/, "keyword"],
  153. [/[{}()\[\]]/, "@brackets"],
  154. [/[<>](?!@symbols)/, "@brackets"],
  155. [/@symbols/, "delimiter"],
  156. [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
  157. [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
  158. [/0x[0-9a-fA-F]+LF/, "number.float"],
  159. [/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"],
  160. [/0b[0-1]+(@integersuffix)/, "number.bin"],
  161. [/\d+(@integersuffix)/, "number"],
  162. [/[;,.]/, "delimiter"],
  163. [/"([^"\\]|\\.)*$/, "string.invalid"],
  164. [/"""/, "string", '@string."""'],
  165. [/"/, "string", '@string."'],
  166. [/\@"/, { token: "string.quote", next: "@litstring" }],
  167. [/'[^\\']'B?/, "string"],
  168. [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
  169. [/'/, "string.invalid"]
  170. ],
  171. whitespace: [
  172. [/[ \t\r\n]+/, ""],
  173. [/\(\*(?!\))/, "comment", "@comment"],
  174. [/\/\/.*$/, "comment"]
  175. ],
  176. comment: [
  177. [/[^*(]+/, "comment"],
  178. [/\*\)/, "comment", "@pop"],
  179. [/\*/, "comment"],
  180. [/\(\*\)/, "comment"],
  181. [/\(/, "comment"]
  182. ],
  183. string: [
  184. [/[^\\"]+/, "string"],
  185. [/@escapes/, "string.escape"],
  186. [/\\./, "string.escape.invalid"],
  187. [
  188. /("""|"B?)/,
  189. {
  190. cases: {
  191. "$#==$S2": { token: "string", next: "@pop" },
  192. "@default": "string"
  193. }
  194. }
  195. ]
  196. ],
  197. litstring: [
  198. [/[^"]+/, "string"],
  199. [/""/, "string.escape"],
  200. [/"/, { token: "string.quote", next: "@pop" }]
  201. ]
  202. }
  203. };
  204. export {
  205. conf,
  206. language
  207. };
  208. /*! Bundled license information:
  209. monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js:
  210. (*!-----------------------------------------------------------------------------
  211. * Copyright (c) Microsoft Corporation. All rights reserved.
  212. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  213. * Released under the MIT license
  214. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  215. *-----------------------------------------------------------------------------*)
  216. */
  217. //# sourceMappingURL=fsharp-YK6TTKDA.js.map