sb-2MWCBSR2.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.js
  3. var conf = {
  4. comments: {
  5. lineComment: "'"
  6. },
  7. brackets: [
  8. ["(", ")"],
  9. ["[", "]"],
  10. ["If", "EndIf"],
  11. ["While", "EndWhile"],
  12. ["For", "EndFor"],
  13. ["Sub", "EndSub"]
  14. ],
  15. autoClosingPairs: [
  16. { open: '"', close: '"', notIn: ["string", "comment"] },
  17. { open: "(", close: ")", notIn: ["string", "comment"] },
  18. { open: "[", close: "]", notIn: ["string", "comment"] }
  19. ]
  20. };
  21. var language = {
  22. defaultToken: "",
  23. tokenPostfix: ".sb",
  24. ignoreCase: true,
  25. brackets: [
  26. { token: "delimiter.array", open: "[", close: "]" },
  27. { token: "delimiter.parenthesis", open: "(", close: ")" },
  28. { token: "keyword.tag-if", open: "If", close: "EndIf" },
  29. { token: "keyword.tag-while", open: "While", close: "EndWhile" },
  30. { token: "keyword.tag-for", open: "For", close: "EndFor" },
  31. { token: "keyword.tag-sub", open: "Sub", close: "EndSub" }
  32. ],
  33. keywords: [
  34. "Else",
  35. "ElseIf",
  36. "EndFor",
  37. "EndIf",
  38. "EndSub",
  39. "EndWhile",
  40. "For",
  41. "Goto",
  42. "If",
  43. "Step",
  44. "Sub",
  45. "Then",
  46. "To",
  47. "While"
  48. ],
  49. tagwords: ["If", "Sub", "While", "For"],
  50. operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
  51. identifier: /[a-zA-Z_][\w]*/,
  52. symbols: /[=><:+\-*\/%\.,]+/,
  53. escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  54. tokenizer: {
  55. root: [
  56. { include: "@whitespace" },
  57. [/(@identifier)(?=[.])/, "type"],
  58. [
  59. /@identifier/,
  60. {
  61. cases: {
  62. "@keywords": { token: "keyword.$0" },
  63. "@operators": "operator",
  64. "@default": "variable.name"
  65. }
  66. }
  67. ],
  68. [
  69. /([.])(@identifier)/,
  70. {
  71. cases: {
  72. $2: ["delimiter", "type.member"],
  73. "@default": ""
  74. }
  75. }
  76. ],
  77. [/\d*\.\d+/, "number.float"],
  78. [/\d+/, "number"],
  79. [/[()\[\]]/, "@brackets"],
  80. [
  81. /@symbols/,
  82. {
  83. cases: {
  84. "@operators": "operator",
  85. "@default": "delimiter"
  86. }
  87. }
  88. ],
  89. [/"([^"\\]|\\.)*$/, "string.invalid"],
  90. [/"/, "string", "@string"]
  91. ],
  92. whitespace: [
  93. [/[ \t\r\n]+/, ""],
  94. [/(\').*$/, "comment"]
  95. ],
  96. string: [
  97. [/[^\\"]+/, "string"],
  98. [/@escapes/, "string.escape"],
  99. [/\\./, "string.escape.invalid"],
  100. [/"C?/, "string", "@pop"]
  101. ]
  102. }
  103. };
  104. export {
  105. conf,
  106. language
  107. };
  108. /*! Bundled license information:
  109. monaco-editor/esm/vs/basic-languages/sb/sb.js:
  110. (*!-----------------------------------------------------------------------------
  111. * Copyright (c) Microsoft Corporation. All rights reserved.
  112. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  113. * Released under the MIT license
  114. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  115. *-----------------------------------------------------------------------------*)
  116. */
  117. //# sourceMappingURL=sb-2MWCBSR2.js.map