@codingame/monaco-editor-wrapper 3.9.3 → 4.0.0-next.1

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 (537) 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 -3115
  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 -5929
  243. package/dist/JavaScriptReact.tmLanguage.js +0 -5929
  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 -1324
  253. package/dist/TypeScript.tmLanguage.js +0 -5680
  254. package/dist/TypeScriptReact.tmLanguage.js +0 -5929
  255. package/dist/angular.js +0 -62
  256. package/dist/asp-vb-net.tmlanguage.js +0 -247
  257. package/dist/aspnetcorerazor.js +0 -72
  258. package/dist/aspnetcorerazor.tmLanguage.js +0 -1825
  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 -341
  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 -16648
  285. package/dist/cpptools.js +0 -2631
  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 -3212
  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 -1130
  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 -86
  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 -98
  358. package/dist/java.tmLanguage.js +0 -1863
  359. package/dist/java2.js +0 -917
  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/julia.js +0 -89
  369. package/dist/julia.tmLanguage.js +0 -954
  370. package/dist/jvm-bytecode-verbose.js +0 -1231
  371. package/dist/jvm-bytecode.js +0 -565
  372. package/dist/kotlin-kotlin.js +0 -117
  373. package/dist/kotlin.js +0 -103
  374. package/dist/kotlinscript.js +0 -103
  375. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +0 -3
  376. package/dist/languages/extensions/grammarLoader.d.ts +0 -2
  377. package/dist/languages/extensions/languageConfigurationLoader.d.ts +0 -2
  378. package/dist/languages/extensions/snippetLoader.d.ts +0 -2
  379. package/dist/languages/extensions/themeLoader.d.ts +0 -2
  380. package/dist/languages/snippets/index.d.ts +0 -1
  381. package/dist/languages/textMate/index.d.ts +0 -1
  382. package/dist/languages/textMate/semanticTokens.d.ts +0 -1
  383. package/dist/literate haskell.js +0 -88
  384. package/dist/literateHaskell.tmLanguage.js +0 -70
  385. package/dist/lua.js +0 -84
  386. package/dist/lua.tmLanguage.js +0 -914
  387. package/dist/lua2.js +0 -2853
  388. package/dist/markdown-basics-markdown.code-snippets.js +0 -121
  389. package/dist/markdown-svelte-css.js +0 -37
  390. package/dist/markdown-svelte-js.js +0 -37
  391. package/dist/markdown-svelte.js +0 -59
  392. package/dist/markdown-vue.js +0 -54
  393. package/dist/markdown.js +0 -49
  394. package/dist/markdown.tmLanguage.js +0 -3042
  395. package/dist/menhir-action.js +0 -51
  396. package/dist/menhir.js +0 -597
  397. package/dist/merlin.js +0 -111
  398. package/dist/namespace.r.js +0 -88
  399. package/dist/oasis.js +0 -99
  400. package/dist/objective-c.js +0 -79
  401. package/dist/objective-c.tmLanguage.js +0 -3763
  402. package/dist/objective-cpp.js +0 -79
  403. package/dist/ocaml-dune-project.js +0 -38
  404. package/dist/ocaml-dune.js +0 -53
  405. package/dist/ocaml-markdown-codeblock.js +0 -42
  406. package/dist/ocaml-ocaml.js +0 -88
  407. package/dist/ocaml-ocamllex.js +0 -12
  408. package/dist/ocaml.META.js +0 -29
  409. package/dist/ocaml.interface.js +0 -292
  410. package/dist/ocaml.interface2.js +0 -114
  411. package/dist/ocaml.js +0 -903
  412. package/dist/ocaml.menhir.js +0 -81
  413. package/dist/ocaml.oasis.js +0 -18
  414. package/dist/ocaml.ocamlbuild.js +0 -45
  415. package/dist/ocaml.ocamlformat.js +0 -8
  416. package/dist/ocaml.ocamllex.js +0 -60
  417. package/dist/ocaml.opam-install.js +0 -49
  418. package/dist/ocaml.opam.js +0 -69
  419. package/dist/ocaml2.js +0 -114
  420. package/dist/ocaml3.js +0 -136
  421. package/dist/ocamlbuild.js +0 -189
  422. package/dist/ocamldoc.js +0 -54
  423. package/dist/ocamlformat.js +0 -206
  424. package/dist/ocamllex.js +0 -133
  425. package/dist/omnisharp-csharp.js +0 -508
  426. package/dist/omnisharp.js +0 -594
  427. package/dist/opam-install.js +0 -40
  428. package/dist/opam.js +0 -140
  429. package/dist/pascal-pascal.js +0 -382
  430. package/dist/pascal.js +0 -80
  431. package/dist/pascal2.js +0 -26
  432. package/dist/perl.js +0 -93
  433. package/dist/perl.tmLanguage.js +0 -2986
  434. package/dist/perl6.js +0 -86
  435. package/dist/perl6.tmLanguage.js +0 -323
  436. package/dist/php-php.code-snippets.js +0 -267
  437. package/dist/php.js +0 -154
  438. package/dist/php.tmLanguage.js +0 -4036
  439. package/dist/pip-requirements.js +0 -8
  440. package/dist/pip-requirements.tmLanguage.js +0 -89
  441. package/dist/plaintext.js +0 -11
  442. package/dist/platform.tmLanguage.js +0 -1135
  443. package/dist/postcss.src.yaml.js +0 -393
  444. package/dist/postgres.js +0 -80
  445. package/dist/postgresql.js +0 -75
  446. package/dist/powershell.js +0 -107
  447. package/dist/powershell.tmLanguage.js +0 -1037
  448. package/dist/pug-svelte-dotblock.js +0 -69
  449. package/dist/pug-svelte-tags.js +0 -215
  450. package/dist/pug-svelte.js +0 -307
  451. package/dist/python.js +0 -236
  452. package/dist/r.js +0 -664
  453. package/dist/r2.js +0 -88
  454. package/dist/rbuildignore.js +0 -39
  455. package/dist/rd.js +0 -81
  456. package/dist/reason-markdown-codeblock.js +0 -42
  457. package/dist/reason.js +0 -79
  458. package/dist/rmd.js +0 -84
  459. package/dist/rnamespace.js +0 -283
  460. package/dist/ruby.js +0 -95
  461. package/dist/ruby.tmLanguage.js +0 -2784
  462. package/dist/rust.js +0 -84
  463. package/dist/rust.tmLanguage.js +0 -1178
  464. package/dist/sassdoc.tmLanguage.js +0 -362
  465. package/dist/scala.js +0 -85
  466. package/dist/scalameta.js +0 -224
  467. package/dist/scss.js +0 -117
  468. package/dist/scss.tmLanguage.js +0 -1887
  469. package/dist/sdl.js +0 -162
  470. package/dist/sdl2.js +0 -90
  471. package/dist/semanticdb.js +0 -62
  472. package/dist/shell-unix-bash.tmLanguage.js +0 -2038
  473. package/dist/shellscript.js +0 -93
  474. package/dist/solargraph.js +0 -192
  475. package/dist/solidity-solidity.js +0 -213
  476. package/dist/solidity.js +0 -1224
  477. package/dist/solidity2.js +0 -71
  478. package/dist/solidity3.js +0 -143
  479. package/dist/sql.js +0 -99
  480. package/dist/sql.tmLanguage.js +0 -636
  481. package/dist/svelte.js +0 -120
  482. package/dist/svelte.svelte-vscode-javascript.js +0 -45
  483. package/dist/svelte.svelte-vscode-svelte.js +0 -46
  484. package/dist/svelte.svelte-vscode-typescript.js +0 -43
  485. package/dist/svelte.svelte-vscode.js +0 -383
  486. package/dist/svelte.tmLanguage.src.yaml.js +0 -1099
  487. package/dist/svlangserver-systemverilog.js +0 -395
  488. package/dist/svlangserver.js +0 -85
  489. package/dist/swift-swift.code-snippets.js +0 -183
  490. package/dist/swift.js +0 -90
  491. package/dist/swift.tmLanguage.js +0 -3312
  492. package/dist/systemverilog.js +0 -187
  493. package/dist/systemverilog.tmLanguage.js +0 -1259
  494. package/dist/tasty.js +0 -72
  495. package/dist/tcl-tcl.js +0 -151
  496. package/dist/tcl.js +0 -78
  497. package/dist/tcl.tmlanguage.yaml.js +0 -5490
  498. package/dist/template.js +0 -207
  499. package/dist/theme-defaults~dark_plus.js +0 -210
  500. package/dist/theme-defaults~dark_plus_experimental.js +0 -145
  501. package/dist/theme-defaults~dark_vs.js +0 -412
  502. package/dist/theme-defaults~hc_black.js +0 -471
  503. package/dist/theme-defaults~hc_light.js +0 -595
  504. package/dist/theme-defaults~light_plus.js +0 -212
  505. package/dist/theme-defaults~light_plus_experimental.js +0 -158
  506. package/dist/theme-defaults~light_vs.js +0 -441
  507. package/dist/typescript-basics-typescript.code-snippets.js +0 -313
  508. package/dist/typescript-language-features.js +0 -1103
  509. package/dist/typescript.js +0 -216
  510. package/dist/typescriptreact.js +0 -216
  511. package/dist/vb-vb.code-snippets.js +0 -88
  512. package/dist/vb.js +0 -79
  513. package/dist/verilog.js +0 -187
  514. package/dist/volar-vue.js +0 -289
  515. package/dist/vscode-R-r-snippets.js +0 -534
  516. package/dist/vscode-R-rmarkdown.js +0 -461
  517. package/dist/vscode-R.js +0 -660
  518. package/dist/vscode-django-filters.js +0 -340
  519. package/dist/vscode-django.js +0 -37
  520. package/dist/vscode-go-go.js +0 -276
  521. package/dist/vscode-go.js +0 -1610
  522. package/dist/vscode-groovy.js +0 -28
  523. package/dist/vscode-python.js +0 -706
  524. package/dist/vue-directives.js +0 -25
  525. package/dist/vue-interpolations.js +0 -25
  526. package/dist/vue-sfc-style-variable-injection.js +0 -63
  527. package/dist/vue.js +0 -151
  528. package/dist/vue.tmLanguage.js +0 -1218
  529. package/dist/xml.js +0 -116
  530. package/dist/xml.tmLanguage.js +0 -395
  531. package/dist/xsl.js +0 -39
  532. package/dist/xsl.tmLanguage.js +0 -102
  533. package/dist/yaml.js +0 -82
  534. package/dist/yaml.tmLanguage.js +0 -629
  535. /package/dist/{extensions → editor}/autofold.d.ts +0 -0
  536. /package/dist/{extensions → editor}/cobol.d.ts +0 -0
  537. /package/dist/{extensions → editor}/index.d.ts +0 -0
package/dist/d.js DELETED
@@ -1,3212 +0,0 @@
1
- var fileTypes = [
2
- "d",
3
- "di",
4
- "dpp"
5
- ];
6
- var name = "D";
7
- var scopeName = "source.d";
8
- var patterns = [
9
- {
10
- include: "#comment"
11
- },
12
- {
13
- include: "#type"
14
- },
15
- {
16
- include: "#statement"
17
- },
18
- {
19
- include: "#expression"
20
- }
21
- ];
22
- var repository = {
23
- type: {
24
- patterns: [
25
- {
26
- include: "#typeof"
27
- },
28
- {
29
- include: "#base-type"
30
- },
31
- {
32
- include: "#type-ctor"
33
- },
34
- {
35
- begin: "!\\(",
36
- end: "\\)",
37
- patterns: [
38
- {
39
- include: "#type"
40
- },
41
- {
42
- include: "#expression"
43
- }
44
- ]
45
- }
46
- ]
47
- },
48
- "base-type": {
49
- patterns: [
50
- {
51
- match: "\\b(auto|bool|byte|ubyte|short|ushort|int|uint|long|ulong|char|wchar|dchar|float|double|real|ifloat|idouble|ireal|cfloat|cdouble|creal|void|noreturn)\\b",
52
- name: "storage.type.basic-type.d"
53
- },
54
- {
55
- match: "\\b(string|wstring|dstring|size_t|ptrdiff_t)\\b(?!\\s*=)",
56
- name: "storage.type.basic-type.d"
57
- }
58
- ]
59
- },
60
- "extended-type": {
61
- patterns: [
62
- {
63
- match: "\\b((\\.\\s*)?[_\\w][_\\d\\w]*)(\\s*\\.\\s*[_\\w][_\\d\\w]*)*\\b",
64
- name: "entity.name.type.d"
65
- },
66
- {
67
- begin: "\\[",
68
- beginCaptures: {
69
- "0": {
70
- name: "storage.type.array.expression.begin.d"
71
- }
72
- },
73
- end: "\\]",
74
- endCaptures: {
75
- "0": {
76
- name: "storage.type.array.expression.end.d"
77
- }
78
- },
79
- patterns: [
80
- {
81
- match: "\\.\\.|\\$",
82
- name: "keyword.operator.slice.d"
83
- },
84
- {
85
- include: "#type"
86
- },
87
- {
88
- include: "#expression"
89
- }
90
- ]
91
- }
92
- ]
93
- },
94
- "type-ctor": {
95
- patterns: [
96
- {
97
- match: "(const|immutable|inout|shared)\\b",
98
- name: "storage.type.modifier.d"
99
- }
100
- ]
101
- },
102
- "typeof": {
103
- begin: "typeof\\s*\\(",
104
- end: "\\)",
105
- name: "keyword.token.typeof.d",
106
- patterns: [
107
- {
108
- match: "return",
109
- name: "keyword.control.return.d"
110
- },
111
- {
112
- include: "#expression"
113
- }
114
- ]
115
- },
116
- expression: {
117
- patterns: [
118
- {
119
- include: "#index-expression"
120
- },
121
- {
122
- include: "#expression-no-index"
123
- }
124
- ]
125
- },
126
- "expression-no-index": {
127
- patterns: [
128
- {
129
- include: "#function-literal"
130
- },
131
- {
132
- include: "#assert-expression"
133
- },
134
- {
135
- include: "#assign-expression"
136
- },
137
- {
138
- include: "#mixin-expression"
139
- },
140
- {
141
- include: "#import-expression"
142
- },
143
- {
144
- include: "#traits-expression"
145
- },
146
- {
147
- include: "#is-expression"
148
- },
149
- {
150
- include: "#typeid-expression"
151
- },
152
- {
153
- include: "#shift-expression"
154
- },
155
- {
156
- include: "#logical-expression"
157
- },
158
- {
159
- include: "#rel-expression"
160
- },
161
- {
162
- include: "#bitwise-expression"
163
- },
164
- {
165
- include: "#identity-expression"
166
- },
167
- {
168
- include: "#in-expression"
169
- },
170
- {
171
- include: "#conditional-expression"
172
- },
173
- {
174
- include: "#arithmetic-expression"
175
- },
176
- {
177
- include: "#new-expression"
178
- },
179
- {
180
- include: "#delete-expression"
181
- },
182
- {
183
- include: "#cast-expression"
184
- },
185
- {
186
- include: "#type-specialization"
187
- },
188
- {
189
- include: "#comma"
190
- },
191
- {
192
- include: "#special-keyword"
193
- },
194
- {
195
- include: "#functions"
196
- },
197
- {
198
- include: "#type"
199
- },
200
- {
201
- include: "#parentheses-expression"
202
- },
203
- {
204
- include: "#lexical"
205
- }
206
- ]
207
- },
208
- "assign-expression": {
209
- patterns: [
210
- {
211
- match: ">>>=|\\^\\^=|>>=|<<=|~=|\\^=|\\|=|&=|%=|/=|\\*=|-=|\\+=|=(?!>)",
212
- name: "keyword.operator.assign.d"
213
- }
214
- ]
215
- },
216
- "conditional-expression": {
217
- patterns: [
218
- {
219
- match: "\\s(\\?|:)\\s",
220
- name: "keyword.operator.ternary.d"
221
- }
222
- ]
223
- },
224
- "logical-expression": {
225
- patterns: [
226
- {
227
- match: "\\|\\||&&|==|!=|!",
228
- name: "keyword.operator.logical.d"
229
- }
230
- ]
231
- },
232
- "bitwise-expression": {
233
- patterns: [
234
- {
235
- match: "\\||\\^|&",
236
- name: "keyword.operator.bitwise.d"
237
- }
238
- ]
239
- },
240
- "identity-expression": {
241
- patterns: [
242
- {
243
- match: "\\b(is|!is)\\b",
244
- name: "keyword.operator.identity.d"
245
- }
246
- ]
247
- },
248
- "rel-expression": {
249
- patterns: [
250
- {
251
- match: "!<>=|!<>|<>=|!>=|!<=|<=|>=|<>|!>|!<|<|>",
252
- name: "keyword.operator.rel.d"
253
- }
254
- ]
255
- },
256
- "in-expression": {
257
- patterns: [
258
- {
259
- match: "\\b(in|!in)\\b",
260
- name: "keyword.operator.in.d"
261
- }
262
- ]
263
- },
264
- "shift-expression": {
265
- patterns: [
266
- {
267
- match: "<<|>>|>>>",
268
- name: "keyword.operator.shift.d"
269
- },
270
- {
271
- include: "#add-expression"
272
- }
273
- ]
274
- },
275
- "arithmetic-expression": {
276
- patterns: [
277
- {
278
- match: "\\^\\^|\\+\\+|--|(?<!/)\\+(?!/)|-|~|(?<!/)\\*(?!/)|(?<![+*/])/(?![+*/])|%",
279
- name: "keyword.operator.numeric.d"
280
- }
281
- ]
282
- },
283
- "new-expression": {
284
- patterns: [
285
- {
286
- match: "\\bnew\\s+",
287
- name: "keyword.other.new.d"
288
- }
289
- ]
290
- },
291
- "delete-expression": {
292
- patterns: [
293
- {
294
- match: "\\bdelete\\s+",
295
- name: "keyword.other.delete.d"
296
- }
297
- ]
298
- },
299
- "cast-expression": {
300
- patterns: [
301
- {
302
- begin: "\\b(cast)\\s*(\\()",
303
- beginCaptures: {
304
- "1": {
305
- name: "keyword.operator.cast.d"
306
- },
307
- "2": {
308
- name: "keyword.operator.cast.begin.d"
309
- }
310
- },
311
- end: "\\)",
312
- endCaptures: {
313
- "0": {
314
- name: "keyword.operator.cast.end.d"
315
- }
316
- },
317
- patterns: [
318
- {
319
- include: "#type"
320
- },
321
- {
322
- include: "#extended-type"
323
- }
324
- ]
325
- }
326
- ]
327
- },
328
- "index-expression": {
329
- patterns: [
330
- {
331
- begin: "\\[",
332
- end: "\\]",
333
- patterns: [
334
- {
335
- match: "\\.\\.|\\$",
336
- name: "keyword.operator.slice.d"
337
- },
338
- {
339
- include: "#expression-no-index"
340
- }
341
- ]
342
- }
343
- ]
344
- },
345
- "function-literal": {
346
- patterns: [
347
- {
348
- match: "=>",
349
- name: "keyword.operator.lambda.d"
350
- },
351
- {
352
- match: "\\b(function|delegate)\\b",
353
- name: "keyword.other.function-literal.d"
354
- },
355
- {
356
- begin: "\\b([_\\w][_\\d\\w]*)\\s*(=>)",
357
- end: "(?=[\\);,\\]}])",
358
- beginCaptures: {
359
- "1": {
360
- name: "variable.parameter.d"
361
- },
362
- "2": {
363
- name: "meta.lexical.token.symbolic.d"
364
- }
365
- },
366
- patterns: [
367
- {
368
- include: "source.d"
369
- }
370
- ]
371
- },
372
- {
373
- begin: "(?<=\\)|\\()(\\s*)({)",
374
- beginCaptures: {
375
- "1": {
376
- name: "source.d"
377
- },
378
- "2": {
379
- name: "source.d"
380
- }
381
- },
382
- end: "}",
383
- patterns: [
384
- {
385
- include: "source.d"
386
- }
387
- ]
388
- }
389
- ]
390
- },
391
- "assert-expression": {
392
- patterns: [
393
- {
394
- begin: "\\bassert\\s*\\(",
395
- beginCaptures: {
396
- "0": {
397
- name: "keyword.other.assert.begin.d"
398
- }
399
- },
400
- end: "\\)",
401
- endCaptures: {
402
- "0": {
403
- name: "keyword.other.assert.end.d"
404
- }
405
- },
406
- patterns: [
407
- {
408
- include: "#comment"
409
- },
410
- {
411
- include: "#expression"
412
- },
413
- {
414
- include: "#comma"
415
- }
416
- ]
417
- }
418
- ]
419
- },
420
- "mixin-expression": {
421
- patterns: [
422
- {
423
- begin: "\\bmixin\\s*\\(",
424
- beginCaptures: {
425
- "0": {
426
- name: "keyword.other.mixin.begin.d"
427
- }
428
- },
429
- end: "\\)",
430
- endCaptures: {
431
- "0": {
432
- name: "keyword.other.mixin.end.d"
433
- }
434
- },
435
- patterns: [
436
- {
437
- include: "#comment"
438
- },
439
- {
440
- include: "#expression"
441
- },
442
- {
443
- include: "#comma"
444
- }
445
- ]
446
- }
447
- ]
448
- },
449
- "import-expression": {
450
- patterns: [
451
- {
452
- begin: "\\b(import)\\s*(\\()",
453
- beginCaptures: {
454
- "1": {
455
- name: "keyword.other.import.d"
456
- },
457
- "2": {
458
- name: "keyword.other.import.begin.d"
459
- }
460
- },
461
- end: "\\)",
462
- endCaptures: {
463
- "0": {
464
- name: "keyword.other.import.end.d"
465
- }
466
- },
467
- patterns: [
468
- {
469
- include: "#comment"
470
- },
471
- {
472
- include: "#expression"
473
- },
474
- {
475
- include: "#comma"
476
- }
477
- ]
478
- }
479
- ]
480
- },
481
- "typeid-expression": {
482
- patterns: [
483
- {
484
- match: "\\btypeid\\s*(?=\\()",
485
- name: "keyword.other.typeid.d"
486
- }
487
- ]
488
- },
489
- "type-specialization": {
490
- patterns: [
491
- {
492
- match: "\\b(struct|union|class|interface|enum|function|delegate|super|const|immutable|inout|shared|return|__parameters)\\b",
493
- name: "keyword.other.storage.type-specialization.d"
494
- }
495
- ]
496
- },
497
- "traits-expression": {
498
- patterns: [
499
- {
500
- begin: "\\b__traits\\s*\\(",
501
- beginCaptures: {
502
- "0": {
503
- name: "keyword.other.traits.begin.d"
504
- }
505
- },
506
- end: "\\)",
507
- endCaptures: {
508
- "0": {
509
- name: "keyword.other.traits.end.d"
510
- }
511
- },
512
- patterns: [
513
- {
514
- include: "#traits-keyword"
515
- },
516
- {
517
- include: "#comma"
518
- },
519
- {
520
- include: "#traits-argument"
521
- }
522
- ]
523
- }
524
- ]
525
- },
526
- "traits-keyword": {
527
- patterns: [
528
- {
529
- match: "isAbstractClass|isArithmetic|isAssociativeArray|isFinalClass|isPOD|isNested|isFloating|isIntegral|isScalar|isStaticArray|isUnsigned|isVirtualFunction|isVirtualMethod|isAbstractFunction|isFinalFunction|isStaticFunction|isOverrideFunction|isRef|isOut|isLazy|hasMember|identifier|getAliasThis|getAttributes|getMember|getOverloads|getProtection|getVirtualFunctions|getVirtualMethods|getUnitTests|parent|classInstanceSize|getVirtualIndex|allMembers|derivedMembers|isSame|compiles",
530
- name: "support.constant.traits-keyword.d"
531
- }
532
- ]
533
- },
534
- "traits-arguments": {
535
- patterns: [
536
- {
537
- include: "#traits-argument"
538
- },
539
- {
540
- include: "#comma"
541
- }
542
- ]
543
- },
544
- "traits-argument": {
545
- patterns: [
546
- {
547
- include: "#expression"
548
- },
549
- {
550
- include: "#type"
551
- }
552
- ]
553
- },
554
- "special-keyword": {
555
- patterns: [
556
- {
557
- match: "\\b(__FILE__|__FILE_FULL_PATH__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__)\\b",
558
- name: "constant.language.special-keyword.d"
559
- }
560
- ]
561
- },
562
- statement: {
563
- patterns: [
564
- {
565
- include: "#non-block-statement"
566
- },
567
- {
568
- include: "#semi-colon"
569
- }
570
- ]
571
- },
572
- "non-block-statement": {
573
- patterns: [
574
- {
575
- include: "#module-declaration"
576
- },
577
- {
578
- include: "#labeled-statement"
579
- },
580
- {
581
- include: "#if-statement"
582
- },
583
- {
584
- include: "#while-statement"
585
- },
586
- {
587
- include: "#do-statement"
588
- },
589
- {
590
- include: "#for-statement"
591
- },
592
- {
593
- include: "#static-foreach"
594
- },
595
- {
596
- include: "#static-foreach-reverse"
597
- },
598
- {
599
- include: "#foreach-statement"
600
- },
601
- {
602
- include: "#foreach-reverse-statement"
603
- },
604
- {
605
- include: "#switch-statement"
606
- },
607
- {
608
- include: "#final-switch-statement"
609
- },
610
- {
611
- include: "#case-statement"
612
- },
613
- {
614
- include: "#default-statement"
615
- },
616
- {
617
- include: "#continue-statement"
618
- },
619
- {
620
- include: "#break-statement"
621
- },
622
- {
623
- include: "#return-statement"
624
- },
625
- {
626
- include: "#goto-statement"
627
- },
628
- {
629
- include: "#with-statement"
630
- },
631
- {
632
- include: "#synchronized-statement"
633
- },
634
- {
635
- include: "#try-statement"
636
- },
637
- {
638
- include: "#catches"
639
- },
640
- {
641
- include: "#scope-guard-statement"
642
- },
643
- {
644
- include: "#throw-statement"
645
- },
646
- {
647
- include: "#finally-statement"
648
- },
649
- {
650
- include: "#asm-statement"
651
- },
652
- {
653
- include: "#pragma-statement"
654
- },
655
- {
656
- include: "#mixin-statement"
657
- },
658
- {
659
- include: "#conditional-statement"
660
- },
661
- {
662
- include: "#static-assert"
663
- },
664
- {
665
- include: "#deprecated-statement"
666
- },
667
- {
668
- include: "#unit-test"
669
- },
670
- {
671
- include: "#declaration-statement"
672
- }
673
- ]
674
- },
675
- "labeled-statement": {
676
- patterns: [
677
- {
678
- match: "\\b(?!abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[a-zA-Z_][a-zA-Z_0-9]*\\s*:",
679
- name: "entity.name.d"
680
- }
681
- ]
682
- },
683
- "declaration-statement": {
684
- patterns: [
685
- {
686
- include: "#declaration"
687
- }
688
- ]
689
- },
690
- "if-statement": {
691
- patterns: [
692
- {
693
- begin: "\\b(if)\\b\\s*",
694
- captures: {
695
- "1": {
696
- name: "keyword.control.if.d"
697
- }
698
- },
699
- end: "(?<=\\))",
700
- patterns: [
701
- {
702
- begin: "\\(",
703
- end: "\\)",
704
- patterns: [
705
- {
706
- include: "source.d"
707
- }
708
- ]
709
- }
710
- ]
711
- },
712
- {
713
- match: "\\belse\\b\\s*",
714
- name: "keyword.control.else.d"
715
- }
716
- ]
717
- },
718
- "while-statement": {
719
- patterns: [
720
- {
721
- begin: "\\b(while)\\b\\s*",
722
- captures: {
723
- "1": {
724
- name: "keyword.control.while.d"
725
- }
726
- },
727
- end: "(?<=\\))",
728
- patterns: [
729
- {
730
- begin: "\\(",
731
- end: "\\)",
732
- patterns: [
733
- {
734
- include: "source.d"
735
- }
736
- ]
737
- }
738
- ]
739
- }
740
- ]
741
- },
742
- "do-statement": {
743
- patterns: [
744
- {
745
- match: "\\bdo\\b",
746
- name: "keyword.control.do.d"
747
- }
748
- ]
749
- },
750
- "for-statement": {
751
- patterns: [
752
- {
753
- begin: "\\b(for)\\b\\s*",
754
- captures: {
755
- "1": {
756
- name: "keyword.control.for.d"
757
- }
758
- },
759
- end: "(?<=\\))",
760
- patterns: [
761
- {
762
- begin: "\\(",
763
- end: "\\)",
764
- patterns: [
765
- {
766
- include: "source.d"
767
- }
768
- ]
769
- }
770
- ]
771
- }
772
- ]
773
- },
774
- "foreach-statement": {
775
- patterns: [
776
- {
777
- begin: "\\b(foreach)\\b\\s*",
778
- captures: {
779
- "1": {
780
- name: "keyword.control.foreach.d"
781
- }
782
- },
783
- end: "(?<=\\))",
784
- patterns: [
785
- {
786
- begin: "\\(",
787
- end: "\\)",
788
- patterns: [
789
- {
790
- match: ";",
791
- name: "keyword.operator.semi-colon.d"
792
- },
793
- {
794
- include: "source.d"
795
- }
796
- ]
797
- }
798
- ]
799
- }
800
- ]
801
- },
802
- "foreach-reverse-statement": {
803
- patterns: [
804
- {
805
- begin: "\\b(foreach_reverse)\\b\\s*",
806
- captures: {
807
- "1": {
808
- name: "keyword.control.foreach_reverse.d"
809
- }
810
- },
811
- end: "(?<=\\))",
812
- patterns: [
813
- {
814
- begin: "\\(",
815
- end: "\\)",
816
- patterns: [
817
- {
818
- match: ";",
819
- name: "keyword.operator.semi-colon.d"
820
- },
821
- {
822
- include: "source.d"
823
- }
824
- ]
825
- }
826
- ]
827
- }
828
- ]
829
- },
830
- "switch-statement": {
831
- patterns: [
832
- {
833
- begin: "\\b(switch)\\b\\s*",
834
- captures: {
835
- "1": {
836
- name: "keyword.control.switch.d"
837
- }
838
- },
839
- end: "(?<=\\))",
840
- patterns: [
841
- {
842
- begin: "\\(",
843
- end: "\\)",
844
- patterns: [
845
- {
846
- include: "source.d"
847
- }
848
- ]
849
- }
850
- ]
851
- }
852
- ]
853
- },
854
- "case-statement": {
855
- patterns: [
856
- {
857
- begin: "\\b(case)\\b\\s*",
858
- beginCaptures: {
859
- "1": {
860
- name: "keyword.control.case.range.d"
861
- }
862
- },
863
- end: ":",
864
- endCaptures: {
865
- "0": {
866
- name: "meta.case.end.d"
867
- }
868
- },
869
- patterns: [
870
- {
871
- include: "#comment"
872
- },
873
- {
874
- include: "#expression"
875
- },
876
- {
877
- include: "#comma"
878
- }
879
- ]
880
- }
881
- ]
882
- },
883
- "default-statement": {
884
- patterns: [
885
- {
886
- match: "\\b(default)\\s*(:)",
887
- captures: {
888
- "1": {
889
- name: "keyword.control.case.default.d"
890
- },
891
- "2": {
892
- name: "meta.default.colon.d"
893
- }
894
- }
895
- }
896
- ]
897
- },
898
- "final-switch-statement": {
899
- patterns: [
900
- {
901
- begin: "\\b(final\\s+switch)\\b\\s*",
902
- captures: {
903
- "1": {
904
- name: "keyword.control.final.switch.d"
905
- }
906
- },
907
- end: "(?<=\\))",
908
- patterns: [
909
- {
910
- begin: "\\(",
911
- end: "\\)",
912
- patterns: [
913
- {
914
- include: "source.d"
915
- }
916
- ]
917
- }
918
- ]
919
- }
920
- ]
921
- },
922
- "continue-statement": {
923
- patterns: [
924
- {
925
- match: "\\bcontinue\\b",
926
- name: "keyword.control.continue.d"
927
- }
928
- ]
929
- },
930
- "break-statement": {
931
- patterns: [
932
- {
933
- match: "\\bbreak\\b",
934
- name: "keyword.control.break.d"
935
- }
936
- ]
937
- },
938
- "return-statement": {
939
- patterns: [
940
- {
941
- match: "\\breturn\\b",
942
- name: "keyword.control.return.d"
943
- }
944
- ]
945
- },
946
- "goto-statement": {
947
- patterns: [
948
- {
949
- match: "\\bgoto\\s+default\\b",
950
- name: "keyword.control.goto.d"
951
- },
952
- {
953
- match: "\\bgoto\\s+case\\b",
954
- name: "keyword.control.goto.d"
955
- },
956
- {
957
- match: "\\bgoto\\b",
958
- name: "keyword.control.goto.d"
959
- }
960
- ]
961
- },
962
- "with-statement": {
963
- patterns: [
964
- {
965
- begin: "\\b(with)\\b\\s*(?=\\()",
966
- captures: {
967
- "1": {
968
- name: "keyword.control.with.d"
969
- }
970
- },
971
- end: "(?<=\\))",
972
- patterns: [
973
- {
974
- begin: "\\(",
975
- end: "\\)",
976
- patterns: [
977
- {
978
- include: "source.d"
979
- }
980
- ]
981
- }
982
- ]
983
- }
984
- ]
985
- },
986
- "synchronized-statement": {
987
- patterns: [
988
- {
989
- begin: "\\b(synchronized)\\b\\s*(?=\\()",
990
- captures: {
991
- "1": {
992
- name: "keyword.control.synchronized.d"
993
- }
994
- },
995
- end: "(?<=\\))",
996
- patterns: [
997
- {
998
- begin: "\\(",
999
- end: "\\)",
1000
- patterns: [
1001
- {
1002
- include: "source.d"
1003
- }
1004
- ]
1005
- }
1006
- ]
1007
- }
1008
- ]
1009
- },
1010
- "try-statement": {
1011
- patterns: [
1012
- {
1013
- match: "\\btry\\b",
1014
- name: "keyword.control.try.d"
1015
- }
1016
- ]
1017
- },
1018
- catches: {
1019
- patterns: [
1020
- {
1021
- include: "#catch"
1022
- }
1023
- ]
1024
- },
1025
- "catch": {
1026
- patterns: [
1027
- {
1028
- begin: "\\b(catch)\\b\\s*(?=\\()",
1029
- captures: {
1030
- "1": {
1031
- name: "keyword.control.catch.d"
1032
- }
1033
- },
1034
- end: "(?<=\\))",
1035
- patterns: [
1036
- {
1037
- begin: "\\(",
1038
- end: "\\)",
1039
- patterns: [
1040
- {
1041
- include: "source.d"
1042
- }
1043
- ]
1044
- }
1045
- ]
1046
- }
1047
- ]
1048
- },
1049
- "finally-statement": {
1050
- patterns: [
1051
- {
1052
- match: "\\bfinally\\b",
1053
- name: "keyword.control.throw.d"
1054
- }
1055
- ]
1056
- },
1057
- "throw-statement": {
1058
- patterns: [
1059
- {
1060
- match: "\\bthrow\\b",
1061
- name: "keyword.control.throw.d"
1062
- }
1063
- ]
1064
- },
1065
- "scope-guard-statement": {
1066
- patterns: [
1067
- {
1068
- match: "\\bscope\\s*\\((exit|success|failure)\\)",
1069
- name: "keyword.control.scope.d"
1070
- }
1071
- ]
1072
- },
1073
- "asm-statement": {
1074
- patterns: [
1075
- {
1076
- begin: "\\b(asm)\\b\\s*(?=\\{)",
1077
- captures: {
1078
- "1": {
1079
- name: "keyword.control.switch.d"
1080
- }
1081
- },
1082
- end: "(?<=\\})",
1083
- patterns: [
1084
- {
1085
- begin: "\\{",
1086
- end: "\\}",
1087
- beginCaptures: {
1088
- "0": {
1089
- name: "keyword.control.asm.begin.d"
1090
- }
1091
- },
1092
- endCaptures: {
1093
- "0": {
1094
- name: "keyword.control.asm.end.d"
1095
- }
1096
- },
1097
- contentName: "gfm.markup.raw.assembly.d",
1098
- patterns: [
1099
- {
1100
- include: "#asm-instruction"
1101
- }
1102
- ]
1103
- }
1104
- ]
1105
- }
1106
- ]
1107
- },
1108
- "pragma-statement": {
1109
- patterns: [
1110
- {
1111
- include: "#pragma"
1112
- }
1113
- ]
1114
- },
1115
- "mixin-statement": {
1116
- patterns: [
1117
- {
1118
- begin: "\\bmixin\\s*\\(",
1119
- beginCaptures: {
1120
- "0": {
1121
- name: "keyword.control.mixin.begin.d"
1122
- }
1123
- },
1124
- end: "\\)",
1125
- endCaptures: {
1126
- "0": {
1127
- name: "keyword.control.mixin.end.d"
1128
- }
1129
- },
1130
- patterns: [
1131
- {
1132
- include: "#comment"
1133
- },
1134
- {
1135
- include: "#expression"
1136
- },
1137
- {
1138
- include: "#comma"
1139
- }
1140
- ]
1141
- }
1142
- ]
1143
- },
1144
- "is-expression": {
1145
- patterns: [
1146
- {
1147
- begin: "\\bis\\s*\\(",
1148
- beginCaptures: {
1149
- "0": {
1150
- name: "keyword.token.is.begin.d"
1151
- }
1152
- },
1153
- end: "\\)",
1154
- endCaptures: {
1155
- "0": {
1156
- name: "keyword.token.is.end.d"
1157
- }
1158
- },
1159
- patterns: [
1160
- {
1161
- include: "#comment"
1162
- },
1163
- {
1164
- include: "#expression"
1165
- },
1166
- {
1167
- include: "#comma"
1168
- }
1169
- ]
1170
- }
1171
- ]
1172
- },
1173
- "parentheses-expression": {
1174
- patterns: [
1175
- {
1176
- begin: "\\(",
1177
- end: "\\)",
1178
- patterns: [
1179
- {
1180
- include: "#expression"
1181
- }
1182
- ]
1183
- }
1184
- ]
1185
- },
1186
- "deprecated-statement": {
1187
- patterns: [
1188
- {
1189
- begin: "\\bdeprecated\\s*\\(",
1190
- beginCaptures: {
1191
- "0": {
1192
- name: "keyword.other.deprecated.begin.d"
1193
- }
1194
- },
1195
- end: "\\)",
1196
- endCaptures: {
1197
- "0": {
1198
- name: "keyword.other.deprecated.end.d"
1199
- }
1200
- },
1201
- patterns: [
1202
- {
1203
- include: "#comment"
1204
- },
1205
- {
1206
- include: "#expression"
1207
- },
1208
- {
1209
- include: "#comma"
1210
- }
1211
- ]
1212
- },
1213
- {
1214
- match: "\\bdeprecated\\b\\s*(?!\\()",
1215
- name: "keyword.other.deprecated.plain.d"
1216
- }
1217
- ]
1218
- },
1219
- "asm-instruction": {
1220
- patterns: [
1221
- {
1222
- include: "#comment"
1223
- },
1224
- {
1225
- match: "\\b(align|even|naked|db|ds|di|dl|df|dd|de)\\b|:",
1226
- name: "keyword.asm-instruction.d"
1227
- },
1228
- {
1229
- match: "\\b__LOCAL_SIZE\\b",
1230
- name: "constant.language.assembly.d"
1231
- },
1232
- {
1233
- match: "\\b(offsetof|seg)\\b",
1234
- name: "support.type.assembly.d"
1235
- },
1236
- {
1237
- include: "#asm-type-prefix"
1238
- },
1239
- {
1240
- include: "#asm-primary-expression"
1241
- },
1242
- {
1243
- include: "#operands"
1244
- },
1245
- {
1246
- include: "#register"
1247
- },
1248
- {
1249
- include: "#register-64"
1250
- },
1251
- {
1252
- include: "#float-literal"
1253
- },
1254
- {
1255
- include: "#integer-literal"
1256
- },
1257
- {
1258
- include: "#identifier"
1259
- }
1260
- ]
1261
- },
1262
- operands: {
1263
- patterns: [
1264
- {
1265
- match: "\\?|:",
1266
- name: "keyword.operator.ternary.assembly.d"
1267
- },
1268
- {
1269
- match: "\\]|\\[",
1270
- name: "keyword.operator.bracket.assembly.d"
1271
- },
1272
- {
1273
- match: ">>>|\\|\\||&&|==|!=|<=|>=|<<|>>|\\||\\^|&|<|>|\\+|-|\\*|/|%|~|!",
1274
- name: "keyword.operator.assembly.d"
1275
- }
1276
- ]
1277
- },
1278
- "asm-type-prefix": {
1279
- patterns: [
1280
- {
1281
- match: "\\b((near\\s+ptr)|(far\\s+ptr)|(byte\\s+ptr)|(short\\s+ptr)|(int\\s+ptr)|(word\\s+ptr)|(dword\\s+ptr)|(qword\\s+ptr)|(float\\s+ptr)|(double\\s+ptr)|(real\\s+ptr))\\b",
1282
- name: "support.type.asm-type-prefix.d"
1283
- }
1284
- ]
1285
- },
1286
- register: {
1287
- patterns: [
1288
- {
1289
- match: "\\b(XMM0|XMM1|XMM2|XMM3|XMM4|XMM5|XMM6|XMM7|MM0|MM1|MM2|MM3|MM4|MM5|MM6|MM7|ST\\(0\\)|ST\\(1\\)|ST\\(2\\)|ST\\(3\\)|ST\\(4\\)|ST\\(5\\)|ST\\(6\\)|ST\\(7\\)|ST|TR1|TR2|TR3|TR4|TR5|TR6|TR7|DR0|DR1|DR2|DR3|DR4|DR5|DR6|DR7|CR0|CR2|CR3|CR4|EAX|EBX|ECX|EDX|EBP|ESP|EDI|ESI|AL|AH|AX|BL|BH|BX|CL|CH|CX|DL|DH|DX|BP|SP|DI|SI|ES|CS|SS|DS|GS|FS)\\b",
1290
- name: "storage.type.assembly.register.d"
1291
- }
1292
- ]
1293
- },
1294
- "register-64": {
1295
- patterns: [
1296
- {
1297
- match: "\\b(RAX|RBX|RCX|RDX|BPL|RBP|SPL|RSP|DIL|RDI|SIL|RSI|R8B|R8W|R8D|R8|R9B|R9W|R9D|R9|R10B|R10W|R10D|R10|R11B|R11W|R11D|R11|R12B|R12W|R12D|R12|R13B|R13W|R13D|R13|R14B|R14W|R14D|R14|R15B|R15W|R15D|R15|XMM8|XMM9|XMM10|XMM11|XMM12|XMM13|XMM14|XMM15|YMM0|YMM1|YMM2|YMM3|YMM4|YMM5|YMM6|YMM7|YMM8|YMM9|YMM10|YMM11|YMM12|YMM13|YMM14|YMM15)\\b",
1298
- name: "storage.type.assembly.register-64.d"
1299
- }
1300
- ]
1301
- },
1302
- declaration: {
1303
- patterns: [
1304
- {
1305
- include: "#alias-declaration"
1306
- },
1307
- {
1308
- include: "#aggregate-declaration"
1309
- },
1310
- {
1311
- include: "#enum-declaration"
1312
- },
1313
- {
1314
- include: "#import-declaration"
1315
- },
1316
- {
1317
- include: "#storage-class"
1318
- },
1319
- {
1320
- include: "#void-initializer"
1321
- },
1322
- {
1323
- include: "#mixin-declaration"
1324
- }
1325
- ]
1326
- },
1327
- "alias-declaration": {
1328
- patterns: [
1329
- {
1330
- begin: "\\b(alias)\\b\\s*",
1331
- beginCaptures: {
1332
- "1": {
1333
- name: "keyword.other.alias.d"
1334
- }
1335
- },
1336
- end: ";",
1337
- endCaptures: {
1338
- "0": {
1339
- name: "meta.alias.end.d"
1340
- }
1341
- },
1342
- patterns: [
1343
- {
1344
- include: "#type"
1345
- },
1346
- {
1347
- match: "=(?![=>])",
1348
- name: "keyword.operator.equal.alias.d"
1349
- },
1350
- {
1351
- include: "#expression"
1352
- }
1353
- ]
1354
- }
1355
- ]
1356
- },
1357
- "storage-class": {
1358
- patterns: [
1359
- {
1360
- match: "\\b(deprecated|enum|static|extern|abstract|final|override|synchronized|auto|scope|const|immutable|inout|shared|__gshared|nothrow|pure|ref)\\b",
1361
- name: "storage.class.d"
1362
- },
1363
- {
1364
- include: "#linkage-attribute"
1365
- },
1366
- {
1367
- include: "#align-attribute"
1368
- },
1369
- {
1370
- include: "#property"
1371
- }
1372
- ]
1373
- },
1374
- "void-initializer": {
1375
- patterns: [
1376
- {
1377
- match: "\\bvoid\\b",
1378
- name: "support.type.void.d"
1379
- }
1380
- ]
1381
- },
1382
- functions: {
1383
- patterns: [
1384
- {
1385
- include: "#function-attribute"
1386
- },
1387
- {
1388
- include: "#function-prelude"
1389
- }
1390
- ]
1391
- },
1392
- "function-prelude": {
1393
- patterns: [
1394
- {
1395
- match: "(?!typeof|typeid)((\\.\\s*)?[_\\w][_\\d\\w]*)(\\s*\\.\\s*[_\\w][_\\d\\w]*)*\\s*(?=\\()",
1396
- name: "entity.name.function.d"
1397
- }
1398
- ]
1399
- },
1400
- "class-members": {
1401
- patterns: [
1402
- {
1403
- include: "#shared-static-constructor"
1404
- },
1405
- {
1406
- include: "#shared-static-destructor"
1407
- },
1408
- {
1409
- include: "#constructor"
1410
- },
1411
- {
1412
- include: "#destructor"
1413
- },
1414
- {
1415
- include: "#postblit"
1416
- },
1417
- {
1418
- include: "#invariant"
1419
- },
1420
- {
1421
- include: "#member-function-attribute"
1422
- }
1423
- ]
1424
- },
1425
- "function-attribute": {
1426
- patterns: [
1427
- {
1428
- match: "\\b(nothrow|pure)\\b",
1429
- name: "storage.type.modifier.function-attribute.d"
1430
- },
1431
- {
1432
- include: "#property"
1433
- }
1434
- ]
1435
- },
1436
- "member-function-attribute": {
1437
- patterns: [
1438
- {
1439
- match: "\\b(const|immutable|inout|shared)\\b",
1440
- name: "storage.type.modifier.member-function-attribute"
1441
- }
1442
- ]
1443
- },
1444
- "function-body": {
1445
- patterns: [
1446
- {
1447
- include: "#in-statement"
1448
- },
1449
- {
1450
- include: "#out-statement"
1451
- },
1452
- {
1453
- include: "#body-statement"
1454
- },
1455
- {
1456
- include: "#block-statement"
1457
- }
1458
- ]
1459
- },
1460
- "in-statement": {
1461
- patterns: [
1462
- {
1463
- match: "\\bin\\b",
1464
- name: "keyword.control.in.d"
1465
- }
1466
- ]
1467
- },
1468
- "out-statement": {
1469
- patterns: [
1470
- {
1471
- begin: "\\bout\\s*\\(",
1472
- beginCaptures: {
1473
- "0": {
1474
- name: "keyword.control.out.begin.d"
1475
- }
1476
- },
1477
- end: "\\)",
1478
- endCaptures: {
1479
- "0": {
1480
- name: "keyword.control.out.end.d"
1481
- }
1482
- },
1483
- patterns: [
1484
- {
1485
- include: "#identifier"
1486
- }
1487
- ]
1488
- },
1489
- {
1490
- match: "\\bout\\b",
1491
- name: "keyword.control.out.d"
1492
- }
1493
- ]
1494
- },
1495
- "body-statement": {
1496
- patterns: [
1497
- {
1498
- match: "\\bbody\\b",
1499
- name: "keyword.control.body.d"
1500
- }
1501
- ]
1502
- },
1503
- constructor: {
1504
- patterns: [
1505
- {
1506
- match: "\\bthis\\b",
1507
- name: "entity.name.function.constructor.d"
1508
- }
1509
- ]
1510
- },
1511
- destructor: {
1512
- patterns: [
1513
- {
1514
- match: "\\b~this\\s*\\(\\s*\\)",
1515
- name: "entity.name.class.destructor.d"
1516
- }
1517
- ]
1518
- },
1519
- postblit: {
1520
- patterns: [
1521
- {
1522
- match: "\\bthis\\s*\\(\\s*this\\s*\\)\\s",
1523
- name: "entity.name.class.postblit.d"
1524
- }
1525
- ]
1526
- },
1527
- invariant: {
1528
- patterns: [
1529
- {
1530
- match: "\\binvariant\\s*\\(\\s*\\)",
1531
- name: "entity.name.class.invariant.d"
1532
- }
1533
- ]
1534
- },
1535
- "shared-static-constructor": {
1536
- patterns: [
1537
- {
1538
- match: "\\b(shared\\s+)?static\\s+this\\s*\\(\\s*\\)",
1539
- name: "entity.name.class.constructor.shared-static.d"
1540
- },
1541
- {
1542
- include: "#function-body"
1543
- }
1544
- ]
1545
- },
1546
- "shared-static-destructor": {
1547
- patterns: [
1548
- {
1549
- match: "\\b(shared\\s+)?static\\s+~this\\s*\\(\\s*\\)",
1550
- name: "entity.name.class.destructor.static.d"
1551
- }
1552
- ]
1553
- },
1554
- "aggregate-declaration": {
1555
- patterns: [
1556
- {
1557
- include: "#class-declaration"
1558
- },
1559
- {
1560
- include: "#interface-declaration"
1561
- },
1562
- {
1563
- include: "#struct-declaration"
1564
- },
1565
- {
1566
- include: "#union-declaration"
1567
- },
1568
- {
1569
- include: "#mixin-template-declaration"
1570
- },
1571
- {
1572
- include: "#template-declaration"
1573
- }
1574
- ]
1575
- },
1576
- "class-declaration": {
1577
- patterns: [
1578
- {
1579
- match: "\\b(class)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1580
- captures: {
1581
- "1": {
1582
- name: "storage.type.class.d"
1583
- },
1584
- "2": {
1585
- name: "entity.name.class.d"
1586
- }
1587
- }
1588
- },
1589
- {
1590
- include: "#protection-attribute"
1591
- },
1592
- {
1593
- include: "#class-members"
1594
- }
1595
- ]
1596
- },
1597
- "interface-declaration": {
1598
- patterns: [
1599
- {
1600
- match: "\\b(interface)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1601
- captures: {
1602
- "1": {
1603
- name: "storage.type.interface.d"
1604
- },
1605
- "2": {
1606
- name: "entity.name.type.interface.d"
1607
- }
1608
- }
1609
- }
1610
- ]
1611
- },
1612
- "struct-declaration": {
1613
- patterns: [
1614
- {
1615
- match: "\\b(struct)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1616
- captures: {
1617
- "1": {
1618
- name: "storage.type.struct.d"
1619
- },
1620
- "2": {
1621
- name: "entity.name.type.struct.d"
1622
- }
1623
- }
1624
- }
1625
- ]
1626
- },
1627
- "union-declaration": {
1628
- patterns: [
1629
- {
1630
- match: "\\b(union)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1631
- captures: {
1632
- "1": {
1633
- name: "storage.type.union.d"
1634
- },
1635
- "2": {
1636
- name: "entity.name.type.union.d"
1637
- }
1638
- }
1639
- }
1640
- ]
1641
- },
1642
- "enum-declaration": {
1643
- patterns: [
1644
- {
1645
- begin: "\\b(enum)\\b\\s+(?=.*[=;])",
1646
- end: "([A-Za-z_][\\w_\\d]*)\\s*(?=;|=|\\()(;)?",
1647
- beginCaptures: {
1648
- "1": {
1649
- name: "storage.type.enum.d"
1650
- }
1651
- },
1652
- endCaptures: {
1653
- "1": {
1654
- name: "entity.name.type.enum.d"
1655
- },
1656
- "2": {
1657
- name: "meta.enum.end.d"
1658
- }
1659
- },
1660
- patterns: [
1661
- {
1662
- include: "#type"
1663
- },
1664
- {
1665
- include: "#extended-type"
1666
- },
1667
- {
1668
- match: "=(?![=>])",
1669
- name: "keyword.operator.equal.alias.d"
1670
- }
1671
- ]
1672
- }
1673
- ]
1674
- },
1675
- "template-declaration": {
1676
- patterns: [
1677
- {
1678
- match: "\\b(template)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1679
- captures: {
1680
- "1": {
1681
- name: "storage.type.template.d"
1682
- },
1683
- "2": {
1684
- name: "entity.name.type.template.d"
1685
- }
1686
- }
1687
- }
1688
- ]
1689
- },
1690
- "mixin-template-declaration": {
1691
- patterns: [
1692
- {
1693
- match: "\\b(mixin\\s*template)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1694
- captures: {
1695
- "1": {
1696
- name: "storage.type.mixintemplate.d"
1697
- },
1698
- "2": {
1699
- name: "entity.name.type.mixintemplate.d"
1700
- }
1701
- }
1702
- }
1703
- ]
1704
- },
1705
- attribute: {
1706
- patterns: [
1707
- {
1708
- include: "#linkage-attribute"
1709
- },
1710
- {
1711
- include: "#align-attribute"
1712
- },
1713
- {
1714
- include: "#deprecated-attribute"
1715
- },
1716
- {
1717
- include: "#protection-attribute"
1718
- },
1719
- {
1720
- include: "#pragma"
1721
- },
1722
- {
1723
- match: "\\b(static|extern|abstract|final|override|synchronized|auto|scope|const|immutable|inout|shared|__gshared|nothrow|pure|ref)\\b",
1724
- name: "entity.other.attribute-name.d"
1725
- },
1726
- {
1727
- include: "#property"
1728
- }
1729
- ]
1730
- },
1731
- "linkage-attribute": {
1732
- patterns: [
1733
- {
1734
- begin: "\\bextern\\s*\\(\\s*C\\+\\+\\s*,",
1735
- beginCaptures: {
1736
- "0": {
1737
- name: "keyword.other.extern.cplusplus.begin.d"
1738
- }
1739
- },
1740
- end: "\\)",
1741
- endCaptures: {
1742
- "0": {
1743
- name: "keyword.other.extern.cplusplus.end.d"
1744
- }
1745
- },
1746
- patterns: [
1747
- {
1748
- include: "#identifier"
1749
- },
1750
- {
1751
- include: "#comma"
1752
- }
1753
- ]
1754
- },
1755
- {
1756
- begin: "\\bextern\\s*\\(",
1757
- beginCaptures: {
1758
- "0": {
1759
- name: "keyword.other.extern.begin.d"
1760
- }
1761
- },
1762
- end: "\\)",
1763
- endCaptures: {
1764
- "0": {
1765
- name: "keyword.other.extern.end.d"
1766
- }
1767
- },
1768
- patterns: [
1769
- {
1770
- include: "#linkage-type"
1771
- }
1772
- ]
1773
- }
1774
- ]
1775
- },
1776
- "linkage-type": {
1777
- patterns: [
1778
- {
1779
- match: "C|C\\+\\+|D|Windows|Pascal|System",
1780
- name: "storage.modifier.linkage-type.d"
1781
- }
1782
- ]
1783
- },
1784
- "align-attribute": {
1785
- patterns: [
1786
- {
1787
- begin: "\\balign\\s*\\(",
1788
- end: "\\)",
1789
- name: "storage.modifier.align-attribute.d",
1790
- patterns: [
1791
- {
1792
- include: "#integer-literal"
1793
- }
1794
- ]
1795
- },
1796
- {
1797
- match: "\\balign\\b\\s*(?!\\()",
1798
- name: "storage.modifier.align-attribute.d"
1799
- }
1800
- ]
1801
- },
1802
- "protection-attribute": {
1803
- patterns: [
1804
- {
1805
- match: "\\b(private|package|protected|public|export)\\b",
1806
- name: "keyword.other.protections.d"
1807
- }
1808
- ]
1809
- },
1810
- property: {
1811
- patterns: [
1812
- {
1813
- match: "@(property|safe|trusted|system|disable|nogc)\\b",
1814
- name: "entity.name.tag.property.d"
1815
- },
1816
- {
1817
- include: "#user-defined-attribute"
1818
- }
1819
- ]
1820
- },
1821
- "user-defined-attribute": {
1822
- patterns: [
1823
- {
1824
- match: "@([_\\w][_\\d\\w]*)\\b",
1825
- name: "entity.name.tag.user-defined-property.d"
1826
- },
1827
- {
1828
- begin: "@([_\\w][_\\d\\w]*)?\\(",
1829
- end: "\\)",
1830
- name: "entity.name.tag.user-defined-property.d",
1831
- patterns: [
1832
- {
1833
- include: "#expression"
1834
- }
1835
- ]
1836
- }
1837
- ]
1838
- },
1839
- pragma: {
1840
- patterns: [
1841
- {
1842
- match: "\\bpragma\\s*\\(\\s*[_\\w][_\\d\\w]*\\s*\\)",
1843
- name: "keyword.other.pragma.d"
1844
- },
1845
- {
1846
- begin: "\\bpragma\\s*\\(\\s*[_\\w][_\\d\\w]*\\s*,",
1847
- end: "\\)",
1848
- name: "keyword.other.pragma.d",
1849
- patterns: [
1850
- {
1851
- include: "#expression"
1852
- }
1853
- ]
1854
- },
1855
- {
1856
- match: "^#!.+",
1857
- name: "gfm.markup.header.preprocessor.script-tag.d"
1858
- }
1859
- ]
1860
- },
1861
- "conditional-declaration": {
1862
- patterns: [
1863
- {
1864
- include: "#condition"
1865
- },
1866
- {
1867
- match: "\\belse\\b",
1868
- name: "keyword.control.else.d"
1869
- },
1870
- {
1871
- include: "#colon"
1872
- },
1873
- {
1874
- include: "#decl-defs"
1875
- }
1876
- ]
1877
- },
1878
- "conditional-statement": {
1879
- patterns: [
1880
- {
1881
- include: "#condition"
1882
- },
1883
- {
1884
- include: "#no-scope-non-empty-statement"
1885
- },
1886
- {
1887
- match: "\\belse\\b",
1888
- name: "keyword.control.else.d"
1889
- }
1890
- ]
1891
- },
1892
- condition: {
1893
- patterns: [
1894
- {
1895
- include: "#version-condition"
1896
- },
1897
- {
1898
- include: "#debug-condition"
1899
- },
1900
- {
1901
- include: "#static-if-condition"
1902
- }
1903
- ]
1904
- },
1905
- "version-condition": {
1906
- patterns: [
1907
- {
1908
- match: "\\bversion\\s*\\(\\s*unittest\\s*\\)",
1909
- name: "keyword.other.version.unittest.d"
1910
- },
1911
- {
1912
- match: "\\bversion\\s*\\(\\s*assert\\s*\\)",
1913
- name: "keyword.other.version.assert.d"
1914
- },
1915
- {
1916
- begin: "\\bversion\\s*\\(",
1917
- beginCaptures: {
1918
- "0": {
1919
- name: "keyword.other.version.identifier.begin.d"
1920
- }
1921
- },
1922
- end: "\\)",
1923
- endCaptures: {
1924
- "0": {
1925
- name: "keyword.other.version.identifer.end.d"
1926
- }
1927
- },
1928
- patterns: [
1929
- {
1930
- include: "#integer-literal"
1931
- },
1932
- {
1933
- include: "#identifier"
1934
- }
1935
- ]
1936
- },
1937
- {
1938
- include: "#version-specification"
1939
- }
1940
- ]
1941
- },
1942
- "debug-condition": {
1943
- patterns: [
1944
- {
1945
- begin: "\\bdebug\\s*\\(",
1946
- beginCaptures: {
1947
- "0": {
1948
- name: "keyword.other.debug.identifier.begin.d"
1949
- }
1950
- },
1951
- end: "\\)",
1952
- endCaptures: {
1953
- "0": {
1954
- name: "keyword.other.debug.identifier.end.d"
1955
- }
1956
- },
1957
- patterns: [
1958
- {
1959
- include: "#integer-literal"
1960
- },
1961
- {
1962
- include: "#identifier"
1963
- }
1964
- ]
1965
- },
1966
- {
1967
- match: "\\bdebug\\b\\s*(?!\\()",
1968
- name: "keyword.other.debug.plain.d"
1969
- }
1970
- ]
1971
- },
1972
- "version-specification": {
1973
- patterns: [
1974
- {
1975
- match: "\\bversion\\b\\s*(?==)",
1976
- name: "keyword.other.version-specification.d"
1977
- }
1978
- ]
1979
- },
1980
- "debug-specification": {
1981
- patterns: [
1982
- {
1983
- match: "\\bdebug\\b\\s*(?==)",
1984
- name: "keyword.other.debug-specification.d"
1985
- }
1986
- ]
1987
- },
1988
- "static-if-condition": {
1989
- patterns: [
1990
- {
1991
- begin: "\\bstatic\\s+if\\b\\s*\\(",
1992
- beginCaptures: {
1993
- "0": {
1994
- name: "keyword.control.static-if.begin.d"
1995
- }
1996
- },
1997
- end: "\\)",
1998
- endCaptures: {
1999
- "0": {
2000
- name: "keyword.control.static-if.end.d"
2001
- }
2002
- },
2003
- patterns: [
2004
- {
2005
- include: "#comment"
2006
- },
2007
- {
2008
- include: "#expression"
2009
- }
2010
- ]
2011
- }
2012
- ]
2013
- },
2014
- "static-assert": {
2015
- patterns: [
2016
- {
2017
- begin: "\\bstatic\\s+assert\\b\\s*\\(",
2018
- beginCaptures: {
2019
- "0": {
2020
- name: "keyword.other.static-assert.begin.d"
2021
- }
2022
- },
2023
- end: "\\)",
2024
- endCaptures: {
2025
- "0": {
2026
- name: "keyword.other.static-assert.end.d"
2027
- }
2028
- },
2029
- patterns: [
2030
- {
2031
- include: "#expression"
2032
- }
2033
- ]
2034
- }
2035
- ]
2036
- },
2037
- "static-foreach": {
2038
- patterns: [
2039
- {
2040
- begin: "\\b(static\\s+foreach)\\b\\s*",
2041
- captures: {
2042
- "1": {
2043
- name: "keyword.control.static-foreach.d"
2044
- }
2045
- },
2046
- end: "(?<=\\))",
2047
- patterns: [
2048
- {
2049
- begin: "\\(",
2050
- end: "\\)",
2051
- patterns: [
2052
- {
2053
- match: ";",
2054
- name: "keyword.operator.semi-colon.d"
2055
- },
2056
- {
2057
- include: "source.d"
2058
- }
2059
- ]
2060
- }
2061
- ]
2062
- }
2063
- ]
2064
- },
2065
- "static-foreach-reverse": {
2066
- patterns: [
2067
- {
2068
- begin: "\\b(static\\s+foreach_reverse)\\b\\s*",
2069
- captures: {
2070
- "1": {
2071
- name: "keyword.control.static-foreach.d"
2072
- }
2073
- },
2074
- end: "(?<=\\))",
2075
- patterns: [
2076
- {
2077
- begin: "\\(",
2078
- end: "\\)",
2079
- patterns: [
2080
- {
2081
- match: ";",
2082
- name: "keyword.operator.semi-colon.d"
2083
- },
2084
- {
2085
- include: "source.d"
2086
- }
2087
- ]
2088
- }
2089
- ]
2090
- }
2091
- ]
2092
- },
2093
- module: {
2094
- packages: [
2095
- {
2096
- "import": "#module-declaration"
2097
- }
2098
- ]
2099
- },
2100
- "module-declaration": {
2101
- patterns: [
2102
- {
2103
- begin: "\\b(module)\\s+",
2104
- end: ";",
2105
- beginCaptures: {
2106
- "1": {
2107
- name: "keyword.package.module.d"
2108
- }
2109
- },
2110
- endCaptures: {
2111
- "0": {
2112
- name: "meta.module.end.d"
2113
- }
2114
- },
2115
- patterns: [
2116
- {
2117
- include: "#module-identifier"
2118
- },
2119
- {
2120
- include: "#comment"
2121
- }
2122
- ]
2123
- }
2124
- ]
2125
- },
2126
- "import-declaration": {
2127
- patterns: [
2128
- {
2129
- begin: "\\b(static\\s+)?(import)\\s+(?!\\()",
2130
- end: ";",
2131
- beginCaptures: {
2132
- "1": {
2133
- name: "keyword.package.import.d"
2134
- },
2135
- "2": {
2136
- name: "keyword.package.import.d"
2137
- }
2138
- },
2139
- endCaptures: {
2140
- "0": {
2141
- name: "meta.import.end.d"
2142
- }
2143
- },
2144
- patterns: [
2145
- {
2146
- include: "#import-identifier"
2147
- },
2148
- {
2149
- include: "#comma"
2150
- },
2151
- {
2152
- include: "#comment"
2153
- }
2154
- ]
2155
- }
2156
- ]
2157
- },
2158
- "mixin-declaration": {
2159
- patterns: [
2160
- {
2161
- begin: "\\bmixin\\s*\\(",
2162
- end: "\\)",
2163
- beginCaptures: {
2164
- "0": {
2165
- name: "keyword.mixin.begin.d"
2166
- }
2167
- },
2168
- endCaptures: {
2169
- "0": {
2170
- name: "keyword.mixin.end.d"
2171
- }
2172
- },
2173
- patterns: [
2174
- {
2175
- include: "#comment"
2176
- },
2177
- {
2178
- include: "#expression"
2179
- },
2180
- {
2181
- include: "#comma"
2182
- }
2183
- ]
2184
- }
2185
- ]
2186
- },
2187
- comma: {
2188
- patterns: [
2189
- {
2190
- match: ",",
2191
- name: "keyword.operator.comma.d"
2192
- }
2193
- ]
2194
- },
2195
- colon: {
2196
- patterns: [
2197
- {
2198
- match: ":",
2199
- name: "support.type.colon.d"
2200
- }
2201
- ]
2202
- },
2203
- equal: {
2204
- patterns: [
2205
- {
2206
- match: "=(?![=>])",
2207
- name: "keyword.operator.equal.d"
2208
- }
2209
- ]
2210
- },
2211
- "semi-colon": {
2212
- patterns: [
2213
- {
2214
- match: ";",
2215
- name: "meta.statement.end.d"
2216
- }
2217
- ]
2218
- },
2219
- lexical: {
2220
- patterns: [
2221
- {
2222
- include: "#comment"
2223
- },
2224
- {
2225
- include: "#string-literal"
2226
- },
2227
- {
2228
- include: "#character-literal"
2229
- },
2230
- {
2231
- include: "#float-literal"
2232
- },
2233
- {
2234
- include: "#integer-literal"
2235
- },
2236
- {
2237
- include: "#eof"
2238
- },
2239
- {
2240
- include: "#special-tokens"
2241
- },
2242
- {
2243
- include: "#special-token-sequence"
2244
- },
2245
- {
2246
- include: "#keyword"
2247
- },
2248
- {
2249
- include: "#identifier"
2250
- }
2251
- ]
2252
- },
2253
- "integer-literal": {
2254
- patterns: [
2255
- {
2256
- include: "#decimal-integer"
2257
- },
2258
- {
2259
- include: "#binary-integer"
2260
- },
2261
- {
2262
- include: "#hexadecimal-integer"
2263
- }
2264
- ]
2265
- },
2266
- "decimal-integer": {
2267
- patterns: [
2268
- {
2269
- match: "\\b(0(?=[^\\dxXbB]))|([1-9][0-9_]*)(Lu|LU|uL|UL|L|u|U)?\\b",
2270
- name: "constant.numeric.integer.decimal.d"
2271
- }
2272
- ]
2273
- },
2274
- "binary-integer": {
2275
- patterns: [
2276
- {
2277
- match: "\\b(0b|0B)[0-1_]+(Lu|LU|uL|UL|L|u|U)?\\b",
2278
- name: "constant.numeric.integer.binary.d"
2279
- }
2280
- ]
2281
- },
2282
- "hexadecimal-integer": {
2283
- patterns: [
2284
- {
2285
- match: "\\b(0x|0X)([0-9a-fA-F][0-9a-fA-F_]*)(Lu|LU|uL|UL|L|u|U)?\\b",
2286
- name: "constant.numeric.integer.hexadecimal.d"
2287
- }
2288
- ]
2289
- },
2290
- "float-literal": {
2291
- patterns: [
2292
- {
2293
- include: "#decimal-float"
2294
- },
2295
- {
2296
- include: "#hexadecimal-float"
2297
- }
2298
- ]
2299
- },
2300
- "decimal-float": {
2301
- patterns: [
2302
- {
2303
- match: "\\b((\\.[0-9])|(0\\.)|(([1-9]|(0[1-9_]))[0-9_]*\\.))[0-9_]*((e-|E-|e\\+|E\\+|e|E)[0-9][0-9_]*)?[LfF]?i?\\b",
2304
- name: "constant.numeric.float.decimal.d"
2305
- }
2306
- ]
2307
- },
2308
- "hexadecimal-float": {
2309
- patterns: [
2310
- {
2311
- match: "\\b0[xX][0-9a-fA-F_]*(\\.[0-9a-fA-F_]*)?(p-|P-|p\\+|P\\+|p|P)[0-9][0-9_]*[LfF]?i?\\b",
2312
- name: "constant.numeric.float.hexadecimal.d"
2313
- }
2314
- ]
2315
- },
2316
- "string-literal": {
2317
- patterns: [
2318
- {
2319
- include: "#wysiwyg-string"
2320
- },
2321
- {
2322
- include: "#alternate-wysiwyg-string"
2323
- },
2324
- {
2325
- include: "#hex-string"
2326
- },
2327
- {
2328
- include: "#arbitrary-delimited-string"
2329
- },
2330
- {
2331
- include: "#delimited-string"
2332
- },
2333
- {
2334
- include: "#double-quoted-string"
2335
- },
2336
- {
2337
- include: "#token-string"
2338
- }
2339
- ]
2340
- },
2341
- "wysiwyg-string": {
2342
- patterns: [
2343
- {
2344
- begin: "r\\\"",
2345
- end: "\\\"[cwd]?",
2346
- name: "string.wysiwyg-string.d",
2347
- patterns: [
2348
- {
2349
- include: "#wysiwyg-characters"
2350
- }
2351
- ]
2352
- }
2353
- ]
2354
- },
2355
- "alternate-wysiwyg-string": {
2356
- patterns: [
2357
- {
2358
- begin: "`",
2359
- end: "`[cwd]?",
2360
- name: "string.alternate-wysiwyg-string.d",
2361
- patterns: [
2362
- {
2363
- include: "#wysiwyg-characters"
2364
- }
2365
- ]
2366
- }
2367
- ]
2368
- },
2369
- "double-quoted-string": {
2370
- patterns: [
2371
- {
2372
- begin: "\"",
2373
- end: "\"[cwd]?",
2374
- name: "string.double-quoted-string.d",
2375
- patterns: [
2376
- {
2377
- include: "#double-quoted-characters"
2378
- }
2379
- ]
2380
- }
2381
- ]
2382
- },
2383
- "hex-string": {
2384
- patterns: [
2385
- {
2386
- begin: "x\"",
2387
- end: "\"[cwd]?",
2388
- name: "string.hex-string.d",
2389
- patterns: [
2390
- {
2391
- match: "[a-fA-F0-9_s]+",
2392
- name: "constant.character.hex-string.d"
2393
- }
2394
- ]
2395
- }
2396
- ]
2397
- },
2398
- "arbitrary-delimited-string": {
2399
- begin: "q\"(\\w+)",
2400
- end: "\\1\"",
2401
- name: "string.delimited.d",
2402
- patterns: [
2403
- {
2404
- match: ".",
2405
- name: "string.delimited.d"
2406
- }
2407
- ]
2408
- },
2409
- "delimited-string": {
2410
- begin: "q\"",
2411
- end: "\"",
2412
- name: "string.delimited.d",
2413
- patterns: [
2414
- {
2415
- include: "#delimited-string-bracket"
2416
- },
2417
- {
2418
- include: "#delimited-string-parens"
2419
- },
2420
- {
2421
- include: "#delimited-string-angle-brackets"
2422
- },
2423
- {
2424
- include: "#delimited-string-braces"
2425
- }
2426
- ]
2427
- },
2428
- "token-string": {
2429
- begin: "q\\{",
2430
- end: "\\}[cdw]?",
2431
- beginCaptures: {
2432
- "0": {
2433
- name: "string.quoted.token.d"
2434
- }
2435
- },
2436
- endCaptures: {
2437
- "0": {
2438
- name: "string.quoted.token.d"
2439
- }
2440
- },
2441
- patterns: [
2442
- {
2443
- include: "#token-string-content"
2444
- }
2445
- ]
2446
- },
2447
- "delimited-string-bracket": {
2448
- patterns: [
2449
- {
2450
- begin: "\\[",
2451
- end: "\\]",
2452
- name: "constant.characters.delimited.brackets.d",
2453
- patterns: [
2454
- {
2455
- include: "#wysiwyg-characters"
2456
- }
2457
- ]
2458
- }
2459
- ]
2460
- },
2461
- "delimited-string-parens": {
2462
- patterns: [
2463
- {
2464
- begin: "\\(",
2465
- end: "\\)",
2466
- name: "constant.character.delimited.parens.d",
2467
- patterns: [
2468
- {
2469
- include: "#wysiwyg-characters"
2470
- }
2471
- ]
2472
- }
2473
- ]
2474
- },
2475
- "delimited-string-angle-brackets": {
2476
- patterns: [
2477
- {
2478
- begin: "<",
2479
- end: ">",
2480
- name: "constant.character.angle-brackets.d",
2481
- patterns: [
2482
- {
2483
- include: "#wysiwyg-characters"
2484
- }
2485
- ]
2486
- }
2487
- ]
2488
- },
2489
- "delimited-string-braces": {
2490
- patterns: [
2491
- {
2492
- begin: "\\{",
2493
- end: "\\}",
2494
- name: "constant.character.delimited.braces.d",
2495
- patterns: [
2496
- {
2497
- include: "#wysiwyg-characters"
2498
- }
2499
- ]
2500
- }
2501
- ]
2502
- },
2503
- "wysiwyg-characters": {
2504
- patterns: [
2505
- {
2506
- include: "#character"
2507
- },
2508
- {
2509
- include: "#end-of-line"
2510
- }
2511
- ]
2512
- },
2513
- "double-quoted-characters": {
2514
- patterns: [
2515
- {
2516
- include: "#character"
2517
- },
2518
- {
2519
- include: "#end-of-line"
2520
- },
2521
- {
2522
- include: "#escape-sequence"
2523
- }
2524
- ]
2525
- },
2526
- "escape-sequence": {
2527
- patterns: [
2528
- {
2529
- match: "(\\\\(?:quot|amp|lt|gt|OElig|oelig|Scaron|scaron|Yuml|circ|tilde|ensp|emsp|thinsp|zwnj|zwj|lrm|rlm|ndash|mdash|lsquo|rsquo|sbquo|ldquo|rdquo|bdquo|dagger|Dagger|permil|lsaquo|rsaquo|euro|nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|Aelig|Ccedil|egrave|eacute|ecirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|fnof|Alpha|Beta|Gamma|Delta|Epsilon|Zeta|Eta|Theta|Iota|Kappa|Lambda|Mu|Nu|Xi|Omicron|Pi|Rho|Sigma|Tau|Upsilon|Phi|Chi|Psi|Omega|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigmaf|sigma|tau|upsilon|phi|chi|psi|omega|thetasym|upsih|piv|bull|hellip|prime|Prime|oline|frasl|weierp|image|real|trade|alefsym|larr|uarr|rarr|darr|harr|crarr|lArr|uArr|rArr|dArr|hArr|forall|part|exist|empty|nabla|isin|notin|ni|prod|sum|minux|lowast|radic|prop|infin|ang|and|or|cap|cup|int|there4|sim|cong|asymp|ne|equiv|le|ge|sub|sup|nsub|sube|supe|oplus|otimes|perp|sdot|lceil|rceil|lfloor|rfloor|loz|spades|clubs|hearts|diams|lang|rang))",
2530
- name: "constant.character.escape-sequence.entity.d"
2531
- },
2532
- {
2533
- match: "(\\\\x[0-9a-fA-F_]{2}|\\\\u[0-9a-fA-F_]{4}|\\\\U[0-9a-fA-F_]{8}|\\\\[0-7]{1,3})",
2534
- name: "constant.character.escape-sequence.number.d"
2535
- },
2536
- {
2537
- match: "(\\\\t|\\\\'|\\\\\"|\\\\\\?|\\\\0|\\\\a|\\\\b|\\\\f|\\\\n|\\\\r|\\\\v|\\\\\\\\)",
2538
- name: "constant.character.escape-sequence.d"
2539
- }
2540
- ]
2541
- },
2542
- "character-literal": {
2543
- patterns: [
2544
- {
2545
- begin: "'",
2546
- end: "'",
2547
- name: "string.character-literal.d",
2548
- patterns: [
2549
- {
2550
- include: "#character"
2551
- },
2552
- {
2553
- include: "#escape-sequence"
2554
- }
2555
- ]
2556
- }
2557
- ]
2558
- },
2559
- character: {
2560
- patterns: [
2561
- {
2562
- match: "[\\w\\s]+",
2563
- name: "string.character.d"
2564
- }
2565
- ]
2566
- },
2567
- "end-of-line": {
2568
- patterns: [
2569
- {
2570
- match: "\\n+",
2571
- name: "string.character.end-of-line.d"
2572
- }
2573
- ]
2574
- },
2575
- "identifier-list": {
2576
- patterns: [
2577
- {
2578
- match: ",",
2579
- name: "keyword.other.comma.d"
2580
- },
2581
- {
2582
- include: "#identifier"
2583
- }
2584
- ]
2585
- },
2586
- identifier: {
2587
- patterns: [
2588
- {
2589
- match: "\\b((\\.\\s*)?[_\\w][_\\d\\w]*)(\\s*\\.\\s*[_\\w][_\\d\\w]*)*\\b",
2590
- name: "variable.d"
2591
- }
2592
- ]
2593
- },
2594
- "module-identifier": {
2595
- patterns: [
2596
- {
2597
- match: "([_a-zA-Z][_\\d\\w]*)(\\s*\\.\\s*[_a-zA-Z][_\\d\\w]*)*",
2598
- name: "variable.parameter.module.d"
2599
- }
2600
- ]
2601
- },
2602
- "import-identifier": {
2603
- patterns: [
2604
- {
2605
- match: "([_a-zA-Z][_\\d\\w]*)(\\s*\\.\\s*[_a-zA-Z][_\\d\\w]*)*",
2606
- name: "variable.parameter.import.d"
2607
- }
2608
- ]
2609
- },
2610
- eof: {
2611
- patterns: [
2612
- {
2613
- begin: "__EOF__",
2614
- beginCaptures: {
2615
- "0": {
2616
- name: "comment.block.documentation.eof.start.d"
2617
- }
2618
- },
2619
- end: "(?!__NEVER_MATCH__)__NEVER_MATCH__",
2620
- name: "text.eof.d"
2621
- }
2622
- ]
2623
- },
2624
- comment: {
2625
- patterns: [
2626
- {
2627
- include: "#block-comment"
2628
- },
2629
- {
2630
- include: "#line-comment"
2631
- },
2632
- {
2633
- include: "#nesting-block-comment"
2634
- }
2635
- ]
2636
- },
2637
- "block-comment": {
2638
- patterns: [
2639
- {
2640
- begin: "/((?!\\*/)\\*)+",
2641
- beginCaptures: {
2642
- "0": {
2643
- name: "comment.block.begin.d"
2644
- }
2645
- },
2646
- end: "\\*+/",
2647
- endCaptures: {
2648
- "0": {
2649
- name: "comment.block.end.d"
2650
- }
2651
- },
2652
- name: "comment.block.content.d"
2653
- }
2654
- ]
2655
- },
2656
- "line-comment": {
2657
- patterns: [
2658
- {
2659
- match: "//+.*$",
2660
- name: "comment.line.d"
2661
- }
2662
- ]
2663
- },
2664
- "nesting-block-comment": {
2665
- patterns: [
2666
- {
2667
- begin: "/((?!\\+/)\\+)+",
2668
- beginCaptures: {
2669
- "0": {
2670
- name: "comment.block.documentation.begin.d"
2671
- }
2672
- },
2673
- end: "\\++/",
2674
- endCaptures: {
2675
- "0": {
2676
- name: "comment.block.documentation.end.d"
2677
- }
2678
- },
2679
- name: "comment.block.documentation.content.d",
2680
- patterns: [
2681
- {
2682
- include: "#nesting-block-comment"
2683
- }
2684
- ]
2685
- }
2686
- ]
2687
- },
2688
- "token-string-content": {
2689
- patterns: [
2690
- {
2691
- begin: "{",
2692
- end: "}",
2693
- patterns: [
2694
- {
2695
- include: "#token-string-content"
2696
- }
2697
- ]
2698
- },
2699
- {
2700
- include: "#comment"
2701
- },
2702
- {
2703
- include: "#tokens"
2704
- }
2705
- ]
2706
- },
2707
- tokens: {
2708
- patterns: [
2709
- {
2710
- include: "#string-literal"
2711
- },
2712
- {
2713
- include: "#character-literal"
2714
- },
2715
- {
2716
- include: "#integer-literal"
2717
- },
2718
- {
2719
- include: "#float-literal"
2720
- },
2721
- {
2722
- include: "#keyword"
2723
- },
2724
- {
2725
- match: "~=|~|>>>|>>=|>>|>=|>|=>|==|=|<>|<=|<<|<|%=|%|#|&=|&&|&|\\$|\\|=|\\|\\||\\||\\+=|\\+\\+|\\+|\\^=|\\^\\^=|\\^\\^|\\^|\\*=|\\*|\\}|\\{|\\]|\\[|\\)|\\(|\\.\\.\\.|\\.\\.|\\.|\\?|\\!>=|\\!>|\\!=|\\!<>=|\\!<>|\\!<=|\\!<|\\!|/=|/|@|:|;|,|-=|--|-",
2726
- name: "meta.lexical.token.symbolic.d"
2727
- },
2728
- {
2729
- include: "#identifier"
2730
- }
2731
- ]
2732
- },
2733
- keyword: {
2734
- patterns: [
2735
- {
2736
- match: "\\babstract\\b",
2737
- name: "keyword.token.abstract.d"
2738
- },
2739
- {
2740
- match: "\\balias\\b",
2741
- name: "keyword.token.alias.d"
2742
- },
2743
- {
2744
- match: "\\balign\\b",
2745
- name: "keyword.token.align.d"
2746
- },
2747
- {
2748
- match: "\\basm\\b",
2749
- name: "keyword.token.asm.d"
2750
- },
2751
- {
2752
- match: "\\bassert\\b",
2753
- name: "keyword.token.assert.d"
2754
- },
2755
- {
2756
- match: "\\bauto\\b",
2757
- name: "keyword.token.auto.d"
2758
- },
2759
- {
2760
- match: "\\bbody\\b",
2761
- name: "keyword.token.body.d"
2762
- },
2763
- {
2764
- match: "\\bbool\\b",
2765
- name: "keyword.token.bool.d"
2766
- },
2767
- {
2768
- match: "\\bbreak\\b",
2769
- name: "keyword.token.break.d"
2770
- },
2771
- {
2772
- match: "\\bbyte\\b",
2773
- name: "keyword.token.byte.d"
2774
- },
2775
- {
2776
- match: "\\bcase\\b",
2777
- name: "keyword.token.case.d"
2778
- },
2779
- {
2780
- match: "\\bcast\\b",
2781
- name: "keyword.token.cast.d"
2782
- },
2783
- {
2784
- match: "\\bcatch\\b",
2785
- name: "keyword.token.catch.d"
2786
- },
2787
- {
2788
- match: "\\bcdouble\\b",
2789
- name: "keyword.token.cdouble.d"
2790
- },
2791
- {
2792
- match: "\\bcent\\b",
2793
- name: "keyword.token.cent.d"
2794
- },
2795
- {
2796
- match: "\\bcfloat\\b",
2797
- name: "keyword.token.cfloat.d"
2798
- },
2799
- {
2800
- match: "\\bchar\\b",
2801
- name: "keyword.token.char.d"
2802
- },
2803
- {
2804
- match: "\\bclass\\b",
2805
- name: "keyword.token.class.d"
2806
- },
2807
- {
2808
- match: "\\bconst\\b",
2809
- name: "keyword.token.const.d"
2810
- },
2811
- {
2812
- match: "\\bcontinue\\b",
2813
- name: "keyword.token.continue.d"
2814
- },
2815
- {
2816
- match: "\\bcreal\\b",
2817
- name: "keyword.token.creal.d"
2818
- },
2819
- {
2820
- match: "\\bdchar\\b",
2821
- name: "keyword.token.dchar.d"
2822
- },
2823
- {
2824
- match: "\\bdebug\\b",
2825
- name: "keyword.token.debug.d"
2826
- },
2827
- {
2828
- match: "\\bdefault\\b",
2829
- name: "keyword.token.default.d"
2830
- },
2831
- {
2832
- match: "\\bdelegate\\b",
2833
- name: "keyword.token.delegate.d"
2834
- },
2835
- {
2836
- match: "\\bdelete\\b",
2837
- name: "keyword.token.delete.d"
2838
- },
2839
- {
2840
- match: "\\bdeprecated\\b",
2841
- name: "keyword.token.deprecated.d"
2842
- },
2843
- {
2844
- match: "\\bdo\\b",
2845
- name: "keyword.token.do.d"
2846
- },
2847
- {
2848
- match: "\\bdouble\\b",
2849
- name: "keyword.token.double.d"
2850
- },
2851
- {
2852
- match: "\\belse\\b",
2853
- name: "keyword.token.else.d"
2854
- },
2855
- {
2856
- match: "\\benum\\b",
2857
- name: "keyword.token.enum.d"
2858
- },
2859
- {
2860
- match: "\\bexport\\b",
2861
- name: "keyword.token.export.d"
2862
- },
2863
- {
2864
- match: "\\bextern\\b",
2865
- name: "keyword.token.extern.d"
2866
- },
2867
- {
2868
- match: "\\bfalse\\b",
2869
- name: "constant.language.boolean.false.d"
2870
- },
2871
- {
2872
- match: "\\bfinal\\b",
2873
- name: "keyword.token.final.d"
2874
- },
2875
- {
2876
- match: "\\bfinally\\b",
2877
- name: "keyword.token.finally.d"
2878
- },
2879
- {
2880
- match: "\\bfloat\\b",
2881
- name: "keyword.token.float.d"
2882
- },
2883
- {
2884
- match: "\\bfor\\b",
2885
- name: "keyword.token.for.d"
2886
- },
2887
- {
2888
- match: "\\bforeach\\b",
2889
- name: "keyword.token.foreach.d"
2890
- },
2891
- {
2892
- match: "\\bforeach_reverse\\b",
2893
- name: "keyword.token.foreach_reverse.d"
2894
- },
2895
- {
2896
- match: "\\bfunction\\b",
2897
- name: "keyword.token.function.d"
2898
- },
2899
- {
2900
- match: "\\bgoto\\b",
2901
- name: "keyword.token.goto.d"
2902
- },
2903
- {
2904
- match: "\\bidouble\\b",
2905
- name: "keyword.token.idouble.d"
2906
- },
2907
- {
2908
- match: "\\bif\\b",
2909
- name: "keyword.token.if.d"
2910
- },
2911
- {
2912
- match: "\\bifloat\\b",
2913
- name: "keyword.token.ifloat.d"
2914
- },
2915
- {
2916
- match: "\\bimmutable\\b",
2917
- name: "keyword.token.immutable.d"
2918
- },
2919
- {
2920
- match: "\\bimport\\b",
2921
- name: "keyword.token.import.d"
2922
- },
2923
- {
2924
- match: "\\bin\\b",
2925
- name: "keyword.token.in.d"
2926
- },
2927
- {
2928
- match: "\\binout\\b",
2929
- name: "keyword.token.inout.d"
2930
- },
2931
- {
2932
- match: "\\bint\\b",
2933
- name: "keyword.token.int.d"
2934
- },
2935
- {
2936
- match: "\\binterface\\b",
2937
- name: "keyword.token.interface.d"
2938
- },
2939
- {
2940
- match: "\\binvariant\\b",
2941
- name: "keyword.token.invariant.d"
2942
- },
2943
- {
2944
- match: "\\bireal\\b",
2945
- name: "keyword.token.ireal.d"
2946
- },
2947
- {
2948
- match: "\\bis\\b",
2949
- name: "keyword.token.is.d"
2950
- },
2951
- {
2952
- match: "\\blazy\\b",
2953
- name: "keyword.token.lazy.d"
2954
- },
2955
- {
2956
- match: "\\blong\\b",
2957
- name: "keyword.token.long.d"
2958
- },
2959
- {
2960
- match: "\\bmacro\\b",
2961
- name: "keyword.token.macro.d"
2962
- },
2963
- {
2964
- match: "\\bmixin\\b",
2965
- name: "keyword.token.mixin.d"
2966
- },
2967
- {
2968
- match: "\\bmodule\\b",
2969
- name: "keyword.token.module.d"
2970
- },
2971
- {
2972
- match: "\\bnew\\b",
2973
- name: "keyword.token.new.d"
2974
- },
2975
- {
2976
- match: "\\bnothrow\\b",
2977
- name: "keyword.token.nothrow.d"
2978
- },
2979
- {
2980
- match: "\\bnull\\b",
2981
- name: "constant.language.null.d"
2982
- },
2983
- {
2984
- match: "\\bout\\b",
2985
- name: "keyword.token.out.d"
2986
- },
2987
- {
2988
- match: "\\boverride\\b",
2989
- name: "keyword.token.override.d"
2990
- },
2991
- {
2992
- match: "\\bpackage\\b",
2993
- name: "keyword.token.package.d"
2994
- },
2995
- {
2996
- match: "\\bpragma\\b",
2997
- name: "keyword.token.pragma.d"
2998
- },
2999
- {
3000
- match: "\\bprivate\\b",
3001
- name: "keyword.token.private.d"
3002
- },
3003
- {
3004
- match: "\\bprotected\\b",
3005
- name: "keyword.token.protected.d"
3006
- },
3007
- {
3008
- match: "\\bpublic\\b",
3009
- name: "keyword.token.public.d"
3010
- },
3011
- {
3012
- match: "\\bpure\\b",
3013
- name: "keyword.token.pure.d"
3014
- },
3015
- {
3016
- match: "\\breal\\b",
3017
- name: "keyword.token.real.d"
3018
- },
3019
- {
3020
- match: "\\bref\\b",
3021
- name: "keyword.token.ref.d"
3022
- },
3023
- {
3024
- match: "\\breturn\\b",
3025
- name: "keyword.token.return.d"
3026
- },
3027
- {
3028
- match: "\\bscope\\b",
3029
- name: "keyword.token.scope.d"
3030
- },
3031
- {
3032
- match: "\\bshared\\b",
3033
- name: "keyword.token.shared.d"
3034
- },
3035
- {
3036
- match: "\\bshort\\b",
3037
- name: "keyword.token.short.d"
3038
- },
3039
- {
3040
- match: "\\bstatic\\b",
3041
- name: "keyword.token.static.d"
3042
- },
3043
- {
3044
- match: "\\bstruct\\b",
3045
- name: "keyword.token.struct.d"
3046
- },
3047
- {
3048
- match: "\\bsuper\\b",
3049
- name: "keyword.token.super.d"
3050
- },
3051
- {
3052
- match: "\\bswitch\\b",
3053
- name: "keyword.token.switch.d"
3054
- },
3055
- {
3056
- match: "\\bsynchronized\\b",
3057
- name: "keyword.token.synchronized.d"
3058
- },
3059
- {
3060
- match: "\\btemplate\\b",
3061
- name: "keyword.token.template.d"
3062
- },
3063
- {
3064
- match: "\\bthis\\b",
3065
- name: "keyword.token.this.d"
3066
- },
3067
- {
3068
- match: "\\bthrow\\b",
3069
- name: "keyword.token.throw.d"
3070
- },
3071
- {
3072
- match: "\\btrue\\b",
3073
- name: "constant.language.boolean.true.d"
3074
- },
3075
- {
3076
- match: "\\btry\\b",
3077
- name: "keyword.token.try.d"
3078
- },
3079
- {
3080
- match: "\\btypedef\\b",
3081
- name: "keyword.token.typedef.d"
3082
- },
3083
- {
3084
- match: "\\btypeid\\b",
3085
- name: "keyword.token.typeid.d"
3086
- },
3087
- {
3088
- match: "\\btypeof\\b",
3089
- name: "keyword.token.typeof.d"
3090
- },
3091
- {
3092
- match: "\\bubyte\\b",
3093
- name: "keyword.token.ubyte.d"
3094
- },
3095
- {
3096
- match: "\\bucent\\b",
3097
- name: "keyword.token.ucent.d"
3098
- },
3099
- {
3100
- match: "\\buint\\b",
3101
- name: "keyword.token.uint.d"
3102
- },
3103
- {
3104
- match: "\\bulong\\b",
3105
- name: "keyword.token.ulong.d"
3106
- },
3107
- {
3108
- match: "\\bunion\\b",
3109
- name: "keyword.token.union.d"
3110
- },
3111
- {
3112
- match: "\\bunittest\\b",
3113
- name: "keyword.token.unittest.d"
3114
- },
3115
- {
3116
- match: "\\bushort\\b",
3117
- name: "keyword.token.ushort.d"
3118
- },
3119
- {
3120
- match: "\\bversion\\b",
3121
- name: "keyword.token.version.d"
3122
- },
3123
- {
3124
- match: "\\bvoid\\b",
3125
- name: "keyword.token.void.d"
3126
- },
3127
- {
3128
- match: "\\bvolatile\\b",
3129
- name: "keyword.token.volatile.d"
3130
- },
3131
- {
3132
- match: "\\bwchar\\b",
3133
- name: "keyword.token.wchar.d"
3134
- },
3135
- {
3136
- match: "\\bwhile\\b",
3137
- name: "keyword.token.while.d"
3138
- },
3139
- {
3140
- match: "\\bwith\\b",
3141
- name: "keyword.token.with.d"
3142
- },
3143
- {
3144
- match: "\\b__FILE__\\b",
3145
- name: "keyword.token.__FILE__.d"
3146
- },
3147
- {
3148
- match: "\\b__MODULE__\\b",
3149
- name: "keyword.token.__MODULE__.d"
3150
- },
3151
- {
3152
- match: "\\b__LINE__\\b",
3153
- name: "keyword.token.__LINE__.d"
3154
- },
3155
- {
3156
- match: "\\b__FUNCTION__\\b",
3157
- name: "keyword.token.__FUNCTION__.d"
3158
- },
3159
- {
3160
- match: "\\b__PRETTY_FUNCTION__\\b",
3161
- name: "keyword.token.__PRETTY_FUNCTION__.d"
3162
- },
3163
- {
3164
- match: "\\b__gshared\\b",
3165
- name: "keyword.token.__gshared.d"
3166
- },
3167
- {
3168
- match: "\\b__traits\\b",
3169
- name: "keyword.token.__traits.d"
3170
- },
3171
- {
3172
- match: "\\b__vector\\b",
3173
- name: "keyword.token.__vector.d"
3174
- },
3175
- {
3176
- match: "\\b__parameters\\b",
3177
- name: "keyword.token.__parameters.d"
3178
- }
3179
- ]
3180
- },
3181
- "special-token-sequence": {
3182
- patterns: [
3183
- {
3184
- match: "#\\s*line.*",
3185
- name: "gfm.markup.italic.special-token-sequence.d"
3186
- }
3187
- ]
3188
- },
3189
- "special-tokens": {
3190
- patterns: [
3191
- {
3192
- match: "\\b(__DATE__|__TIME__|__TIMESTAMP__|__VENDOR__|__VERSION__)\\b",
3193
- name: "gfm.markup.raw.special-tokens.d"
3194
- }
3195
- ]
3196
- }
3197
- };
3198
- var information_for_contributors = [
3199
- "This file has been converted from https://github.com/Pure-D/code-d/blob/master/",
3200
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
3201
- "Once accepted there, we are happy to receive an update request."
3202
- ];
3203
- var d = {
3204
- fileTypes: fileTypes,
3205
- name: name,
3206
- scopeName: scopeName,
3207
- patterns: patterns,
3208
- repository: repository,
3209
- information_for_contributors: information_for_contributors
3210
- };
3211
-
3212
- export { d as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };