dockerfile-ANMTRAR5.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js
  3. var conf = {
  4. brackets: [
  5. ["{", "}"],
  6. ["[", "]"],
  7. ["(", ")"]
  8. ],
  9. autoClosingPairs: [
  10. { open: "{", close: "}" },
  11. { open: "[", close: "]" },
  12. { open: "(", close: ")" },
  13. { open: '"', close: '"' },
  14. { open: "'", close: "'" }
  15. ],
  16. surroundingPairs: [
  17. { open: "{", close: "}" },
  18. { open: "[", close: "]" },
  19. { open: "(", close: ")" },
  20. { open: '"', close: '"' },
  21. { open: "'", close: "'" }
  22. ]
  23. };
  24. var language = {
  25. defaultToken: "",
  26. tokenPostfix: ".dockerfile",
  27. variable: /\${?[\w]+}?/,
  28. tokenizer: {
  29. root: [
  30. { include: "@whitespace" },
  31. { include: "@comment" },
  32. [/(ONBUILD)(\s+)/, ["keyword", ""]],
  33. [/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]],
  34. [
  35. /(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
  36. { token: "keyword", next: "@arguments" }
  37. ]
  38. ],
  39. arguments: [
  40. { include: "@whitespace" },
  41. { include: "@strings" },
  42. [
  43. /(@variable)/,
  44. {
  45. cases: {
  46. "@eos": { token: "variable", next: "@popall" },
  47. "@default": "variable"
  48. }
  49. }
  50. ],
  51. [
  52. /\\/,
  53. {
  54. cases: {
  55. "@eos": "",
  56. "@default": ""
  57. }
  58. }
  59. ],
  60. [
  61. /./,
  62. {
  63. cases: {
  64. "@eos": { token: "", next: "@popall" },
  65. "@default": ""
  66. }
  67. }
  68. ]
  69. ],
  70. whitespace: [
  71. [
  72. /\s+/,
  73. {
  74. cases: {
  75. "@eos": { token: "", next: "@popall" },
  76. "@default": ""
  77. }
  78. }
  79. ]
  80. ],
  81. comment: [[/(^#.*$)/, "comment", "@popall"]],
  82. strings: [
  83. [/\\'$/, "", "@popall"],
  84. [/\\'/, ""],
  85. [/'$/, "string", "@popall"],
  86. [/'/, "string", "@stringBody"],
  87. [/"$/, "string", "@popall"],
  88. [/"/, "string", "@dblStringBody"]
  89. ],
  90. stringBody: [
  91. [
  92. /[^\\\$']/,
  93. {
  94. cases: {
  95. "@eos": { token: "string", next: "@popall" },
  96. "@default": "string"
  97. }
  98. }
  99. ],
  100. [/\\./, "string.escape"],
  101. [/'$/, "string", "@popall"],
  102. [/'/, "string", "@pop"],
  103. [/(@variable)/, "variable"],
  104. [/\\$/, "string"],
  105. [/$/, "string", "@popall"]
  106. ],
  107. dblStringBody: [
  108. [
  109. /[^\\\$"]/,
  110. {
  111. cases: {
  112. "@eos": { token: "string", next: "@popall" },
  113. "@default": "string"
  114. }
  115. }
  116. ],
  117. [/\\./, "string.escape"],
  118. [/"$/, "string", "@popall"],
  119. [/"/, "string", "@pop"],
  120. [/(@variable)/, "variable"],
  121. [/\\$/, "string"],
  122. [/$/, "string", "@popall"]
  123. ]
  124. }
  125. };
  126. export {
  127. conf,
  128. language
  129. };
  130. /*! Bundled license information:
  131. monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js:
  132. (*!-----------------------------------------------------------------------------
  133. * Copyright (c) Microsoft Corporation. All rights reserved.
  134. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  135. * Released under the MIT license
  136. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  137. *-----------------------------------------------------------------------------*)
  138. */
  139. //# sourceMappingURL=dockerfile-ANMTRAR5.js.map