shell-7I2W57P6.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.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. { open: '"', close: '"' },
  17. { open: "'", close: "'" },
  18. { open: "`", close: "`" }
  19. ],
  20. surroundingPairs: [
  21. { open: "{", close: "}" },
  22. { open: "[", close: "]" },
  23. { open: "(", close: ")" },
  24. { open: '"', close: '"' },
  25. { open: "'", close: "'" },
  26. { open: "`", close: "`" }
  27. ]
  28. };
  29. var language = {
  30. defaultToken: "",
  31. ignoreCase: true,
  32. tokenPostfix: ".shell",
  33. brackets: [
  34. { token: "delimiter.bracket", open: "{", close: "}" },
  35. { token: "delimiter.parenthesis", open: "(", close: ")" },
  36. { token: "delimiter.square", open: "[", close: "]" }
  37. ],
  38. keywords: [
  39. "if",
  40. "then",
  41. "do",
  42. "else",
  43. "elif",
  44. "while",
  45. "until",
  46. "for",
  47. "in",
  48. "esac",
  49. "fi",
  50. "fin",
  51. "fil",
  52. "done",
  53. "exit",
  54. "set",
  55. "unset",
  56. "export",
  57. "function"
  58. ],
  59. builtins: [
  60. "ab",
  61. "awk",
  62. "bash",
  63. "beep",
  64. "cat",
  65. "cc",
  66. "cd",
  67. "chown",
  68. "chmod",
  69. "chroot",
  70. "clear",
  71. "cp",
  72. "curl",
  73. "cut",
  74. "diff",
  75. "echo",
  76. "find",
  77. "gawk",
  78. "gcc",
  79. "get",
  80. "git",
  81. "grep",
  82. "hg",
  83. "kill",
  84. "killall",
  85. "ln",
  86. "ls",
  87. "make",
  88. "mkdir",
  89. "openssl",
  90. "mv",
  91. "nc",
  92. "node",
  93. "npm",
  94. "ping",
  95. "ps",
  96. "restart",
  97. "rm",
  98. "rmdir",
  99. "sed",
  100. "service",
  101. "sh",
  102. "shopt",
  103. "shred",
  104. "source",
  105. "sort",
  106. "sleep",
  107. "ssh",
  108. "start",
  109. "stop",
  110. "su",
  111. "sudo",
  112. "svn",
  113. "tee",
  114. "telnet",
  115. "top",
  116. "touch",
  117. "vi",
  118. "vim",
  119. "wall",
  120. "wc",
  121. "wget",
  122. "who",
  123. "write",
  124. "yes",
  125. "zsh"
  126. ],
  127. startingWithDash: /\-+\w+/,
  128. identifiersWithDashes: /[a-zA-Z]\w+(?:@startingWithDash)+/,
  129. symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
  130. tokenizer: {
  131. root: [
  132. [/@identifiersWithDashes/, ""],
  133. [/(\s)((?:@startingWithDash)+)/, ["white", "attribute.name"]],
  134. [
  135. /[a-zA-Z]\w*/,
  136. {
  137. cases: {
  138. "@keywords": "keyword",
  139. "@builtins": "type.identifier",
  140. "@default": ""
  141. }
  142. }
  143. ],
  144. { include: "@whitespace" },
  145. { include: "@strings" },
  146. { include: "@parameters" },
  147. { include: "@heredoc" },
  148. [/[{}\[\]()]/, "@brackets"],
  149. [/@symbols/, "delimiter"],
  150. { include: "@numbers" },
  151. [/[,;]/, "delimiter"]
  152. ],
  153. whitespace: [
  154. [/\s+/, "white"],
  155. [/(^#!.*$)/, "metatag"],
  156. [/(^#.*$)/, "comment"]
  157. ],
  158. numbers: [
  159. [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
  160. [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
  161. [/\d+/, "number"]
  162. ],
  163. strings: [
  164. [/'/, "string", "@stringBody"],
  165. [/"/, "string", "@dblStringBody"]
  166. ],
  167. stringBody: [
  168. [/'/, "string", "@popall"],
  169. [/./, "string"]
  170. ],
  171. dblStringBody: [
  172. [/"/, "string", "@popall"],
  173. [/./, "string"]
  174. ],
  175. heredoc: [
  176. [
  177. /(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,
  178. [
  179. "constants",
  180. "white",
  181. "string.heredoc.delimiter",
  182. "string.heredoc",
  183. "string.heredoc.delimiter"
  184. ]
  185. ]
  186. ],
  187. parameters: [
  188. [/\$\d+/, "variable.predefined"],
  189. [/\$\w+/, "variable"],
  190. [/\$[*@#?\-$!0_]/, "variable"],
  191. [/\$'/, "variable", "@parameterBodyQuote"],
  192. [/\$"/, "variable", "@parameterBodyDoubleQuote"],
  193. [/\$\(/, "variable", "@parameterBodyParen"],
  194. [/\$\{/, "variable", "@parameterBodyCurlyBrace"]
  195. ],
  196. parameterBodyQuote: [
  197. [/[^#:%*@\-!_']+/, "variable"],
  198. [/[#:%*@\-!_]/, "delimiter"],
  199. [/[']/, "variable", "@pop"]
  200. ],
  201. parameterBodyDoubleQuote: [
  202. [/[^#:%*@\-!_"]+/, "variable"],
  203. [/[#:%*@\-!_]/, "delimiter"],
  204. [/["]/, "variable", "@pop"]
  205. ],
  206. parameterBodyParen: [
  207. [/[^#:%*@\-!_)]+/, "variable"],
  208. [/[#:%*@\-!_]/, "delimiter"],
  209. [/[)]/, "variable", "@pop"]
  210. ],
  211. parameterBodyCurlyBrace: [
  212. [/[^#:%*@\-!_}]+/, "variable"],
  213. [/[#:%*@\-!_]/, "delimiter"],
  214. [/[}]/, "variable", "@pop"]
  215. ]
  216. }
  217. };
  218. export {
  219. conf,
  220. language
  221. };
  222. /*! Bundled license information:
  223. monaco-editor/esm/vs/basic-languages/shell/shell.js:
  224. (*!-----------------------------------------------------------------------------
  225. * Copyright (c) Microsoft Corporation. All rights reserved.
  226. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  227. * Released under the MIT license
  228. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  229. *-----------------------------------------------------------------------------*)
  230. */
  231. //# sourceMappingURL=shell-7I2W57P6.js.map