scheme-4F4SYVWX.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.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. ]
  25. };
  26. var language = {
  27. defaultToken: "",
  28. ignoreCase: true,
  29. tokenPostfix: ".scheme",
  30. brackets: [
  31. { open: "(", close: ")", token: "delimiter.parenthesis" },
  32. { open: "{", close: "}", token: "delimiter.curly" },
  33. { open: "[", close: "]", token: "delimiter.square" }
  34. ],
  35. keywords: [
  36. "case",
  37. "do",
  38. "let",
  39. "loop",
  40. "if",
  41. "else",
  42. "when",
  43. "cons",
  44. "car",
  45. "cdr",
  46. "cond",
  47. "lambda",
  48. "lambda*",
  49. "syntax-rules",
  50. "format",
  51. "set!",
  52. "quote",
  53. "eval",
  54. "append",
  55. "list",
  56. "list?",
  57. "member?",
  58. "load"
  59. ],
  60. constants: ["#t", "#f"],
  61. operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"],
  62. tokenizer: {
  63. root: [
  64. [/#[xXoObB][0-9a-fA-F]+/, "number.hex"],
  65. [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"],
  66. [
  67. /(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,
  68. ["keyword", "white", "variable"]
  69. ],
  70. { include: "@whitespace" },
  71. { include: "@strings" },
  72. [
  73. /[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,
  74. {
  75. cases: {
  76. "@keywords": "keyword",
  77. "@constants": "constant",
  78. "@operators": "operators",
  79. "@default": "identifier"
  80. }
  81. }
  82. ]
  83. ],
  84. comment: [
  85. [/[^\|#]+/, "comment"],
  86. [/#\|/, "comment", "@push"],
  87. [/\|#/, "comment", "@pop"],
  88. [/[\|#]/, "comment"]
  89. ],
  90. whitespace: [
  91. [/[ \t\r\n]+/, "white"],
  92. [/#\|/, "comment", "@comment"],
  93. [/;.*$/, "comment"]
  94. ],
  95. strings: [
  96. [/"$/, "string", "@popall"],
  97. [/"(?=.)/, "string", "@multiLineString"]
  98. ],
  99. multiLineString: [
  100. [/[^\\"]+$/, "string", "@popall"],
  101. [/[^\\"]+/, "string"],
  102. [/\\./, "string.escape"],
  103. [/"/, "string", "@popall"],
  104. [/\\$/, "string"]
  105. ]
  106. }
  107. };
  108. export {
  109. conf,
  110. language
  111. };
  112. /*! Bundled license information:
  113. monaco-editor/esm/vs/basic-languages/scheme/scheme.js:
  114. (*!-----------------------------------------------------------------------------
  115. * Copyright (c) Microsoft Corporation. All rights reserved.
  116. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  117. * Released under the MIT license
  118. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  119. *-----------------------------------------------------------------------------*)
  120. */
  121. //# sourceMappingURL=scheme-4F4SYVWX.js.map