java-5YTMLGWC.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/java/java.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 language = {
  37. defaultToken: "",
  38. tokenPostfix: ".java",
  39. keywords: [
  40. "abstract",
  41. "continue",
  42. "for",
  43. "new",
  44. "switch",
  45. "assert",
  46. "default",
  47. "goto",
  48. "package",
  49. "synchronized",
  50. "boolean",
  51. "do",
  52. "if",
  53. "private",
  54. "this",
  55. "break",
  56. "double",
  57. "implements",
  58. "protected",
  59. "throw",
  60. "byte",
  61. "else",
  62. "import",
  63. "public",
  64. "throws",
  65. "case",
  66. "enum",
  67. "instanceof",
  68. "return",
  69. "transient",
  70. "catch",
  71. "extends",
  72. "int",
  73. "short",
  74. "try",
  75. "char",
  76. "final",
  77. "interface",
  78. "static",
  79. "void",
  80. "class",
  81. "finally",
  82. "long",
  83. "strictfp",
  84. "volatile",
  85. "const",
  86. "float",
  87. "native",
  88. "super",
  89. "while",
  90. "true",
  91. "false",
  92. "yield",
  93. "record",
  94. "sealed",
  95. "non-sealed",
  96. "permits"
  97. ],
  98. operators: [
  99. "=",
  100. ">",
  101. "<",
  102. "!",
  103. "~",
  104. "?",
  105. ":",
  106. "==",
  107. "<=",
  108. ">=",
  109. "!=",
  110. "&&",
  111. "||",
  112. "++",
  113. "--",
  114. "+",
  115. "-",
  116. "*",
  117. "/",
  118. "&",
  119. "|",
  120. "^",
  121. "%",
  122. "<<",
  123. ">>",
  124. ">>>",
  125. "+=",
  126. "-=",
  127. "*=",
  128. "/=",
  129. "&=",
  130. "|=",
  131. "^=",
  132. "%=",
  133. "<<=",
  134. ">>=",
  135. ">>>="
  136. ],
  137. symbols: /[=><!~?:&|+\-*\/\^%]+/,
  138. escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  139. digits: /\d+(_+\d+)*/,
  140. octaldigits: /[0-7]+(_+[0-7]+)*/,
  141. binarydigits: /[0-1]+(_+[0-1]+)*/,
  142. hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
  143. tokenizer: {
  144. root: [
  145. ["non-sealed", "keyword.non-sealed"],
  146. [
  147. /[a-zA-Z_$][\w$]*/,
  148. {
  149. cases: {
  150. "@keywords": { token: "keyword.$0" },
  151. "@default": "identifier"
  152. }
  153. }
  154. ],
  155. { include: "@whitespace" },
  156. [/[{}()\[\]]/, "@brackets"],
  157. [/[<>](?!@symbols)/, "@brackets"],
  158. [
  159. /@symbols/,
  160. {
  161. cases: {
  162. "@operators": "delimiter",
  163. "@default": ""
  164. }
  165. }
  166. ],
  167. [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
  168. [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
  169. [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
  170. [/0[xX](@hexdigits)[Ll]?/, "number.hex"],
  171. [/0(@octaldigits)[Ll]?/, "number.octal"],
  172. [/0[bB](@binarydigits)[Ll]?/, "number.binary"],
  173. [/(@digits)[fFdD]/, "number.float"],
  174. [/(@digits)[lL]?/, "number"],
  175. [/[;,.]/, "delimiter"],
  176. [/"([^"\\]|\\.)*$/, "string.invalid"],
  177. [/"""/, "string", "@multistring"],
  178. [/"/, "string", "@string"],
  179. [/'[^\\']'/, "string"],
  180. [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
  181. [/'/, "string.invalid"]
  182. ],
  183. whitespace: [
  184. [/[ \t\r\n]+/, ""],
  185. [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
  186. [/\/\*/, "comment", "@comment"],
  187. [/\/\/.*$/, "comment"]
  188. ],
  189. comment: [
  190. [/[^\/*]+/, "comment"],
  191. [/\*\//, "comment", "@pop"],
  192. [/[\/*]/, "comment"]
  193. ],
  194. javadoc: [
  195. [/[^\/*]+/, "comment.doc"],
  196. [/\/\*/, "comment.doc.invalid"],
  197. [/\*\//, "comment.doc", "@pop"],
  198. [/[\/*]/, "comment.doc"]
  199. ],
  200. string: [
  201. [/[^\\"]+/, "string"],
  202. [/@escapes/, "string.escape"],
  203. [/\\./, "string.escape.invalid"],
  204. [/"/, "string", "@pop"]
  205. ],
  206. multistring: [
  207. [/[^\\"]+/, "string"],
  208. [/@escapes/, "string.escape"],
  209. [/\\./, "string.escape.invalid"],
  210. [/"""/, "string", "@pop"],
  211. [/./, "string"]
  212. ]
  213. }
  214. };
  215. export {
  216. conf,
  217. language
  218. };
  219. /*! Bundled license information:
  220. monaco-editor/esm/vs/basic-languages/java/java.js:
  221. (*!-----------------------------------------------------------------------------
  222. * Copyright (c) Microsoft Corporation. All rights reserved.
  223. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  224. * Released under the MIT license
  225. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  226. *-----------------------------------------------------------------------------*)
  227. */
  228. //# sourceMappingURL=java-5YTMLGWC.js.map