vb-QWJSAJDN.js 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.js
  3. var conf = {
  4. comments: {
  5. lineComment: "'",
  6. blockComment: ["/*", "*/"]
  7. },
  8. brackets: [
  9. ["{", "}"],
  10. ["[", "]"],
  11. ["(", ")"],
  12. ["<", ">"],
  13. ["addhandler", "end addhandler"],
  14. ["class", "end class"],
  15. ["enum", "end enum"],
  16. ["event", "end event"],
  17. ["function", "end function"],
  18. ["get", "end get"],
  19. ["if", "end if"],
  20. ["interface", "end interface"],
  21. ["module", "end module"],
  22. ["namespace", "end namespace"],
  23. ["operator", "end operator"],
  24. ["property", "end property"],
  25. ["raiseevent", "end raiseevent"],
  26. ["removehandler", "end removehandler"],
  27. ["select", "end select"],
  28. ["set", "end set"],
  29. ["structure", "end structure"],
  30. ["sub", "end sub"],
  31. ["synclock", "end synclock"],
  32. ["try", "end try"],
  33. ["while", "end while"],
  34. ["with", "end with"],
  35. ["using", "end using"],
  36. ["do", "loop"],
  37. ["for", "next"]
  38. ],
  39. autoClosingPairs: [
  40. { open: "{", close: "}", notIn: ["string", "comment"] },
  41. { open: "[", close: "]", notIn: ["string", "comment"] },
  42. { open: "(", close: ")", notIn: ["string", "comment"] },
  43. { open: '"', close: '"', notIn: ["string", "comment"] },
  44. { open: "<", close: ">", notIn: ["string", "comment"] }
  45. ],
  46. folding: {
  47. markers: {
  48. start: new RegExp("^\\s*#Region\\b"),
  49. end: new RegExp("^\\s*#End Region\\b")
  50. }
  51. }
  52. };
  53. var language = {
  54. defaultToken: "",
  55. tokenPostfix: ".vb",
  56. ignoreCase: true,
  57. brackets: [
  58. { token: "delimiter.bracket", open: "{", close: "}" },
  59. { token: "delimiter.array", open: "[", close: "]" },
  60. { token: "delimiter.parenthesis", open: "(", close: ")" },
  61. { token: "delimiter.angle", open: "<", close: ">" },
  62. {
  63. token: "keyword.tag-addhandler",
  64. open: "addhandler",
  65. close: "end addhandler"
  66. },
  67. { token: "keyword.tag-class", open: "class", close: "end class" },
  68. { token: "keyword.tag-enum", open: "enum", close: "end enum" },
  69. { token: "keyword.tag-event", open: "event", close: "end event" },
  70. {
  71. token: "keyword.tag-function",
  72. open: "function",
  73. close: "end function"
  74. },
  75. { token: "keyword.tag-get", open: "get", close: "end get" },
  76. { token: "keyword.tag-if", open: "if", close: "end if" },
  77. {
  78. token: "keyword.tag-interface",
  79. open: "interface",
  80. close: "end interface"
  81. },
  82. { token: "keyword.tag-module", open: "module", close: "end module" },
  83. {
  84. token: "keyword.tag-namespace",
  85. open: "namespace",
  86. close: "end namespace"
  87. },
  88. {
  89. token: "keyword.tag-operator",
  90. open: "operator",
  91. close: "end operator"
  92. },
  93. {
  94. token: "keyword.tag-property",
  95. open: "property",
  96. close: "end property"
  97. },
  98. {
  99. token: "keyword.tag-raiseevent",
  100. open: "raiseevent",
  101. close: "end raiseevent"
  102. },
  103. {
  104. token: "keyword.tag-removehandler",
  105. open: "removehandler",
  106. close: "end removehandler"
  107. },
  108. { token: "keyword.tag-select", open: "select", close: "end select" },
  109. { token: "keyword.tag-set", open: "set", close: "end set" },
  110. {
  111. token: "keyword.tag-structure",
  112. open: "structure",
  113. close: "end structure"
  114. },
  115. { token: "keyword.tag-sub", open: "sub", close: "end sub" },
  116. {
  117. token: "keyword.tag-synclock",
  118. open: "synclock",
  119. close: "end synclock"
  120. },
  121. { token: "keyword.tag-try", open: "try", close: "end try" },
  122. { token: "keyword.tag-while", open: "while", close: "end while" },
  123. { token: "keyword.tag-with", open: "with", close: "end with" },
  124. { token: "keyword.tag-using", open: "using", close: "end using" },
  125. { token: "keyword.tag-do", open: "do", close: "loop" },
  126. { token: "keyword.tag-for", open: "for", close: "next" }
  127. ],
  128. keywords: [
  129. "AddHandler",
  130. "AddressOf",
  131. "Alias",
  132. "And",
  133. "AndAlso",
  134. "As",
  135. "Async",
  136. "Boolean",
  137. "ByRef",
  138. "Byte",
  139. "ByVal",
  140. "Call",
  141. "Case",
  142. "Catch",
  143. "CBool",
  144. "CByte",
  145. "CChar",
  146. "CDate",
  147. "CDbl",
  148. "CDec",
  149. "Char",
  150. "CInt",
  151. "Class",
  152. "CLng",
  153. "CObj",
  154. "Const",
  155. "Continue",
  156. "CSByte",
  157. "CShort",
  158. "CSng",
  159. "CStr",
  160. "CType",
  161. "CUInt",
  162. "CULng",
  163. "CUShort",
  164. "Date",
  165. "Decimal",
  166. "Declare",
  167. "Default",
  168. "Delegate",
  169. "Dim",
  170. "DirectCast",
  171. "Do",
  172. "Double",
  173. "Each",
  174. "Else",
  175. "ElseIf",
  176. "End",
  177. "EndIf",
  178. "Enum",
  179. "Erase",
  180. "Error",
  181. "Event",
  182. "Exit",
  183. "False",
  184. "Finally",
  185. "For",
  186. "Friend",
  187. "Function",
  188. "Get",
  189. "GetType",
  190. "GetXMLNamespace",
  191. "Global",
  192. "GoSub",
  193. "GoTo",
  194. "Handles",
  195. "If",
  196. "Implements",
  197. "Imports",
  198. "In",
  199. "Inherits",
  200. "Integer",
  201. "Interface",
  202. "Is",
  203. "IsNot",
  204. "Let",
  205. "Lib",
  206. "Like",
  207. "Long",
  208. "Loop",
  209. "Me",
  210. "Mod",
  211. "Module",
  212. "MustInherit",
  213. "MustOverride",
  214. "MyBase",
  215. "MyClass",
  216. "NameOf",
  217. "Namespace",
  218. "Narrowing",
  219. "New",
  220. "Next",
  221. "Not",
  222. "Nothing",
  223. "NotInheritable",
  224. "NotOverridable",
  225. "Object",
  226. "Of",
  227. "On",
  228. "Operator",
  229. "Option",
  230. "Optional",
  231. "Or",
  232. "OrElse",
  233. "Out",
  234. "Overloads",
  235. "Overridable",
  236. "Overrides",
  237. "ParamArray",
  238. "Partial",
  239. "Private",
  240. "Property",
  241. "Protected",
  242. "Public",
  243. "RaiseEvent",
  244. "ReadOnly",
  245. "ReDim",
  246. "RemoveHandler",
  247. "Resume",
  248. "Return",
  249. "SByte",
  250. "Select",
  251. "Set",
  252. "Shadows",
  253. "Shared",
  254. "Short",
  255. "Single",
  256. "Static",
  257. "Step",
  258. "Stop",
  259. "String",
  260. "Structure",
  261. "Sub",
  262. "SyncLock",
  263. "Then",
  264. "Throw",
  265. "To",
  266. "True",
  267. "Try",
  268. "TryCast",
  269. "TypeOf",
  270. "UInteger",
  271. "ULong",
  272. "UShort",
  273. "Using",
  274. "Variant",
  275. "Wend",
  276. "When",
  277. "While",
  278. "Widening",
  279. "With",
  280. "WithEvents",
  281. "WriteOnly",
  282. "Xor"
  283. ],
  284. tagwords: [
  285. "If",
  286. "Sub",
  287. "Select",
  288. "Try",
  289. "Class",
  290. "Enum",
  291. "Function",
  292. "Get",
  293. "Interface",
  294. "Module",
  295. "Namespace",
  296. "Operator",
  297. "Set",
  298. "Structure",
  299. "Using",
  300. "While",
  301. "With",
  302. "Do",
  303. "Loop",
  304. "For",
  305. "Next",
  306. "Property",
  307. "Continue",
  308. "AddHandler",
  309. "RemoveHandler",
  310. "Event",
  311. "RaiseEvent",
  312. "SyncLock"
  313. ],
  314. symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/,
  315. integersuffix: /U?[DI%L&S@]?/,
  316. floatsuffix: /[R#F!]?/,
  317. tokenizer: {
  318. root: [
  319. { include: "@whitespace" },
  320. [/next(?!\w)/, { token: "keyword.tag-for" }],
  321. [/loop(?!\w)/, { token: "keyword.tag-do" }],
  322. [
  323. /end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,
  324. { token: "keyword.tag-$1" }
  325. ],
  326. [
  327. /[a-zA-Z_]\w*/,
  328. {
  329. cases: {
  330. "@tagwords": { token: "keyword.tag-$0" },
  331. "@keywords": { token: "keyword.$0" },
  332. "@default": "identifier"
  333. }
  334. }
  335. ],
  336. [/^\s*#\w+/, "keyword"],
  337. [/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"],
  338. [/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"],
  339. [/&H[0-9a-f]+(@integersuffix)/, "number.hex"],
  340. [/&0[0-7]+(@integersuffix)/, "number.octal"],
  341. [/\d+(@integersuffix)/, "number"],
  342. [/#.*#/, "number"],
  343. [/[{}()\[\]]/, "@brackets"],
  344. [/@symbols/, "delimiter"],
  345. [/["\u201c\u201d]/, { token: "string.quote", next: "@string" }]
  346. ],
  347. whitespace: [
  348. [/[ \t\r\n]+/, ""],
  349. [/(\'|REM(?!\w)).*$/, "comment"]
  350. ],
  351. string: [
  352. [/[^"\u201c\u201d]+/, "string"],
  353. [/["\u201c\u201d]{2}/, "string.escape"],
  354. [/["\u201c\u201d]C?/, { token: "string.quote", next: "@pop" }]
  355. ]
  356. }
  357. };
  358. export {
  359. conf,
  360. language
  361. };
  362. /*! Bundled license information:
  363. monaco-editor/esm/vs/basic-languages/vb/vb.js:
  364. (*!-----------------------------------------------------------------------------
  365. * Copyright (c) Microsoft Corporation. All rights reserved.
  366. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  367. * Released under the MIT license
  368. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  369. *-----------------------------------------------------------------------------*)
  370. */
  371. //# sourceMappingURL=vb-QWJSAJDN.js.map