@codingame/monaco-editor-wrapper 3.9.2 → 4.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/dist/C2Hs-configuration.json.js +3 -0
  2. package/dist/C2Hs.json.js +3 -0
  3. package/dist/COBOL.tmLanguage.json.js +3 -0
  4. package/dist/Erlang.plist.js +2 -1751
  5. package/dist/Hsc2Hs-configuration.json.js +3 -0
  6. package/dist/Hsc2Hs.json.js +3 -0
  7. package/dist/JavaProperties.tmLanguage.json.js +3 -0
  8. package/dist/Kotlin.tmLanguage.js +2 -723
  9. package/dist/META.json.js +3 -0
  10. package/dist/META.json2.js +3 -0
  11. package/dist/Markdown Redcarpet.json.js +3 -0
  12. package/dist/RMarkdown.json.js +3 -0
  13. package/dist/Rcpp.json.js +3 -0
  14. package/dist/Rd (R Documentation).json.js +3 -0
  15. package/dist/Scala.tmLanguage.json.js +3 -0
  16. package/dist/_commonjsHelpers.js +35 -0
  17. package/dist/_rollupPluginBabelHelpers.js +1 -1
  18. package/dist/add.svg.js +3 -0
  19. package/dist/add.svg2.js +3 -0
  20. package/dist/adddep-dark.svg.js +3 -0
  21. package/dist/adddep-light.svg.js +3 -0
  22. package/dist/alex.json.js +3 -0
  23. package/dist/angular-directives.json.js +3 -0
  24. package/dist/angular-interpolations.json.js +3 -0
  25. package/dist/angular-template-language-configuration.json.js +3 -0
  26. package/dist/arrow-circle-up-dark.svg.js +3 -0
  27. package/dist/arrow-circle-up-light.svg.js +3 -0
  28. package/dist/aspnetcorerazor.tmLanguage.json.js +3 -0
  29. package/dist/atd.json.js +3 -0
  30. package/dist/book-dark.svg.js +3 -0
  31. package/dist/book-light.svg.js +3 -0
  32. package/dist/book-open-dark.svg.js +3 -0
  33. package/dist/book-open-light.svg.js +3 -0
  34. package/dist/buildtarget.json.js +3 -0
  35. package/dist/cabal-configuration.json.js +3 -0
  36. package/dist/cabal.json.js +3 -0
  37. package/dist/codeblock-cabal.json.js +3 -0
  38. package/dist/codeblock-haskell.json.js +3 -0
  39. package/dist/codeblock-literate-haskell.json.js +3 -0
  40. package/dist/codeblock.json.js +3 -0
  41. package/dist/codeblock.json2.js +3 -0
  42. package/dist/configuration/index.d.ts +0 -1
  43. package/dist/cram.json.js +3 -0
  44. package/dist/csharp.json.js +3 -0
  45. package/dist/css.worker.js +1 -1
  46. package/dist/d.json.js +3 -0
  47. package/dist/d.json2.js +3 -0
  48. package/dist/dart-language-configuration.json.js +3 -0
  49. package/dist/dart.json.js +3 -0
  50. package/dist/dcf-configuration.json.js +3 -0
  51. package/dist/dcf.json.js +3 -0
  52. package/dist/diet.json.js +3 -0
  53. package/dist/diet.json2.js +3 -0
  54. package/dist/diet.json3.js +3 -0
  55. package/dist/django-html.tmLanguage.json.js +3 -0
  56. package/dist/django-txt.tmLanguage.json.js +3 -0
  57. package/dist/dml.json.js +3 -0
  58. package/dist/document-search-dark.svg.js +3 -0
  59. package/dist/document-search-light.svg.js +3 -0
  60. package/dist/documentation-inverse.svg.js +3 -0
  61. package/dist/documentation.svg.js +3 -0
  62. package/dist/dub-convert-inverse.svg.js +3 -0
  63. package/dist/dub-convert.svg.js +3 -0
  64. package/dist/dune-project.json.js +3 -0
  65. package/dist/dune-project.json2.js +3 -0
  66. package/dist/dune-workspace.json.js +3 -0
  67. package/dist/dune.json.js +3 -0
  68. package/dist/dune.json2.js +3 -0
  69. package/dist/dune.json3.js +3 -0
  70. package/dist/edit-dub-inverse.svg.js +3 -0
  71. package/dist/edit-dub.svg.js +3 -0
  72. package/dist/edit-source-inverse.svg.js +3 -0
  73. package/dist/edit-source.svg.js +3 -0
  74. package/dist/eex-language-configuration.json.js +3 -0
  75. package/dist/eex.json.js +3 -0
  76. package/dist/elixir-language-configuration.json.js +3 -0
  77. package/dist/elixir.json.js +3 -0
  78. package/dist/erlang.configuration.json.js +3 -0
  79. package/dist/erlang.json.js +3 -0
  80. package/dist/expression.json.js +3 -0
  81. package/dist/extension-web.js.js +3 -0
  82. package/dist/extension-web.js2.js +3 -0
  83. package/dist/extension.browser.js.js +3 -0
  84. package/dist/extensions.d.ts +35 -0
  85. package/dist/features/htmlContribution.js +0 -1
  86. package/dist/features/jsonContribution.d.ts +2 -4
  87. package/dist/features/jsonContribution.js +10 -29
  88. package/dist/features/typescriptContribution.js +2 -2
  89. package/dist/file_type_java.svg.js +3 -0
  90. package/dist/file_type_scala.svg.js +3 -0
  91. package/dist/filters.json.js +3 -0
  92. package/dist/focus-dark.svg.js +3 -0
  93. package/dist/focus-light.svg.js +3 -0
  94. package/dist/general.json.js +3 -0
  95. package/dist/get-inverse.svg.js +3 -0
  96. package/dist/get.svg.js +3 -0
  97. package/dist/go.json.js +3 -0
  98. package/dist/go.mod.language-configuration.json.js +3 -0
  99. package/dist/go.mod.tmGrammar.json.js +3 -0
  100. package/dist/go.sum.tmGrammar.json.js +3 -0
  101. package/dist/govulncheck.tmGrammar.json.js +3 -0
  102. package/dist/happy.json.js +3 -0
  103. package/dist/haskell-configuration.json.js +3 -0
  104. package/dist/haskell.json.js +3 -0
  105. package/dist/hot-reload-tb.png.js +3 -0
  106. package/dist/hot-reload.svg.js +3 -0
  107. package/dist/html-eex.json.js +3 -0
  108. package/dist/html.worker.js +1 -1
  109. package/dist/index.d.ts +2 -3
  110. package/dist/index.js +9 -6
  111. package/dist/index2.js +2 -1351
  112. package/dist/inline-styles.json.js +3 -0
  113. package/dist/inline-template.json.js +3 -0
  114. package/dist/inspector.svg.js +3 -0
  115. package/dist/java-properties-configuration.json.js +3 -0
  116. package/dist/java.json.js +3 -0
  117. package/dist/javascript.json.js +3 -0
  118. package/dist/json.worker.js +1 -1
  119. package/dist/jvm-bytecode-verbose.json.js +3 -0
  120. package/dist/jvm-bytecode.json.js +3 -0
  121. package/dist/kotlin.configuration.json.js +3 -0
  122. package/dist/kotlin.json.js +3 -0
  123. package/dist/lang-config.json.js +3 -0
  124. package/dist/language-configuration.json.js +3 -0
  125. package/dist/language-configuration.json2.js +3 -0
  126. package/dist/language-configuration.json3.js +3 -0
  127. package/dist/language-configuration.json4.js +3 -0
  128. package/dist/language-configuration.json5.js +3 -0
  129. package/dist/language-configuration.json6.js +3 -0
  130. package/dist/language-configuration.json7.js +3 -0
  131. package/dist/language-configuration.json8.js +3 -0
  132. package/dist/languages/index.d.ts +0 -2
  133. package/dist/literate-haskell-configuration.json.js +3 -0
  134. package/dist/literateHaskell.json.js +3 -0
  135. package/dist/main.js +839 -3070
  136. package/dist/markdown-svelte-css.json.js +3 -0
  137. package/dist/markdown-svelte-js.json.js +3 -0
  138. package/dist/markdown-svelte.json.js +3 -0
  139. package/dist/menhir-action.json.js +3 -0
  140. package/dist/menhir.json.js +3 -0
  141. package/dist/menhir.json2.js +3 -0
  142. package/dist/merlin.json.js +3 -0
  143. package/dist/monaco.d.ts +6 -9
  144. package/dist/oasis.json.js +3 -0
  145. package/dist/oasis.json2.js +3 -0
  146. package/dist/ocaml-markdown-codeblock.json.js +3 -0
  147. package/dist/ocaml.interface.json.js +3 -0
  148. package/dist/ocaml.json.js +3 -0
  149. package/dist/ocaml.json2.js +3 -0
  150. package/dist/ocaml.json3.js +3 -0
  151. package/dist/ocamlbuild.json.js +3 -0
  152. package/dist/ocamlbuild.json2.js +3 -0
  153. package/dist/ocamldoc.json.js +3 -0
  154. package/dist/ocamlformat.json.js +3 -0
  155. package/dist/ocamlformat.json2.js +3 -0
  156. package/dist/ocamllex.json.js +3 -0
  157. package/dist/ocamllex.json2.js +3 -0
  158. package/dist/ocamllex.json3.js +3 -0
  159. package/dist/opam-install.json.js +3 -0
  160. package/dist/opam-install.json2.js +3 -0
  161. package/dist/opam.json.js +3 -0
  162. package/dist/opam.json2.js +3 -0
  163. package/dist/outdated-inverse.svg.js +3 -0
  164. package/dist/outdated.svg.js +3 -0
  165. package/dist/pascal.configuration.json.js +3 -0
  166. package/dist/pascal.json.js +3 -0
  167. package/dist/pascal.tmLanguage.js +2 -168
  168. package/dist/performance.svg.js +3 -0
  169. package/dist/pgsql.tmLanguage.js +2 -283
  170. package/dist/pip-requirements.json.js +3 -0
  171. package/dist/pip-requirements.tmLanguage.json.js +3 -0
  172. package/dist/plus-dark.svg.js +3 -0
  173. package/dist/plus-light.svg.js +3 -0
  174. package/dist/postcss.json.js +3 -0
  175. package/dist/preview-right-dark.svg.js +3 -0
  176. package/dist/preview-right-light.svg.js +3 -0
  177. package/dist/pug-svelte-dotblock.json.js +3 -0
  178. package/dist/pug-svelte-tags.json.js +3 -0
  179. package/dist/pug-svelte.json.js +3 -0
  180. package/dist/r-configuration.json.js +3 -0
  181. package/dist/r-snippets.json.js +3 -0
  182. package/dist/r.json.js +3 -0
  183. package/dist/rbuildignore-configuration.json.js +3 -0
  184. package/dist/rbuildignore.json.js +3 -0
  185. package/dist/rd-configuration.json.js +3 -0
  186. package/dist/reason-markdown-codeblock.json.js +3 -0
  187. package/dist/reason.json.js +3 -0
  188. package/dist/reason.json2.js +3 -0
  189. package/dist/ref-group-by-type-dark.svg.js +3 -0
  190. package/dist/ref-group-by-type-light.svg.js +3 -0
  191. package/dist/ref-ungroup-by-type-dark.svg.js +3 -0
  192. package/dist/ref-ungroup-by-type-light.svg.js +3 -0
  193. package/dist/refresh-dark.svg.js +3 -0
  194. package/dist/refresh-dark.svg2.js +3 -0
  195. package/dist/refresh-light.svg.js +3 -0
  196. package/dist/refresh-light.svg2.js +3 -0
  197. package/dist/repl.svg.js +3 -0
  198. package/dist/repl.svg2.js +3 -0
  199. package/dist/rmarkdown.json2.js +3 -0
  200. package/dist/rmd-configuration.json.js +3 -0
  201. package/dist/rnamespace-configuration.json.js +3 -0
  202. package/dist/rnamespace.json.js +3 -0
  203. package/dist/save.svg.js +3 -0
  204. package/dist/save.svg2.js +3 -0
  205. package/dist/scalameta-logo.png.js +3 -0
  206. package/dist/sdl.json.js +3 -0
  207. package/dist/semanticdb.json.js +3 -0
  208. package/dist/services.d.ts +4 -0
  209. package/dist/solidity.configuration.json.js +3 -0
  210. package/dist/solidity.json.js +3 -0
  211. package/dist/solidity.json2.js +3 -0
  212. package/dist/svelte.json.js +3 -0
  213. package/dist/svelte.tmLanguage.json.js +3 -0
  214. package/dist/switch-impl-intf.dark.svg.js +3 -0
  215. package/dist/switch-impl-intf.light.svg.js +3 -0
  216. package/dist/systemverilog.json.js +3 -0
  217. package/dist/systemverilog.tmLanguage.json.js +3 -0
  218. package/dist/tags.json.js +3 -0
  219. package/dist/tasty.json.js +3 -0
  220. package/dist/tcl.json.js +3 -0
  221. package/dist/tcl.json2.js +3 -0
  222. package/dist/template.json.js +3 -0
  223. package/dist/theme/index.d.ts +1 -4
  224. package/dist/tools/EditorOpenHandlerRegistry.d.ts +3 -2
  225. package/dist/ts.worker.js +1 -1
  226. package/dist/typescript.json.js +3 -0
  227. package/dist/upgrade-inverse.svg.js +3 -0
  228. package/dist/upgrade.svg.js +3 -0
  229. package/dist/vim.js +37 -36
  230. package/dist/vs2019_dark.json.js +3 -0
  231. package/dist/vs2019_light.json.js +3 -0
  232. package/dist/worker.js +14 -2
  233. package/dist/x-dark.svg.js +3 -0
  234. package/dist/x-light.svg.js +3 -0
  235. package/package.json +40 -42
  236. package/stats.html +90 -1429
  237. package/dist/COBOL.tmLanguage.js +0 -172
  238. package/dist/HTML (Eex)2.js +0 -100
  239. package/dist/JSON.tmLanguage.js +0 -221
  240. package/dist/JSONC.tmLanguage.js +0 -221
  241. package/dist/JavaProperties.tmLanguage.js +0 -116
  242. package/dist/JavaScript.tmLanguage.js +0 -5922
  243. package/dist/JavaScriptReact.tmLanguage.js +0 -5922
  244. package/dist/META.js +0 -100
  245. package/dist/MagicPython.tmLanguage.js +0 -4221
  246. package/dist/MagicRegExp.tmLanguage.js +0 -505
  247. package/dist/Markdown Redcarpet.js +0 -221
  248. package/dist/RMarkdown.js +0 -25
  249. package/dist/Rcpp.js +0 -50
  250. package/dist/Rd (R Documentation).js +0 -131
  251. package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
  252. package/dist/Scala.tmLanguage.js +0 -1291
  253. package/dist/TypeScript.tmLanguage.js +0 -5673
  254. package/dist/TypeScriptReact.tmLanguage.js +0 -5922
  255. package/dist/angular.js +0 -74
  256. package/dist/asp-vb-net.tmlanguage.js +0 -247
  257. package/dist/aspnetcorerazor.js +0 -72
  258. package/dist/aspnetcorerazor.tmLanguage.js +0 -1522
  259. package/dist/atd.js +0 -110
  260. package/dist/atd2.js +0 -114
  261. package/dist/buildignore.r.js +0 -5
  262. package/dist/buildtarget.js +0 -53
  263. package/dist/c.js +0 -101
  264. package/dist/c.tmLanguage.js +0 -3565
  265. package/dist/cabal.js +0 -10
  266. package/dist/cabal.tmLanguage.js +0 -66
  267. package/dist/clojure.js +0 -68
  268. package/dist/clojure.tmLanguage.js +0 -439
  269. package/dist/cobol.js +0 -6
  270. package/dist/cobol2.js +0 -337
  271. package/dist/codeblock-cabal.js +0 -42
  272. package/dist/codeblock-haskell.js +0 -42
  273. package/dist/codeblock-literate-haskell.js +0 -42
  274. package/dist/codeblock.js +0 -59
  275. package/dist/codeblock2.js +0 -36
  276. package/dist/codeblock3.js +0 -95
  277. package/dist/coffeescript-coffeescript.code-snippets.js +0 -18
  278. package/dist/coffeescript.js +0 -91
  279. package/dist/coffeescript.tmLanguage.js +0 -1324
  280. package/dist/configuration/files.d.ts +0 -6
  281. package/dist/cpp-c.code-snippets.js +0 -18
  282. package/dist/cpp-cpp.code-snippets.js +0 -18
  283. package/dist/cpp.js +0 -101
  284. package/dist/cpp.tmLanguage.js +0 -16485
  285. package/dist/cpptools.js +0 -2608
  286. package/dist/cram.js +0 -257
  287. package/dist/csharp.js +0 -92
  288. package/dist/csharp.tmLanguage.js +0 -4992
  289. package/dist/css.js +0 -106
  290. package/dist/css.tmLanguage.js +0 -1873
  291. package/dist/cuda-cpp.js +0 -101
  292. package/dist/cuda-cpp.tmLanguage.js +0 -19993
  293. package/dist/d-diet.js +0 -92
  294. package/dist/d.js +0 -3173
  295. package/dist/d2.js +0 -97
  296. package/dist/d3.js +0 -609
  297. package/dist/dart.js +0 -543
  298. package/dist/dart2.js +0 -103
  299. package/dist/dart3.js +0 -1124
  300. package/dist/dcf.js +0 -93
  301. package/dist/debian-control.r.js +0 -69
  302. package/dist/diet.js +0 -758
  303. package/dist/diet2.js +0 -100
  304. package/dist/django-html.js +0 -155
  305. package/dist/django-html.tmLanguage.js +0 -715
  306. package/dist/django-txt.js +0 -155
  307. package/dist/django-txt.tmLanguage.js +0 -269
  308. package/dist/dml.js +0 -169
  309. package/dist/dml2.js +0 -90
  310. package/dist/dockercompose.js +0 -82
  311. package/dist/dpp.js +0 -97
  312. package/dist/dscript.js +0 -90
  313. package/dist/dune-project.js +0 -481
  314. package/dist/dune-project2.js +0 -65
  315. package/dist/dune-workspace.js +0 -298
  316. package/dist/dune-workspace2.js +0 -65
  317. package/dist/dune.js +0 -2962
  318. package/dist/dune2.js +0 -65
  319. package/dist/eex.js +0 -55
  320. package/dist/elixir-snippets.js +0 -184
  321. package/dist/elixir.js +0 -2341
  322. package/dist/elixir2.js +0 -69
  323. package/dist/elixir3.js +0 -40
  324. package/dist/erlang-erlang.js +0 -195
  325. package/dist/erlang.js +0 -81
  326. package/dist/erlang2.js +0 -92
  327. package/dist/expression.js +0 -846
  328. package/dist/features/extensionConfigurations.d.ts +0 -1
  329. package/dist/features/extensionConfigurations.js +0 -44
  330. package/dist/fsharp-fsharp.code-snippets.js +0 -18
  331. package/dist/fsharp.js +0 -80
  332. package/dist/fsharp.tmLanguage.js +0 -1844
  333. package/dist/go.js +0 -103
  334. package/dist/go.mod.js +0 -8
  335. package/dist/go.mod.tmGrammar.js +0 -182
  336. package/dist/go.sum.tmGrammar.js +0 -55
  337. package/dist/go.tmLanguage.js +0 -1025
  338. package/dist/go.work.js +0 -8
  339. package/dist/govulncheck.tmGrammar.js +0 -138
  340. package/dist/groovy-groovy.code-snippets.js +0 -229
  341. package/dist/groovy.js +0 -79
  342. package/dist/groovy.tmLanguage.js +0 -1391
  343. package/dist/haskell.js +0 -88
  344. package/dist/haskell.tmLanguage.js +0 -629
  345. package/dist/haskell2.js +0 -16
  346. package/dist/html (eex).js +0 -31
  347. package/dist/html-derivative.tmLanguage.js +0 -57
  348. package/dist/html-html.code-snippets.js +0 -20
  349. package/dist/html.js +0 -11
  350. package/dist/html.tmLanguage.js +0 -2652
  351. package/dist/html.tmLanguage2.js +0 -107
  352. package/dist/inline-styles.js +0 -104
  353. package/dist/inline-template.js +0 -88
  354. package/dist/jade.js +0 -11
  355. package/dist/java-java.js +0 -125
  356. package/dist/java-properties.js +0 -73
  357. package/dist/java.js +0 -95
  358. package/dist/java.tmLanguage.js +0 -1863
  359. package/dist/java2.js +0 -888
  360. package/dist/javascript-javascript.code-snippets.js +0 -205
  361. package/dist/javascript.js +0 -197
  362. package/dist/javascriptreact.js +0 -197
  363. package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
  364. package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
  365. package/dist/json.js +0 -75
  366. package/dist/jsonc.js +0 -75
  367. package/dist/jsx-tags.js +0 -158
  368. package/dist/jvm-bytecode-verbose.js +0 -1231
  369. package/dist/jvm-bytecode.js +0 -565
  370. package/dist/kotlin-kotlin.js +0 -117
  371. package/dist/kotlin.js +0 -103
  372. package/dist/kotlinscript.js +0 -103
  373. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +0 -3
  374. package/dist/languages/extensions/grammarLoader.d.ts +0 -2
  375. package/dist/languages/extensions/languageConfigurationLoader.d.ts +0 -2
  376. package/dist/languages/extensions/snippetLoader.d.ts +0 -2
  377. package/dist/languages/extensions/themeLoader.d.ts +0 -2
  378. package/dist/languages/snippets/index.d.ts +0 -1
  379. package/dist/languages/textMate/index.d.ts +0 -1
  380. package/dist/languages/textMate/semanticTokens.d.ts +0 -1
  381. package/dist/literate haskell.js +0 -88
  382. package/dist/literateHaskell.tmLanguage.js +0 -70
  383. package/dist/lua.js +0 -84
  384. package/dist/lua.tmLanguage.js +0 -906
  385. package/dist/lua2.js +0 -2859
  386. package/dist/markdown-basics-markdown.code-snippets.js +0 -121
  387. package/dist/markdown-svelte-css.js +0 -37
  388. package/dist/markdown-svelte-js.js +0 -37
  389. package/dist/markdown-svelte.js +0 -59
  390. package/dist/markdown-vue.js +0 -54
  391. package/dist/markdown.js +0 -49
  392. package/dist/markdown.tmLanguage.js +0 -3006
  393. package/dist/menhir-action.js +0 -51
  394. package/dist/menhir.js +0 -597
  395. package/dist/merlin.js +0 -111
  396. package/dist/namespace.r.js +0 -88
  397. package/dist/oasis.js +0 -99
  398. package/dist/objective-c.js +0 -79
  399. package/dist/objective-c.tmLanguage.js +0 -3763
  400. package/dist/objective-cpp.js +0 -79
  401. package/dist/ocaml-dune-project.js +0 -38
  402. package/dist/ocaml-dune.js +0 -53
  403. package/dist/ocaml-markdown-codeblock.js +0 -42
  404. package/dist/ocaml-ocaml.js +0 -88
  405. package/dist/ocaml-ocamllex.js +0 -12
  406. package/dist/ocaml.META.js +0 -29
  407. package/dist/ocaml.interface.js +0 -292
  408. package/dist/ocaml.interface2.js +0 -114
  409. package/dist/ocaml.js +0 -903
  410. package/dist/ocaml.menhir.js +0 -81
  411. package/dist/ocaml.oasis.js +0 -18
  412. package/dist/ocaml.ocamlbuild.js +0 -45
  413. package/dist/ocaml.ocamlformat.js +0 -8
  414. package/dist/ocaml.ocamllex.js +0 -60
  415. package/dist/ocaml.opam-install.js +0 -49
  416. package/dist/ocaml.opam.js +0 -69
  417. package/dist/ocaml2.js +0 -114
  418. package/dist/ocaml3.js +0 -136
  419. package/dist/ocamlbuild.js +0 -189
  420. package/dist/ocamldoc.js +0 -54
  421. package/dist/ocamlformat.js +0 -206
  422. package/dist/ocamllex.js +0 -133
  423. package/dist/omnisharp-csharp.js +0 -508
  424. package/dist/omnisharp.js +0 -590
  425. package/dist/opam-install.js +0 -40
  426. package/dist/opam.js +0 -140
  427. package/dist/pascal-pascal.js +0 -382
  428. package/dist/pascal.js +0 -80
  429. package/dist/pascal2.js +0 -26
  430. package/dist/perl.js +0 -93
  431. package/dist/perl.tmLanguage.js +0 -2986
  432. package/dist/perl6.js +0 -86
  433. package/dist/perl6.tmLanguage.js +0 -323
  434. package/dist/php-php.code-snippets.js +0 -267
  435. package/dist/php.js +0 -154
  436. package/dist/php.tmLanguage.js +0 -4008
  437. package/dist/pip-requirements.js +0 -8
  438. package/dist/pip-requirements.tmLanguage.js +0 -89
  439. package/dist/plaintext.js +0 -11
  440. package/dist/platform.tmLanguage.js +0 -1135
  441. package/dist/postcss.src.yaml.js +0 -393
  442. package/dist/postgres.js +0 -80
  443. package/dist/postgresql.js +0 -75
  444. package/dist/powershell.js +0 -107
  445. package/dist/powershell.tmLanguage.js +0 -1037
  446. package/dist/pug-svelte-dotblock.js +0 -69
  447. package/dist/pug-svelte-tags.js +0 -215
  448. package/dist/pug-svelte.js +0 -307
  449. package/dist/python.js +0 -236
  450. package/dist/r.js +0 -664
  451. package/dist/r2.js +0 -88
  452. package/dist/rbuildignore.js +0 -39
  453. package/dist/rd.js +0 -81
  454. package/dist/reason-markdown-codeblock.js +0 -42
  455. package/dist/reason.js +0 -79
  456. package/dist/rmd.js +0 -84
  457. package/dist/rnamespace.js +0 -283
  458. package/dist/ruby.js +0 -95
  459. package/dist/ruby.tmLanguage.js +0 -2784
  460. package/dist/rust.js +0 -84
  461. package/dist/rust.tmLanguage.js +0 -1178
  462. package/dist/sassdoc.tmLanguage.js +0 -362
  463. package/dist/scala.js +0 -85
  464. package/dist/scalameta.js +0 -223
  465. package/dist/scss.js +0 -117
  466. package/dist/scss.tmLanguage.js +0 -1887
  467. package/dist/sdl.js +0 -162
  468. package/dist/sdl2.js +0 -90
  469. package/dist/semanticdb.js +0 -62
  470. package/dist/shell-unix-bash.tmLanguage.js +0 -2016
  471. package/dist/shellscript.js +0 -93
  472. package/dist/solargraph.js +0 -192
  473. package/dist/solidity-solidity.js +0 -213
  474. package/dist/solidity.js +0 -1187
  475. package/dist/solidity2.js +0 -71
  476. package/dist/solidity3.js +0 -137
  477. package/dist/sql.js +0 -99
  478. package/dist/sql.tmLanguage.js +0 -636
  479. package/dist/svelte.js +0 -120
  480. package/dist/svelte.svelte-vscode-javascript.js +0 -45
  481. package/dist/svelte.svelte-vscode-svelte.js +0 -46
  482. package/dist/svelte.svelte-vscode-typescript.js +0 -43
  483. package/dist/svelte.svelte-vscode.js +0 -383
  484. package/dist/svelte.tmLanguage.src.yaml.js +0 -1099
  485. package/dist/svlangserver-systemverilog.js +0 -395
  486. package/dist/svlangserver.js +0 -85
  487. package/dist/swift-swift.code-snippets.js +0 -183
  488. package/dist/swift.js +0 -90
  489. package/dist/swift.tmLanguage.js +0 -3312
  490. package/dist/systemverilog.js +0 -187
  491. package/dist/systemverilog.tmLanguage.js +0 -1259
  492. package/dist/tasty.js +0 -72
  493. package/dist/tcl-tcl.js +0 -151
  494. package/dist/tcl.js +0 -78
  495. package/dist/tcl.tmlanguage.yaml.js +0 -5484
  496. package/dist/template.js +0 -207
  497. package/dist/theme-defaults~dark_plus.js +0 -207
  498. package/dist/theme-defaults~dark_plus_experimental.js +0 -146
  499. package/dist/theme-defaults~dark_vs.js +0 -412
  500. package/dist/theme-defaults~hc_black.js +0 -471
  501. package/dist/theme-defaults~hc_light.js +0 -595
  502. package/dist/theme-defaults~light_plus.js +0 -209
  503. package/dist/theme-defaults~light_plus_experimental.js +0 -159
  504. package/dist/theme-defaults~light_vs.js +0 -441
  505. package/dist/typescript-basics-typescript.code-snippets.js +0 -313
  506. package/dist/typescript-language-features.js +0 -1090
  507. package/dist/typescript.js +0 -216
  508. package/dist/typescriptreact.js +0 -216
  509. package/dist/vb-vb.code-snippets.js +0 -88
  510. package/dist/vb.js +0 -79
  511. package/dist/verilog.js +0 -187
  512. package/dist/volar-vue.js +0 -343
  513. package/dist/vscode-R-r-snippets.js +0 -534
  514. package/dist/vscode-R-rmarkdown.js +0 -461
  515. package/dist/vscode-R.js +0 -648
  516. package/dist/vscode-django-filters.js +0 -340
  517. package/dist/vscode-django.js +0 -37
  518. package/dist/vscode-go-go.js +0 -276
  519. package/dist/vscode-go.js +0 -1604
  520. package/dist/vscode-groovy.js +0 -28
  521. package/dist/vscode-python.js +0 -686
  522. package/dist/vue-directives.js +0 -25
  523. package/dist/vue-interpolations.js +0 -25
  524. package/dist/vue-sfc-style-variable-injection.js +0 -63
  525. package/dist/vue.js +0 -151
  526. package/dist/vue.tmLanguage.js +0 -1218
  527. package/dist/xml.js +0 -116
  528. package/dist/xml.tmLanguage.js +0 -395
  529. package/dist/xsl.js +0 -39
  530. package/dist/xsl.tmLanguage.js +0 -102
  531. package/dist/yaml.js +0 -82
  532. package/dist/yaml.tmLanguage.js +0 -629
  533. /package/dist/{extensions → editor}/autofold.d.ts +0 -0
  534. /package/dist/{extensions → editor}/cobol.d.ts +0 -0
  535. /package/dist/{extensions → editor}/index.d.ts +0 -0
@@ -1,2016 +0,0 @@
1
- var information_for_contributors = [
2
- "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/shellscript/",
3
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
- "Once accepted there, we are happy to receive an update request."
5
- ];
6
- var version = "https://github.com/jeff-hykin/better-shell-syntax/commit/b05618771b35b4baa25661dff91170b4924fdac8";
7
- var name = "Shell Script";
8
- var scopeName = "source.shell";
9
- var patterns = [
10
- {
11
- include: "#initial_context"
12
- }
13
- ];
14
- var repository = {
15
- alias_statement: {
16
- begin: "(alias)(?:\\s)+\\s*+((?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",
17
- end: "(?:(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)|(?= |$))",
18
- beginCaptures: {
19
- "1": {
20
- name: "storage.type.alias.shell"
21
- },
22
- "2": {
23
- name: "variable.other.assignment.shell"
24
- },
25
- "3": {
26
- name: "punctuation.definition.array.access.shell"
27
- },
28
- "4": {
29
- name: "variable.other.assignment.shell"
30
- },
31
- "5": {
32
- name: "punctuation.definition.array.access.shell"
33
- },
34
- "6": {
35
- name: "keyword.operator.assignment.shell"
36
- },
37
- "7": {
38
- name: "keyword.operator.assignment.compound.shell"
39
- },
40
- "8": {
41
- name: "keyword.operator.assignment.compound.shell"
42
- }
43
- },
44
- endCaptures: {
45
- "1": {
46
- name: "punctuation.terminator.statement.semicolon.shell"
47
- },
48
- "2": {
49
- name: "punctuation.separator.statement.and.shell"
50
- },
51
- "3": {
52
- name: "punctuation.separator.statement.or.shell"
53
- },
54
- "4": {
55
- name: "punctuation.separator.statement.background.shell"
56
- }
57
- },
58
- name: "meta.expression.assignment.shell",
59
- patterns: [
60
- {
61
- include: "#statement_context"
62
- }
63
- ]
64
- },
65
- argument: {
66
- begin: "\\s++(?!(?:%|&|\\||\\(|\\[|#|\\n|$|;))",
67
- end: "(?=\\s|;|\\||&|$|\\n|\\)|\\`)",
68
- beginCaptures: {
69
- },
70
- endCaptures: {
71
- },
72
- name: "meta.argument.shell",
73
- patterns: [
74
- {
75
- include: "#argument_context"
76
- },
77
- {
78
- include: "#line_continuation"
79
- }
80
- ]
81
- },
82
- argument_context: {
83
- patterns: [
84
- {
85
- match: "[^ \n'&;<>\\(\\)\\$`\\\\\"\\|]+(?!>)",
86
- captures: {
87
- "0": {
88
- patterns: [
89
- {
90
- match: "\\*",
91
- name: "variable.language.special.wildcard.shell"
92
- },
93
- {
94
- include: "#variable"
95
- },
96
- {
97
- include: "#numeric_literal"
98
- },
99
- {
100
- match: "(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",
101
- captures: {
102
- "1": {
103
- name: "constant.language.$1.shell"
104
- }
105
- }
106
- }
107
- ]
108
- }
109
- },
110
- name: "string.unquoted.argument.shell"
111
- },
112
- {
113
- include: "#statement_context"
114
- }
115
- ]
116
- },
117
- assignment: {
118
- begin: "\\s*+((?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",
119
- end: "(?:(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)|(?= |$))",
120
- beginCaptures: {
121
- "1": {
122
- name: "variable.other.assignment.shell"
123
- },
124
- "2": {
125
- name: "punctuation.definition.array.access.shell"
126
- },
127
- "3": {
128
- name: "variable.other.assignment.shell"
129
- },
130
- "4": {
131
- name: "punctuation.definition.array.access.shell"
132
- },
133
- "5": {
134
- name: "keyword.operator.assignment.shell"
135
- },
136
- "6": {
137
- name: "keyword.operator.assignment.compound.shell"
138
- },
139
- "7": {
140
- name: "keyword.operator.assignment.compound.shell"
141
- }
142
- },
143
- endCaptures: {
144
- "1": {
145
- name: "punctuation.terminator.statement.semicolon.shell"
146
- },
147
- "2": {
148
- name: "punctuation.separator.statement.and.shell"
149
- },
150
- "3": {
151
- name: "punctuation.separator.statement.or.shell"
152
- },
153
- "4": {
154
- name: "punctuation.separator.statement.background.shell"
155
- }
156
- },
157
- name: "meta.expression.assignment.shell",
158
- patterns: [
159
- {
160
- include: "#argument_context"
161
- }
162
- ]
163
- },
164
- block_comment: {
165
- begin: "\\s*+(\\/\\*)",
166
- end: "\\*\\/",
167
- beginCaptures: {
168
- "1": {
169
- name: "punctuation.definition.comment.begin.shell"
170
- }
171
- },
172
- endCaptures: {
173
- "0": {
174
- name: "punctuation.definition.comment.end.shell"
175
- }
176
- },
177
- name: "comment.block.shell"
178
- },
179
- boolean: {
180
- match: "\\b(?:true|false)\\b",
181
- name: "constant.language.$0.shell"
182
- },
183
- "case-clause": {
184
- patterns: [
185
- {
186
- begin: "(?=\\S)",
187
- end: ";;",
188
- endCaptures: {
189
- "0": {
190
- name: "punctuation.terminator.case-clause.shell"
191
- }
192
- },
193
- name: "meta.scope.case-clause.shell",
194
- patterns: [
195
- {
196
- begin: "\\(|(?=\\S)",
197
- beginCaptures: {
198
- "0": {
199
- name: "punctuation.definition.case-pattern.shell"
200
- }
201
- },
202
- end: "\\)",
203
- endCaptures: {
204
- "0": {
205
- name: "punctuation.definition.case-pattern.shell"
206
- }
207
- },
208
- name: "meta.scope.case-pattern.shell",
209
- patterns: [
210
- {
211
- match: "\\|",
212
- name: "punctuation.separator.pipe-sign.shell"
213
- },
214
- {
215
- include: "#string"
216
- },
217
- {
218
- include: "#variable"
219
- },
220
- {
221
- include: "#interpolation"
222
- },
223
- {
224
- include: "#pathname"
225
- }
226
- ]
227
- },
228
- {
229
- begin: "(?<=\\))",
230
- end: "(?=;;)",
231
- name: "meta.scope.case-clause-body.shell",
232
- patterns: [
233
- {
234
- include: "#initial_context"
235
- }
236
- ]
237
- }
238
- ]
239
- }
240
- ]
241
- },
242
- command_call: {
243
- begin: "(?!^ *+$)(?<=(?:^|;|\\||&|!|\\(|\\{|\\`))\\s*+(?!nocorrect\\W|nocorrect\\$|readonly\\W|readonly\\$|function\\W|function\\$|foreach\\W|foreach\\$|coproc\\W|coproc\\$|logout\\W|logout\\$|export\\W|export\\$|select\\W|select\\$|repeat\\W|repeat\\$|pushd\\W|pushd\\$|until\\W|until\\$|while\\W|while\\$|local\\W|local\\$|case\\W|case\\$|done\\W|done\\$|elif\\W|elif\\$|else\\W|else\\$|esac\\W|esac\\$|popd\\W|popd\\$|then\\W|then\\$|time\\W|time\\$|for\\W|for\\$|end\\W|end\\$|fi\\W|fi\\$|do\\W|do\\$|in\\W|in\\$|if\\W|if\\$)",
244
- end: "(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|#|\\])(?<!\\\\)",
245
- beginCaptures: {
246
- },
247
- endCaptures: {
248
- },
249
- name: "meta.statement.shell",
250
- patterns: [
251
- {
252
- begin: "\\s*+(?!(?:!|%|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|\\s))(.+?)(?:(?=\\s)|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|#|\\])(?<!\\\\))",
253
- end: "(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|#|\\])(?<!\\\\)",
254
- beginCaptures: {
255
- "0": {
256
- name: "meta.command_name.shell"
257
- },
258
- "1": {
259
- name: "entity.name.command.shell",
260
- patterns: [
261
- {
262
- match: "(?<!\\w)(?:return|break)(?!\\w)",
263
- name: "keyword.control.$0.shell"
264
- },
265
- {
266
- match: "(?<!\\w)(?:unfunction|unsetopt|autoload|unlimit|bindkey|builtin|command|getopts|history|declare|unalias|typeset|suspend|return|source|ulimit|unhash|disown|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|hash|jobs|kill|stat|exit|test|trap|true|pwd|let|set|cd|fg|bg|fc|:|\\.)(?!\\w)",
267
- name: "support.function.builtin.shell"
268
- },
269
- {
270
- include: "#variable"
271
- }
272
- ]
273
- }
274
- },
275
- endCaptures: {
276
- },
277
- name: "meta.command.shell",
278
- patterns: [
279
- {
280
- include: "#line_continuation"
281
- },
282
- {
283
- include: "#option"
284
- },
285
- {
286
- include: "#argument"
287
- },
288
- {
289
- include: "#statement_context"
290
- }
291
- ]
292
- },
293
- {
294
- include: "#line_continuation"
295
- },
296
- {
297
- include: "#statement_context"
298
- }
299
- ]
300
- },
301
- command_name: {
302
- match: "\\s*+(?!(?:!|%|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|\\s))(.+?)(?:(?=\\s)|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|#|\\])(?<!\\\\))",
303
- captures: {
304
- "1": {
305
- name: "entity.name.command.shell",
306
- patterns: [
307
- {
308
- match: "(?<!\\w)(?:return|break)(?!\\w)",
309
- name: "keyword.control.$0.shell"
310
- },
311
- {
312
- match: "(?<!\\w)(?:unfunction|unsetopt|autoload|unlimit|bindkey|builtin|command|getopts|history|declare|unalias|typeset|suspend|return|source|ulimit|unhash|disown|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|hash|jobs|kill|stat|exit|test|trap|true|pwd|let|set|cd|fg|bg|fc|:|\\.)(?!\\w)",
313
- name: "support.function.builtin.shell"
314
- },
315
- {
316
- include: "#variable"
317
- }
318
- ]
319
- }
320
- },
321
- name: "meta.command_name.shell"
322
- },
323
- comment: {
324
- match: "(?<=^|\\s)(?:((#!).*)|((#).*))",
325
- captures: {
326
- "1": {
327
- name: "comment.line.number-sign.shell meta.shebang.shell"
328
- },
329
- "2": {
330
- name: "punctuation.definition.comment.shebang.shell"
331
- },
332
- "3": {
333
- name: "comment.line.number-sign.shell"
334
- },
335
- "4": {
336
- name: "punctuation.definition.comment.shell"
337
- }
338
- }
339
- },
340
- comments: {
341
- patterns: [
342
- {
343
- include: "#block_comment"
344
- },
345
- {
346
- include: "#line_comment"
347
- }
348
- ]
349
- },
350
- "compound-command": {
351
- patterns: [
352
- {
353
- begin: "\\[{1,2}",
354
- beginCaptures: {
355
- "0": {
356
- name: "punctuation.definition.logical-expression.shell"
357
- }
358
- },
359
- end: "\\]{1,2}",
360
- endCaptures: {
361
- "0": {
362
- name: "punctuation.definition.logical-expression.shell"
363
- }
364
- },
365
- name: "meta.scope.logical-expression.shell",
366
- patterns: [
367
- {
368
- include: "#logical-expression"
369
- },
370
- {
371
- include: "#initial_context"
372
- }
373
- ]
374
- },
375
- {
376
- begin: "\\({2}",
377
- beginCaptures: {
378
- "0": {
379
- name: "punctuation.definition.string.begin.shell"
380
- }
381
- },
382
- end: "\\){2}",
383
- endCaptures: {
384
- "0": {
385
- name: "punctuation.definition.string.end.shell"
386
- }
387
- },
388
- name: "string.other.math.shell",
389
- patterns: [
390
- {
391
- include: "#math"
392
- }
393
- ]
394
- },
395
- {
396
- begin: "\\(",
397
- beginCaptures: {
398
- "0": {
399
- name: "punctuation.definition.subshell.shell"
400
- }
401
- },
402
- end: "\\)",
403
- endCaptures: {
404
- "0": {
405
- name: "punctuation.definition.subshell.shell"
406
- }
407
- },
408
- name: "meta.scope.subshell.shell",
409
- patterns: [
410
- {
411
- include: "#initial_context"
412
- }
413
- ]
414
- },
415
- {
416
- begin: "(?<=\\s|^){(?=\\s|$)",
417
- beginCaptures: {
418
- "0": {
419
- name: "punctuation.definition.group.shell"
420
- }
421
- },
422
- end: "(?<=^|;)\\s*(})",
423
- endCaptures: {
424
- "1": {
425
- name: "punctuation.definition.group.shell"
426
- }
427
- },
428
- name: "meta.scope.group.shell",
429
- patterns: [
430
- {
431
- include: "#initial_context"
432
- }
433
- ]
434
- }
435
- ]
436
- },
437
- custom_command_names: {
438
- patterns: [
439
- ]
440
- },
441
- custom_commands: {
442
- patterns: [
443
- ]
444
- },
445
- double_quote_escape_char: {
446
- match: "\\\\[\\$`\"\\\\\\n]",
447
- name: "constant.character.escape.shell"
448
- },
449
- "function-definition": {
450
- patterns: [
451
- {
452
- begin: "(?:^\\s*|(?<=^|;|&|\\s))(function)\\s+([^\\s\\\\]+)(?:\\s*(\\(\\)))?",
453
- beginCaptures: {
454
- "1": {
455
- name: "storage.type.function.shell"
456
- },
457
- "2": {
458
- name: "entity.name.function.shell"
459
- },
460
- "3": {
461
- name: "punctuation.definition.arguments.shell"
462
- }
463
- },
464
- end: ";|&|$",
465
- endCaptures: {
466
- "0": {
467
- name: "punctuation.definition.function.shell"
468
- }
469
- },
470
- name: "meta.function.shell",
471
- patterns: [
472
- {
473
- include: "#initial_context"
474
- }
475
- ]
476
- },
477
- {
478
- begin: "(?:^\\s*|(?<=^|;|&|\\s))([^\\s\\\\=]+)\\s*(\\(\\))",
479
- beginCaptures: {
480
- "1": {
481
- name: "entity.name.function.shell"
482
- },
483
- "2": {
484
- name: "punctuation.definition.arguments.shell"
485
- }
486
- },
487
- end: ";|&|$",
488
- endCaptures: {
489
- "0": {
490
- name: "punctuation.definition.function.shell"
491
- }
492
- },
493
- name: "meta.function.shell",
494
- patterns: [
495
- {
496
- include: "#initial_context"
497
- }
498
- ]
499
- }
500
- ]
501
- },
502
- heredoc: {
503
- patterns: [
504
- {
505
- begin: "(<<-)\\s*+(\"|')\\s*+((?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w))(?=\\s|;|&|<|\"|')\\2",
506
- end: "^\\t*\\3(?=\\s|;|&|$)",
507
- beginCaptures: {
508
- "1": {
509
- name: "keyword.operator.heredoc.shell"
510
- },
511
- "2": {
512
- },
513
- "3": {
514
- name: "punctuation.definition.string.heredoc.shell"
515
- }
516
- },
517
- endCaptures: {
518
- "0": {
519
- name: "punctuation.definition.string.heredoc.shell"
520
- }
521
- },
522
- name: "string.quoted.heredoc.indent.shell",
523
- patterns: [
524
- ]
525
- },
526
- {
527
- begin: "(<<)\\s*+(\"|')\\s*+((?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w))(?=\\s|;|&|<|\"|')\\2",
528
- end: "^\\3(?=\\s|;|&|$)",
529
- beginCaptures: {
530
- "1": {
531
- name: "keyword.operator.heredoc.shell"
532
- },
533
- "2": {
534
- },
535
- "3": {
536
- name: "punctuation.definition.string.heredoc.shell"
537
- }
538
- },
539
- endCaptures: {
540
- "0": {
541
- name: "punctuation.definition.string.heredoc.shell"
542
- }
543
- },
544
- name: "string.quoted.heredoc.no-indent.shell",
545
- patterns: [
546
- ]
547
- },
548
- {
549
- begin: "(<<-)\\s*+((?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w))(?=\\s|;|&|<|\"|')",
550
- end: "^\\t*\\2(?=\\s|;|&|$)",
551
- beginCaptures: {
552
- "1": {
553
- name: "keyword.operator.heredoc.shell"
554
- },
555
- "2": {
556
- name: "punctuation.definition.string.heredoc.shell"
557
- }
558
- },
559
- endCaptures: {
560
- "0": {
561
- name: "punctuation.definition.string.heredoc.shell"
562
- }
563
- },
564
- name: "string.unquoted.heredoc.indent.shell",
565
- patterns: [
566
- {
567
- include: "#double_quote_escape_char"
568
- },
569
- {
570
- include: "#variable"
571
- },
572
- {
573
- include: "#interpolation"
574
- }
575
- ]
576
- },
577
- {
578
- begin: "(<<)\\s*+((?<!\\w)[a-zA-Z_][a-zA-Z_0-9]*(?!\\w))(?=\\s|;|&|<|\"|')",
579
- end: "^\\2(?=\\s|;|&|$)",
580
- beginCaptures: {
581
- "1": {
582
- name: "keyword.operator.heredoc.shell"
583
- },
584
- "2": {
585
- name: "punctuation.definition.string.heredoc.shell"
586
- }
587
- },
588
- endCaptures: {
589
- "0": {
590
- name: "punctuation.definition.string.heredoc.shell"
591
- }
592
- },
593
- name: "string.unquoted.heredoc.no-indent.shell",
594
- patterns: [
595
- {
596
- include: "#double_quote_escape_char"
597
- },
598
- {
599
- include: "#variable"
600
- },
601
- {
602
- include: "#interpolation"
603
- }
604
- ]
605
- }
606
- ]
607
- },
608
- herestring: {
609
- patterns: [
610
- {
611
- begin: "(<<<)\\s*(('))",
612
- beginCaptures: {
613
- "1": {
614
- name: "keyword.operator.herestring.shell"
615
- },
616
- "2": {
617
- name: "string.quoted.single.shell"
618
- },
619
- "3": {
620
- name: "punctuation.definition.string.begin.shell"
621
- }
622
- },
623
- end: "(')",
624
- endCaptures: {
625
- "0": {
626
- name: "string.quoted.single.shell"
627
- },
628
- "1": {
629
- name: "punctuation.definition.string.end.shell"
630
- }
631
- },
632
- name: "meta.herestring.shell",
633
- contentName: "string.quoted.single.shell"
634
- },
635
- {
636
- begin: "(<<<)\\s*((\"))",
637
- beginCaptures: {
638
- "1": {
639
- name: "keyword.operator.herestring.shell"
640
- },
641
- "2": {
642
- name: "string.quoted.double.shell"
643
- },
644
- "3": {
645
- name: "punctuation.definition.string.begin.shell"
646
- }
647
- },
648
- end: "(\")",
649
- endCaptures: {
650
- "0": {
651
- name: "string.quoted.double.shell"
652
- },
653
- "1": {
654
- name: "punctuation.definition.string.end.shell"
655
- }
656
- },
657
- name: "meta.herestring.shell",
658
- contentName: "string.quoted.double.shell"
659
- },
660
- {
661
- captures: {
662
- "1": {
663
- name: "keyword.operator.herestring.shell"
664
- },
665
- "2": {
666
- name: "string.unquoted.herestring.shell",
667
- patterns: [
668
- {
669
- include: "#initial_context"
670
- }
671
- ]
672
- }
673
- },
674
- match: "(<<<)\\s*(([^\\s)\\\\]|\\\\.)+)",
675
- name: "meta.herestring.shell"
676
- }
677
- ]
678
- },
679
- initial_context: {
680
- patterns: [
681
- {
682
- include: "#comment"
683
- },
684
- {
685
- include: "#boolean"
686
- },
687
- {
688
- include: "#numeric_literal"
689
- },
690
- {
691
- include: "#pipeline"
692
- },
693
- {
694
- include: "#statement_seperator"
695
- },
696
- {
697
- include: "#logical_expression_double"
698
- },
699
- {
700
- include: "#logical_expression_single"
701
- },
702
- {
703
- include: "#misc_ranges"
704
- },
705
- {
706
- include: "#loop"
707
- },
708
- {
709
- include: "#string"
710
- },
711
- {
712
- include: "#function-definition"
713
- },
714
- {
715
- include: "#variable"
716
- },
717
- {
718
- include: "#interpolation"
719
- },
720
- {
721
- include: "#heredoc"
722
- },
723
- {
724
- include: "#herestring"
725
- },
726
- {
727
- include: "#redirection"
728
- },
729
- {
730
- include: "#pathname"
731
- },
732
- {
733
- include: "#keyword"
734
- },
735
- {
736
- include: "#alias_statement"
737
- },
738
- {
739
- include: "#assignment"
740
- },
741
- {
742
- include: "#command_call"
743
- },
744
- {
745
- include: "#support"
746
- }
747
- ]
748
- },
749
- inline_comment: {
750
- match: "(\\/\\*)((?:[^\\*]|(?:\\*)++[^\\/])*+((?:\\*)++\\/))",
751
- captures: {
752
- "1": {
753
- name: "comment.block.shell punctuation.definition.comment.begin.shell"
754
- },
755
- "2": {
756
- name: "comment.block.shell"
757
- },
758
- "3": {
759
- patterns: [
760
- {
761
- match: "\\*\\/",
762
- name: "comment.block.shell punctuation.definition.comment.end.shell"
763
- },
764
- {
765
- match: "\\*",
766
- name: "comment.block.shell"
767
- }
768
- ]
769
- }
770
- }
771
- },
772
- interpolation: {
773
- patterns: [
774
- {
775
- begin: "\\$\\({2}",
776
- beginCaptures: {
777
- "0": {
778
- name: "punctuation.definition.evaluation.arithmetic.begin.shell"
779
- }
780
- },
781
- end: "\\)\\s*\\)",
782
- endCaptures: {
783
- "0": {
784
- name: "punctuation.definition.evaluation.arithmetic.end.shell"
785
- }
786
- },
787
- name: "string.other.math.shell",
788
- patterns: [
789
- {
790
- include: "#math"
791
- }
792
- ]
793
- },
794
- {
795
- begin: "`",
796
- beginCaptures: {
797
- "0": {
798
- name: "punctuation.definition.evaluation.backticks.shell"
799
- }
800
- },
801
- end: "`",
802
- endCaptures: {
803
- "0": {
804
- name: "punctuation.definition.evaluation.backticks.shell"
805
- }
806
- },
807
- name: "string.interpolated.backtick.shell",
808
- patterns: [
809
- {
810
- match: "\\\\[`\\\\$]",
811
- name: "constant.character.escape.shell"
812
- },
813
- {
814
- begin: "(?<=\\W)(?=#)(?!#{)",
815
- beginCaptures: {
816
- "1": {
817
- name: "punctuation.whitespace.comment.leading.shell"
818
- }
819
- },
820
- end: "(?!\\G)",
821
- patterns: [
822
- {
823
- begin: "#",
824
- beginCaptures: {
825
- "0": {
826
- name: "punctuation.definition.comment.shell"
827
- }
828
- },
829
- end: "(?=`)",
830
- name: "comment.line.number-sign.shell"
831
- }
832
- ]
833
- },
834
- {
835
- include: "#initial_context"
836
- }
837
- ]
838
- },
839
- {
840
- begin: "\\$\\(",
841
- beginCaptures: {
842
- "0": {
843
- name: "punctuation.definition.evaluation.parens.begin.shell"
844
- }
845
- },
846
- end: "\\)",
847
- endCaptures: {
848
- "0": {
849
- name: "punctuation.definition.evaluation.parens.end.shell"
850
- }
851
- },
852
- name: "string.interpolated.dollar.shell",
853
- patterns: [
854
- {
855
- include: "#initial_context"
856
- }
857
- ]
858
- }
859
- ]
860
- },
861
- keyword: {
862
- patterns: [
863
- {
864
- match: "(?<=^|;|&|\\s)(?:then|else|elif|fi|for|in|do|done|select|case|continue|esac|while|until|return)(?=\\s|;|&|$)",
865
- name: "keyword.control.$0.shell"
866
- },
867
- {
868
- match: "(?<=^|;|&|\\s)(?:export|declare|typeset|local|readonly)(?=\\s|;|&|$)",
869
- name: "storage.modifier.$0.shell"
870
- }
871
- ]
872
- },
873
- line_comment: {
874
- begin: "\\s*+(\\/\\/)",
875
- end: "(?<=\\n)(?<!\\\\\\n)",
876
- beginCaptures: {
877
- "1": {
878
- name: "punctuation.definition.comment.shell"
879
- }
880
- },
881
- endCaptures: {
882
- },
883
- name: "comment.line.double-slash.shell",
884
- patterns: [
885
- {
886
- include: "#line_continuation_character"
887
- }
888
- ]
889
- },
890
- line_continuation: {
891
- match: "\\\\(?=\\n)",
892
- name: "constant.character.escape.line-continuation.shell"
893
- },
894
- "logical-expression": {
895
- patterns: [
896
- {
897
- comment: "do we want a special rule for ( expr )?",
898
- match: "=[=~]?|!=?|<|>|&&|\\|\\|",
899
- name: "keyword.operator.logical.shell"
900
- },
901
- {
902
- match: "(?<!\\S)-(nt|ot|ef|eq|ne|l[te]|g[te]|[a-hknoprstuwxzOGLSN])\\b",
903
- name: "keyword.operator.logical.shell"
904
- }
905
- ]
906
- },
907
- logical_expression_context: {
908
- patterns: [
909
- {
910
- include: "#regex_comparison"
911
- },
912
- {
913
- include: "#logical-expression"
914
- },
915
- {
916
- include: "#logical_expression_single"
917
- },
918
- {
919
- include: "#logical_expression_double"
920
- },
921
- {
922
- include: "#comment"
923
- },
924
- {
925
- include: "#boolean"
926
- },
927
- {
928
- include: "#numeric_literal"
929
- },
930
- {
931
- include: "#pipeline"
932
- },
933
- {
934
- include: "#statement_seperator"
935
- },
936
- {
937
- include: "#string"
938
- },
939
- {
940
- include: "#variable"
941
- },
942
- {
943
- include: "#interpolation"
944
- },
945
- {
946
- include: "#heredoc"
947
- },
948
- {
949
- include: "#herestring"
950
- },
951
- {
952
- include: "#pathname"
953
- },
954
- {
955
- include: "#keyword"
956
- },
957
- {
958
- include: "#support"
959
- }
960
- ]
961
- },
962
- logical_expression_double: {
963
- begin: "\\[\\[",
964
- end: "\\]\\]",
965
- beginCaptures: {
966
- "0": {
967
- name: "punctuation.definition.logical-expression.shell"
968
- }
969
- },
970
- endCaptures: {
971
- "0": {
972
- name: "punctuation.definition.logical-expression.shell"
973
- }
974
- },
975
- name: "meta.scope.logical-expression.shell",
976
- patterns: [
977
- {
978
- include: "#regex_comparison"
979
- },
980
- {
981
- include: "#logical-expression"
982
- },
983
- {
984
- include: "#logical_expression_single"
985
- },
986
- {
987
- include: "#logical_expression_double"
988
- },
989
- {
990
- include: "#comment"
991
- },
992
- {
993
- include: "#boolean"
994
- },
995
- {
996
- include: "#numeric_literal"
997
- },
998
- {
999
- include: "#pipeline"
1000
- },
1001
- {
1002
- include: "#statement_seperator"
1003
- },
1004
- {
1005
- include: "#string"
1006
- },
1007
- {
1008
- include: "#variable"
1009
- },
1010
- {
1011
- include: "#interpolation"
1012
- },
1013
- {
1014
- include: "#heredoc"
1015
- },
1016
- {
1017
- include: "#herestring"
1018
- },
1019
- {
1020
- include: "#pathname"
1021
- },
1022
- {
1023
- include: "#keyword"
1024
- },
1025
- {
1026
- include: "#support"
1027
- }
1028
- ]
1029
- },
1030
- logical_expression_single: {
1031
- begin: "\\[",
1032
- end: "\\]",
1033
- beginCaptures: {
1034
- "0": {
1035
- name: "punctuation.definition.logical-expression.shell"
1036
- }
1037
- },
1038
- endCaptures: {
1039
- "0": {
1040
- name: "punctuation.definition.logical-expression.shell"
1041
- }
1042
- },
1043
- name: "meta.scope.logical-expression.shell",
1044
- patterns: [
1045
- {
1046
- include: "#regex_comparison"
1047
- },
1048
- {
1049
- include: "#logical-expression"
1050
- },
1051
- {
1052
- include: "#logical_expression_single"
1053
- },
1054
- {
1055
- include: "#logical_expression_double"
1056
- },
1057
- {
1058
- include: "#comment"
1059
- },
1060
- {
1061
- include: "#boolean"
1062
- },
1063
- {
1064
- include: "#numeric_literal"
1065
- },
1066
- {
1067
- include: "#pipeline"
1068
- },
1069
- {
1070
- include: "#statement_seperator"
1071
- },
1072
- {
1073
- include: "#string"
1074
- },
1075
- {
1076
- include: "#variable"
1077
- },
1078
- {
1079
- include: "#interpolation"
1080
- },
1081
- {
1082
- include: "#heredoc"
1083
- },
1084
- {
1085
- include: "#herestring"
1086
- },
1087
- {
1088
- include: "#pathname"
1089
- },
1090
- {
1091
- include: "#keyword"
1092
- },
1093
- {
1094
- include: "#support"
1095
- }
1096
- ]
1097
- },
1098
- loop: {
1099
- patterns: [
1100
- {
1101
- begin: "(?<=^|;|&|\\s)(for)\\s+(?=\\({2})",
1102
- beginCaptures: {
1103
- "1": {
1104
- name: "keyword.control.shell"
1105
- }
1106
- },
1107
- end: "(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",
1108
- endCaptures: {
1109
- "0": {
1110
- name: "keyword.control.shell"
1111
- }
1112
- },
1113
- name: "meta.scope.for-loop.shell",
1114
- patterns: [
1115
- {
1116
- include: "#initial_context"
1117
- }
1118
- ]
1119
- },
1120
- {
1121
- begin: "(?<=^|;|&|\\s)(for)\\s+(.+?)\\s+(in)(?=\\s|;|&|$)",
1122
- beginCaptures: {
1123
- "1": {
1124
- name: "keyword.control.shell"
1125
- },
1126
- "2": {
1127
- name: "variable.other.loop.shell",
1128
- patterns: [
1129
- {
1130
- include: "#string"
1131
- }
1132
- ]
1133
- },
1134
- "3": {
1135
- name: "keyword.control.shell"
1136
- }
1137
- },
1138
- end: "(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",
1139
- endCaptures: {
1140
- "0": {
1141
- name: "keyword.control.shell"
1142
- }
1143
- },
1144
- name: "meta.scope.for-in-loop.shell",
1145
- patterns: [
1146
- {
1147
- include: "#initial_context"
1148
- }
1149
- ]
1150
- },
1151
- {
1152
- begin: "(?<=^|;|&|\\s)(while|until)(?=\\s|;|&|$)",
1153
- beginCaptures: {
1154
- "1": {
1155
- name: "keyword.control.shell"
1156
- }
1157
- },
1158
- end: "(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",
1159
- endCaptures: {
1160
- "0": {
1161
- name: "keyword.control.shell"
1162
- }
1163
- },
1164
- name: "meta.scope.while-loop.shell",
1165
- patterns: [
1166
- {
1167
- include: "#initial_context"
1168
- }
1169
- ]
1170
- },
1171
- {
1172
- begin: "(?<=^|;|&|\\s)(select)\\s+((?:[^\\s\\\\]|\\\\.)+)(?=\\s|;|&|$)",
1173
- beginCaptures: {
1174
- "1": {
1175
- name: "keyword.control.shell"
1176
- },
1177
- "2": {
1178
- name: "variable.other.loop.shell"
1179
- }
1180
- },
1181
- end: "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",
1182
- endCaptures: {
1183
- "1": {
1184
- name: "keyword.control.shell"
1185
- }
1186
- },
1187
- name: "meta.scope.select-block.shell",
1188
- patterns: [
1189
- {
1190
- include: "#initial_context"
1191
- }
1192
- ]
1193
- },
1194
- {
1195
- begin: "(?<=^|;|&|\\s)case(?=\\s|;|&|$)",
1196
- beginCaptures: {
1197
- "0": {
1198
- name: "keyword.control.shell"
1199
- }
1200
- },
1201
- end: "(?<=^|;|&|\\s)esac(?=\\s|;|&|$)",
1202
- endCaptures: {
1203
- "0": {
1204
- name: "keyword.control.shell"
1205
- }
1206
- },
1207
- name: "meta.scope.case-block.shell",
1208
- patterns: [
1209
- {
1210
- begin: "(?<=^|;|&|\\s)in(?=\\s|;|&|$)",
1211
- beginCaptures: {
1212
- "0": {
1213
- name: "keyword.control.shell"
1214
- }
1215
- },
1216
- end: "(?<=^|;|&|\\s)(?=esac(\\s|;|&|$))",
1217
- name: "meta.scope.case-body.shell",
1218
- patterns: [
1219
- {
1220
- include: "#comment"
1221
- },
1222
- {
1223
- include: "#case-clause"
1224
- }
1225
- ]
1226
- },
1227
- {
1228
- include: "#initial_context"
1229
- }
1230
- ]
1231
- },
1232
- {
1233
- begin: "(?<=^|;|&|\\s)if(?=\\s|;|&|$)",
1234
- beginCaptures: {
1235
- "0": {
1236
- name: "keyword.control.shell"
1237
- }
1238
- },
1239
- end: "(?<=^|;|&|\\s)fi(?=\\s|;|&|$)",
1240
- endCaptures: {
1241
- "0": {
1242
- name: "keyword.control.shell"
1243
- }
1244
- },
1245
- name: "meta.scope.if-block.shell",
1246
- patterns: [
1247
- {
1248
- include: "#initial_context"
1249
- }
1250
- ]
1251
- }
1252
- ]
1253
- },
1254
- math: {
1255
- patterns: [
1256
- {
1257
- include: "#variable"
1258
- },
1259
- {
1260
- match: "\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",
1261
- name: "keyword.operator.arithmetic.shell"
1262
- },
1263
- {
1264
- match: "0[xX][0-9A-Fa-f]+",
1265
- name: "constant.numeric.hex.shell"
1266
- },
1267
- {
1268
- match: "0\\d+",
1269
- name: "constant.numeric.octal.shell"
1270
- },
1271
- {
1272
- match: "\\d{1,2}#[0-9a-zA-Z@_]+",
1273
- name: "constant.numeric.other.shell"
1274
- },
1275
- {
1276
- match: "\\d+",
1277
- name: "constant.numeric.integer.shell"
1278
- }
1279
- ]
1280
- },
1281
- misc_ranges: {
1282
- patterns: [
1283
- {
1284
- include: "#logical_expression_single"
1285
- },
1286
- {
1287
- include: "#logical_expression_double"
1288
- },
1289
- {
1290
- begin: "\\(\\(",
1291
- end: "\\)\\)",
1292
- beginCaptures: {
1293
- "0": {
1294
- name: "punctuation.section.arithmetic.shell"
1295
- }
1296
- },
1297
- endCaptures: {
1298
- "0": {
1299
- name: "punctuation.section.arithmetic.shell"
1300
- }
1301
- },
1302
- name: "meta.arithmetic.shell",
1303
- patterns: [
1304
- {
1305
- include: "#math"
1306
- }
1307
- ]
1308
- },
1309
- {
1310
- begin: "(?<!=)\\(",
1311
- end: "\\)",
1312
- beginCaptures: {
1313
- "0": {
1314
- name: "punctuation.definition.subshell"
1315
- }
1316
- },
1317
- endCaptures: {
1318
- "0": {
1319
- name: "punctuation.definition.subshell"
1320
- }
1321
- },
1322
- name: "meta.scope.subshell",
1323
- patterns: [
1324
- {
1325
- include: "#initial_context"
1326
- }
1327
- ]
1328
- },
1329
- {
1330
- begin: "{",
1331
- end: "}",
1332
- beginCaptures: {
1333
- "0": {
1334
- name: "punctuation.definition.group.shell"
1335
- }
1336
- },
1337
- endCaptures: {
1338
- "0": {
1339
- name: "punctuation.definition.group.shell"
1340
- }
1341
- },
1342
- name: "meta.scope.group.shell",
1343
- patterns: [
1344
- {
1345
- include: "#initial_context"
1346
- }
1347
- ]
1348
- }
1349
- ]
1350
- },
1351
- numeric_literal: {
1352
- match: "(?<!\\w)((?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.]|')|(?<=[eEpP])[+-])*)(?!\\w)",
1353
- captures: {
1354
- "1": {
1355
- patterns: [
1356
- {
1357
- begin: "(?=.)",
1358
- end: "$",
1359
- beginCaptures: {
1360
- },
1361
- endCaptures: {
1362
- },
1363
- patterns: [
1364
- {
1365
- match: "(\\G0[xX])([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?(?:(?<!')([pP])((?:\\+)?)((?:\\-)?)([0-9](?:[0-9]|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?([lLfF](?!\\w))?$",
1366
- captures: {
1367
- "1": {
1368
- name: "keyword.other.unit.hexadecimal.shell"
1369
- },
1370
- "2": {
1371
- name: "constant.numeric.hexadecimal.shell",
1372
- patterns: [
1373
- {
1374
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1375
- name: "punctuation.separator.constant.numeric.shell"
1376
- }
1377
- ]
1378
- },
1379
- "3": {
1380
- name: "punctuation.separator.constant.numeric.shell"
1381
- },
1382
- "4": {
1383
- name: "constant.numeric.hexadecimal.shell"
1384
- },
1385
- "5": {
1386
- name: "constant.numeric.hexadecimal.shell",
1387
- patterns: [
1388
- {
1389
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1390
- name: "punctuation.separator.constant.numeric.shell"
1391
- }
1392
- ]
1393
- },
1394
- "6": {
1395
- name: "punctuation.separator.constant.numeric.shell"
1396
- },
1397
- "7": {
1398
- name: "keyword.other.unit.exponent.hexadecimal.shell"
1399
- },
1400
- "8": {
1401
- name: "keyword.operator.plus.exponent.hexadecimal.shell"
1402
- },
1403
- "9": {
1404
- name: "keyword.operator.minus.exponent.hexadecimal.shell"
1405
- },
1406
- "10": {
1407
- name: "constant.numeric.exponent.hexadecimal.shell",
1408
- patterns: [
1409
- {
1410
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1411
- name: "punctuation.separator.constant.numeric.shell"
1412
- }
1413
- ]
1414
- },
1415
- "11": {
1416
- name: "keyword.other.unit.suffix.floating-point.shell"
1417
- }
1418
- }
1419
- },
1420
- {
1421
- match: "\\G(?=[0-9.])(?!0[xXbB])([0-9](?:[0-9]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?(?:(?<!')([eE])((?:\\+)?)((?:\\-)?)([0-9](?:[0-9]|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?([lLfF](?!\\w))?$",
1422
- captures: {
1423
- "1": {
1424
- name: "constant.numeric.decimal.shell",
1425
- patterns: [
1426
- {
1427
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1428
- name: "punctuation.separator.constant.numeric.shell"
1429
- }
1430
- ]
1431
- },
1432
- "2": {
1433
- name: "punctuation.separator.constant.numeric.shell"
1434
- },
1435
- "3": {
1436
- name: "constant.numeric.decimal.point.shell"
1437
- },
1438
- "4": {
1439
- name: "constant.numeric.decimal.shell",
1440
- patterns: [
1441
- {
1442
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1443
- name: "punctuation.separator.constant.numeric.shell"
1444
- }
1445
- ]
1446
- },
1447
- "5": {
1448
- name: "punctuation.separator.constant.numeric.shell"
1449
- },
1450
- "6": {
1451
- name: "keyword.other.unit.exponent.decimal.shell"
1452
- },
1453
- "7": {
1454
- name: "keyword.operator.plus.exponent.decimal.shell"
1455
- },
1456
- "8": {
1457
- name: "keyword.operator.minus.exponent.decimal.shell"
1458
- },
1459
- "9": {
1460
- name: "constant.numeric.exponent.decimal.shell",
1461
- patterns: [
1462
- {
1463
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1464
- name: "punctuation.separator.constant.numeric.shell"
1465
- }
1466
- ]
1467
- },
1468
- "10": {
1469
- name: "keyword.other.unit.suffix.floating-point.shell"
1470
- }
1471
- }
1472
- },
1473
- {
1474
- match: "(\\G0[bB])([01](?:[01]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?:[uU]|(?:[uU]ll?)|(?:[uU]LL?)|(?:ll?[uU]?)|(?:LL?[uU]?)|[fF])(?!\\w))?$",
1475
- captures: {
1476
- "1": {
1477
- name: "keyword.other.unit.binary.shell"
1478
- },
1479
- "2": {
1480
- name: "constant.numeric.binary.shell",
1481
- patterns: [
1482
- {
1483
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1484
- name: "punctuation.separator.constant.numeric.shell"
1485
- }
1486
- ]
1487
- },
1488
- "3": {
1489
- name: "punctuation.separator.constant.numeric.shell"
1490
- },
1491
- "4": {
1492
- name: "keyword.other.unit.suffix.integer.shell"
1493
- }
1494
- }
1495
- },
1496
- {
1497
- match: "(\\G0)((?:[0-7]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))+)((?:[uU]|(?:[uU]ll?)|(?:[uU]LL?)|(?:ll?[uU]?)|(?:LL?[uU]?)|[fF])(?!\\w))?$",
1498
- captures: {
1499
- "1": {
1500
- name: "keyword.other.unit.octal.shell"
1501
- },
1502
- "2": {
1503
- name: "constant.numeric.octal.shell",
1504
- patterns: [
1505
- {
1506
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1507
- name: "punctuation.separator.constant.numeric.shell"
1508
- }
1509
- ]
1510
- },
1511
- "3": {
1512
- name: "punctuation.separator.constant.numeric.shell"
1513
- },
1514
- "4": {
1515
- name: "keyword.other.unit.suffix.integer.shell"
1516
- }
1517
- }
1518
- },
1519
- {
1520
- match: "(\\G0[xX])([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)(?:(?<!')([pP])((?:\\+)?)((?:\\-)?)([0-9](?:[0-9]|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?((?:[uU]|(?:[uU]ll?)|(?:[uU]LL?)|(?:ll?[uU]?)|(?:LL?[uU]?)|[fF])(?!\\w))?$",
1521
- captures: {
1522
- "1": {
1523
- name: "keyword.other.unit.hexadecimal.shell"
1524
- },
1525
- "2": {
1526
- name: "constant.numeric.hexadecimal.shell",
1527
- patterns: [
1528
- {
1529
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1530
- name: "punctuation.separator.constant.numeric.shell"
1531
- }
1532
- ]
1533
- },
1534
- "3": {
1535
- name: "punctuation.separator.constant.numeric.shell"
1536
- },
1537
- "4": {
1538
- name: "keyword.other.unit.exponent.hexadecimal.shell"
1539
- },
1540
- "5": {
1541
- name: "keyword.operator.plus.exponent.hexadecimal.shell"
1542
- },
1543
- "6": {
1544
- name: "keyword.operator.minus.exponent.hexadecimal.shell"
1545
- },
1546
- "7": {
1547
- name: "constant.numeric.exponent.hexadecimal.shell",
1548
- patterns: [
1549
- {
1550
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1551
- name: "punctuation.separator.constant.numeric.shell"
1552
- }
1553
- ]
1554
- },
1555
- "8": {
1556
- name: "keyword.other.unit.suffix.integer.shell"
1557
- }
1558
- }
1559
- },
1560
- {
1561
- match: "\\G(?=[0-9.])(?!0[xXbB])([0-9](?:[0-9]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)(?:(?<!')([eE])((?:\\+)?)((?:\\-)?)([0-9](?:[0-9]|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?((?:[uU]|(?:[uU]ll?)|(?:[uU]LL?)|(?:ll?[uU]?)|(?:LL?[uU]?)|[fF])(?!\\w))?$",
1562
- captures: {
1563
- "1": {
1564
- name: "constant.numeric.decimal.shell",
1565
- patterns: [
1566
- {
1567
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1568
- name: "punctuation.separator.constant.numeric.shell"
1569
- }
1570
- ]
1571
- },
1572
- "2": {
1573
- name: "punctuation.separator.constant.numeric.shell"
1574
- },
1575
- "3": {
1576
- name: "keyword.other.unit.exponent.decimal.shell"
1577
- },
1578
- "4": {
1579
- name: "keyword.operator.plus.exponent.decimal.shell"
1580
- },
1581
- "5": {
1582
- name: "keyword.operator.minus.exponent.decimal.shell"
1583
- },
1584
- "6": {
1585
- name: "constant.numeric.exponent.decimal.shell",
1586
- patterns: [
1587
- {
1588
- match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1589
- name: "punctuation.separator.constant.numeric.shell"
1590
- }
1591
- ]
1592
- },
1593
- "7": {
1594
- name: "keyword.other.unit.suffix.integer.shell"
1595
- }
1596
- }
1597
- }
1598
- ]
1599
- }
1600
- ]
1601
- }
1602
- }
1603
- },
1604
- option: {
1605
- begin: "\\s++(-)((?!(?:!|%|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|\\s)))",
1606
- end: "(?:(?=\\s)|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|#|\\])(?<!\\\\))",
1607
- beginCaptures: {
1608
- "1": {
1609
- name: "string.unquoted.argument.shell constant.other.option.dash.shell"
1610
- },
1611
- "2": {
1612
- name: "string.unquoted.argument.shell constant.other.option.shell"
1613
- }
1614
- },
1615
- endCaptures: {
1616
- },
1617
- contentName: "string.unquoted.argument constant.other.option",
1618
- patterns: [
1619
- {
1620
- include: "#option_context"
1621
- }
1622
- ]
1623
- },
1624
- option_context: {
1625
- patterns: [
1626
- {
1627
- include: "#misc_ranges"
1628
- },
1629
- {
1630
- include: "#string"
1631
- },
1632
- {
1633
- include: "#variable"
1634
- },
1635
- {
1636
- include: "#interpolation"
1637
- },
1638
- {
1639
- include: "#heredoc"
1640
- },
1641
- {
1642
- include: "#herestring"
1643
- },
1644
- {
1645
- include: "#redirection"
1646
- },
1647
- {
1648
- include: "#pathname"
1649
- },
1650
- {
1651
- include: "#keyword"
1652
- },
1653
- {
1654
- include: "#support"
1655
- }
1656
- ]
1657
- },
1658
- pathname: {
1659
- patterns: [
1660
- {
1661
- match: "(?<=\\s|:|=|^)~",
1662
- name: "keyword.operator.tilde.shell"
1663
- },
1664
- {
1665
- match: "\\*|\\?",
1666
- name: "keyword.operator.glob.shell"
1667
- },
1668
- {
1669
- begin: "([?*+@!])(\\()",
1670
- beginCaptures: {
1671
- "1": {
1672
- name: "keyword.operator.extglob.shell"
1673
- },
1674
- "2": {
1675
- name: "punctuation.definition.extglob.shell"
1676
- }
1677
- },
1678
- end: "\\)",
1679
- endCaptures: {
1680
- "0": {
1681
- name: "punctuation.definition.extglob.shell"
1682
- }
1683
- },
1684
- name: "meta.structure.extglob.shell",
1685
- patterns: [
1686
- {
1687
- include: "#initial_context"
1688
- }
1689
- ]
1690
- }
1691
- ]
1692
- },
1693
- pipeline: {
1694
- patterns: [
1695
- {
1696
- match: "(?<=^|;|&|\\s)(time)(?=\\s|;|&|$)",
1697
- name: "keyword.other.shell"
1698
- },
1699
- {
1700
- match: "[|!]",
1701
- name: "keyword.operator.pipe.shell"
1702
- }
1703
- ]
1704
- },
1705
- redirection: {
1706
- patterns: [
1707
- {
1708
- begin: "[><]\\(",
1709
- beginCaptures: {
1710
- "0": {
1711
- name: "punctuation.definition.string.begin.shell"
1712
- }
1713
- },
1714
- end: "\\)",
1715
- endCaptures: {
1716
- "0": {
1717
- name: "punctuation.definition.string.end.shell"
1718
- }
1719
- },
1720
- name: "string.interpolated.process-substitution.shell",
1721
- patterns: [
1722
- {
1723
- include: "#initial_context"
1724
- }
1725
- ]
1726
- },
1727
- {
1728
- match: "(?<![<>])(&>|\\d*>&\\d*|\\d*(>>|>|<)|\\d*<&|\\d*<>)(?![<>])",
1729
- name: "keyword.operator.redirect.shell"
1730
- }
1731
- ]
1732
- },
1733
- regex_comparison: {
1734
- match: "\\=~",
1735
- name: "keyword.operator.logical.regex.shell"
1736
- },
1737
- regexp: {
1738
- patterns: [
1739
- {
1740
- match: ".+"
1741
- }
1742
- ]
1743
- },
1744
- simple_options: {
1745
- match: "(?:\\s++\\-\\w+)*",
1746
- captures: {
1747
- "0": {
1748
- patterns: [
1749
- {
1750
- match: "\\s++(\\-)(\\w+)",
1751
- captures: {
1752
- "1": {
1753
- name: "string.unquoted.argument.shell constant.other.option.dash.shell"
1754
- },
1755
- "2": {
1756
- name: "string.unquoted.argument.shell constant.other.option.shell"
1757
- }
1758
- }
1759
- }
1760
- ]
1761
- }
1762
- }
1763
- },
1764
- statement_context: {
1765
- patterns: [
1766
- {
1767
- include: "#comment"
1768
- },
1769
- {
1770
- include: "#pipeline"
1771
- },
1772
- {
1773
- include: "#statement_seperator"
1774
- },
1775
- {
1776
- include: "#misc_ranges"
1777
- },
1778
- {
1779
- include: "#string"
1780
- },
1781
- {
1782
- include: "#variable"
1783
- },
1784
- {
1785
- include: "#interpolation"
1786
- },
1787
- {
1788
- include: "#heredoc"
1789
- },
1790
- {
1791
- include: "#herestring"
1792
- },
1793
- {
1794
- include: "#redirection"
1795
- },
1796
- {
1797
- include: "#pathname"
1798
- },
1799
- {
1800
- include: "#keyword"
1801
- },
1802
- {
1803
- include: "#support"
1804
- }
1805
- ]
1806
- },
1807
- statement_seperator: {
1808
- match: "(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)",
1809
- captures: {
1810
- "1": {
1811
- name: "punctuation.terminator.statement.semicolon.shell"
1812
- },
1813
- "2": {
1814
- name: "punctuation.separator.statement.and.shell"
1815
- },
1816
- "3": {
1817
- name: "punctuation.separator.statement.or.shell"
1818
- },
1819
- "4": {
1820
- name: "punctuation.separator.statement.background.shell"
1821
- }
1822
- }
1823
- },
1824
- string: {
1825
- patterns: [
1826
- {
1827
- match: "\\\\.",
1828
- name: "constant.character.escape.shell"
1829
- },
1830
- {
1831
- begin: "'",
1832
- beginCaptures: {
1833
- "0": {
1834
- name: "punctuation.definition.string.begin.shell"
1835
- }
1836
- },
1837
- end: "'",
1838
- endCaptures: {
1839
- "0": {
1840
- name: "punctuation.definition.string.end.shell"
1841
- }
1842
- },
1843
- name: "string.quoted.single.shell"
1844
- },
1845
- {
1846
- begin: " *\\$?\"",
1847
- beginCaptures: {
1848
- "0": {
1849
- name: "punctuation.definition.string.begin.shell"
1850
- }
1851
- },
1852
- end: "\"",
1853
- endCaptures: {
1854
- "0": {
1855
- name: "punctuation.definition.string.end.shell"
1856
- }
1857
- },
1858
- name: "string.quoted.double.shell",
1859
- patterns: [
1860
- {
1861
- match: "\\\\[\\$`\"\\\\\\n]",
1862
- name: "constant.character.escape.shell"
1863
- },
1864
- {
1865
- include: "#variable"
1866
- },
1867
- {
1868
- include: "#interpolation"
1869
- }
1870
- ]
1871
- },
1872
- {
1873
- begin: "\\$'",
1874
- beginCaptures: {
1875
- "0": {
1876
- name: "punctuation.definition.string.begin.shell"
1877
- }
1878
- },
1879
- end: "'",
1880
- endCaptures: {
1881
- "0": {
1882
- name: "punctuation.definition.string.end.shell"
1883
- }
1884
- },
1885
- name: "string.quoted.single.dollar.shell",
1886
- patterns: [
1887
- {
1888
- match: "\\\\(a|b|e|f|n|r|t|v|\\\\|')",
1889
- name: "constant.character.escape.ansi-c.shell"
1890
- },
1891
- {
1892
- match: "\\\\[0-9]{3}",
1893
- name: "constant.character.escape.octal.shell"
1894
- },
1895
- {
1896
- match: "\\\\x[0-9a-fA-F]{2}",
1897
- name: "constant.character.escape.hex.shell"
1898
- },
1899
- {
1900
- match: "\\\\c.",
1901
- name: "constant.character.escape.control-char.shell"
1902
- }
1903
- ]
1904
- }
1905
- ]
1906
- },
1907
- variable: {
1908
- patterns: [
1909
- {
1910
- match: "(\\$)(\\@(?!\\w))",
1911
- captures: {
1912
- "1": {
1913
- name: "punctuation.definition.variable.shell variable.parameter.positional.all.shell"
1914
- },
1915
- "2": {
1916
- name: "variable.parameter.positional.all.shell"
1917
- }
1918
- }
1919
- },
1920
- {
1921
- match: "(\\$)([0-9](?!\\w))",
1922
- captures: {
1923
- "1": {
1924
- name: "punctuation.definition.variable.shell variable.parameter.positional.shell"
1925
- },
1926
- "2": {
1927
- name: "variable.parameter.positional.shell"
1928
- }
1929
- }
1930
- },
1931
- {
1932
- match: "(\\$)(\\{[0-9]+\\}(?!\\w))",
1933
- captures: {
1934
- "1": {
1935
- name: "punctuation.definition.variable.shell variable.parameter.positional.shell"
1936
- },
1937
- "2": {
1938
- name: "variable.parameter.positional.shell"
1939
- }
1940
- }
1941
- },
1942
- {
1943
- match: "(\\$)([-*#?$!0_](?!\\w))",
1944
- captures: {
1945
- "1": {
1946
- name: "punctuation.definition.variable.shell variable.language.special.shell"
1947
- },
1948
- "2": {
1949
- name: "variable.language.special.shell"
1950
- }
1951
- }
1952
- },
1953
- {
1954
- begin: "(\\$)(\\{)",
1955
- end: "\\}",
1956
- beginCaptures: {
1957
- "1": {
1958
- name: "punctuation.definition.variable.shell punctuation.section.bracket.curly.variable.begin.shell"
1959
- },
1960
- "2": {
1961
- name: "punctuation.section.bracket.curly.variable.begin.shell"
1962
- }
1963
- },
1964
- endCaptures: {
1965
- "0": {
1966
- name: "punctuation.section.bracket.curly.variable.end.shell"
1967
- }
1968
- },
1969
- patterns: [
1970
- {
1971
- match: "!|:[-=?]?|\\*|@|##|#|%%|%|\\/",
1972
- name: "keyword.operator.expansion.shell"
1973
- },
1974
- {
1975
- match: "(\\[)[^\\]]+(\\])",
1976
- captures: {
1977
- "1": {
1978
- name: "punctuation.section.array.shell"
1979
- },
1980
- "2": {
1981
- name: "punctuation.section.array.shell"
1982
- }
1983
- }
1984
- },
1985
- {
1986
- include: "#variable"
1987
- },
1988
- {
1989
- include: "#string"
1990
- }
1991
- ]
1992
- },
1993
- {
1994
- match: "(\\$)(\\w+(?!\\w))",
1995
- captures: {
1996
- "1": {
1997
- name: "punctuation.definition.variable.shell variable.other.normal.shell"
1998
- },
1999
- "2": {
2000
- name: "variable.other.normal.shell"
2001
- }
2002
- }
2003
- }
2004
- ]
2005
- }
2006
- };
2007
- var shellUnixBash_tmLanguage = {
2008
- information_for_contributors: information_for_contributors,
2009
- version: version,
2010
- name: name,
2011
- scopeName: scopeName,
2012
- patterns: patterns,
2013
- repository: repository
2014
- };
2015
-
2016
- export { shellUnixBash_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };