pla-WYFAAROO.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.js
  3. var conf = {
  4. comments: {
  5. lineComment: "#"
  6. },
  7. brackets: [
  8. ["[", "]"],
  9. ["<", ">"],
  10. ["(", ")"]
  11. ],
  12. autoClosingPairs: [
  13. { open: "[", close: "]" },
  14. { open: "<", close: ">" },
  15. { open: "(", close: ")" }
  16. ],
  17. surroundingPairs: [
  18. { open: "[", close: "]" },
  19. { open: "<", close: ">" },
  20. { open: "(", close: ")" }
  21. ]
  22. };
  23. var language = {
  24. defaultToken: "",
  25. tokenPostfix: ".pla",
  26. brackets: [
  27. { open: "[", close: "]", token: "delimiter.square" },
  28. { open: "<", close: ">", token: "delimiter.angle" },
  29. { open: "(", close: ")", token: "delimiter.parenthesis" }
  30. ],
  31. keywords: [
  32. ".i",
  33. ".o",
  34. ".mv",
  35. ".ilb",
  36. ".ob",
  37. ".label",
  38. ".type",
  39. ".phase",
  40. ".pair",
  41. ".symbolic",
  42. ".symbolic-output",
  43. ".kiss",
  44. ".p",
  45. ".e",
  46. ".end"
  47. ],
  48. comment: /#.*$/,
  49. identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
  50. plaContent: /[01\-~\|]+/,
  51. tokenizer: {
  52. root: [
  53. { include: "@whitespace" },
  54. [/@comment/, "comment"],
  55. [
  56. /\.([a-zA-Z_\-]+)/,
  57. {
  58. cases: {
  59. "@eos": { token: "keyword.$1" },
  60. "@keywords": {
  61. cases: {
  62. ".type": { token: "keyword.$1", next: "@type" },
  63. "@default": { token: "keyword.$1", next: "@keywordArg" }
  64. }
  65. },
  66. "@default": { token: "keyword.$1" }
  67. }
  68. }
  69. ],
  70. [/@identifier/, "identifier"],
  71. [/@plaContent/, "string"]
  72. ],
  73. whitespace: [[/[ \t\r\n]+/, ""]],
  74. type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
  75. keywordArg: [
  76. [
  77. /[ \t\r\n]+/,
  78. {
  79. cases: {
  80. "@eos": { token: "", next: "@pop" },
  81. "@default": ""
  82. }
  83. }
  84. ],
  85. [/@comment/, "comment", "@pop"],
  86. [
  87. /[<>()\[\]]/,
  88. {
  89. cases: {
  90. "@eos": { token: "@brackets", next: "@pop" },
  91. "@default": "@brackets"
  92. }
  93. }
  94. ],
  95. [
  96. /\-?\d+/,
  97. {
  98. cases: {
  99. "@eos": { token: "number", next: "@pop" },
  100. "@default": "number"
  101. }
  102. }
  103. ],
  104. [
  105. /@identifier/,
  106. {
  107. cases: {
  108. "@eos": { token: "identifier", next: "@pop" },
  109. "@default": "identifier"
  110. }
  111. }
  112. ],
  113. [
  114. /[;=]/,
  115. {
  116. cases: {
  117. "@eos": { token: "delimiter", next: "@pop" },
  118. "@default": "delimiter"
  119. }
  120. }
  121. ]
  122. ]
  123. }
  124. };
  125. export {
  126. conf,
  127. language
  128. };
  129. /*! Bundled license information:
  130. monaco-editor/esm/vs/basic-languages/pla/pla.js:
  131. (*!-----------------------------------------------------------------------------
  132. * Copyright (c) Microsoft Corporation. All rights reserved.
  133. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  134. * Released under the MIT license
  135. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  136. *-----------------------------------------------------------------------------*)
  137. */
  138. //# sourceMappingURL=pla-WYFAAROO.js.map