flow9-JNEG3XSC.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.js
  3. var conf = {
  4. comments: {
  5. blockComment: ["/*", "*/"],
  6. lineComment: "//"
  7. },
  8. brackets: [
  9. ["{", "}"],
  10. ["[", "]"],
  11. ["(", ")"]
  12. ],
  13. autoClosingPairs: [
  14. { open: "{", close: "}", notIn: ["string"] },
  15. { open: "[", close: "]", notIn: ["string"] },
  16. { open: "(", close: ")", notIn: ["string"] },
  17. { open: '"', close: '"', notIn: ["string"] },
  18. { open: "'", close: "'", notIn: ["string"] }
  19. ],
  20. surroundingPairs: [
  21. { open: "{", close: "}" },
  22. { open: "[", close: "]" },
  23. { open: "(", close: ")" },
  24. { open: '"', close: '"' },
  25. { open: "'", close: "'" },
  26. { open: "<", close: ">" }
  27. ]
  28. };
  29. var language = {
  30. defaultToken: "",
  31. tokenPostfix: ".flow",
  32. keywords: [
  33. "import",
  34. "require",
  35. "export",
  36. "forbid",
  37. "native",
  38. "if",
  39. "else",
  40. "cast",
  41. "unsafe",
  42. "switch",
  43. "default"
  44. ],
  45. types: [
  46. "io",
  47. "mutable",
  48. "bool",
  49. "int",
  50. "double",
  51. "string",
  52. "flow",
  53. "void",
  54. "ref",
  55. "true",
  56. "false",
  57. "with"
  58. ],
  59. operators: [
  60. "=",
  61. ">",
  62. "<",
  63. "<=",
  64. ">=",
  65. "==",
  66. "!",
  67. "!=",
  68. ":=",
  69. "::=",
  70. "&&",
  71. "||",
  72. "+",
  73. "-",
  74. "*",
  75. "/",
  76. "@",
  77. "&",
  78. "%",
  79. ":",
  80. "->",
  81. "\\",
  82. "$",
  83. "??",
  84. "^"
  85. ],
  86. symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
  87. escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  88. tokenizer: {
  89. root: [
  90. [
  91. /[a-zA-Z_]\w*/,
  92. {
  93. cases: {
  94. "@keywords": "keyword",
  95. "@types": "type",
  96. "@default": "identifier"
  97. }
  98. }
  99. ],
  100. { include: "@whitespace" },
  101. [/[{}()\[\]]/, "delimiter"],
  102. [/[<>](?!@symbols)/, "delimiter"],
  103. [
  104. /@symbols/,
  105. {
  106. cases: {
  107. "@operators": "delimiter",
  108. "@default": ""
  109. }
  110. }
  111. ],
  112. [/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
  113. [/[;,.]/, "delimiter"],
  114. [/"([^"\\]|\\.)*$/, "string.invalid"],
  115. [/"/, "string", "@string"]
  116. ],
  117. whitespace: [
  118. [/[ \t\r\n]+/, ""],
  119. [/\/\*/, "comment", "@comment"],
  120. [/\/\/.*$/, "comment"]
  121. ],
  122. comment: [
  123. [/[^\/*]+/, "comment"],
  124. [/\*\//, "comment", "@pop"],
  125. [/[\/*]/, "comment"]
  126. ],
  127. string: [
  128. [/[^\\"]+/, "string"],
  129. [/@escapes/, "string.escape"],
  130. [/\\./, "string.escape.invalid"],
  131. [/"/, "string", "@pop"]
  132. ]
  133. }
  134. };
  135. export {
  136. conf,
  137. language
  138. };
  139. /*! Bundled license information:
  140. monaco-editor/esm/vs/basic-languages/flow9/flow9.js:
  141. (*!-----------------------------------------------------------------------------
  142. * Copyright (c) Microsoft Corporation. All rights reserved.
  143. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  144. * Released under the MIT license
  145. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  146. *-----------------------------------------------------------------------------*)
  147. */
  148. //# sourceMappingURL=flow9-JNEG3XSC.js.map