shiki 1.19.0 → 1.21.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 (370) hide show
  1. package/dist/bundle-full.d.mts +0 -1
  2. package/dist/bundle-full.mjs +5 -5
  3. package/dist/bundle-web.d.mts +1 -2
  4. package/dist/bundle-web.mjs +6 -29
  5. package/dist/core-unwasm.d.mts +0 -3
  6. package/dist/core.d.mts +3 -2
  7. package/dist/core.mjs +0 -1
  8. package/dist/index.d.mts +4 -3
  9. package/dist/index.mjs +4 -3
  10. package/dist/langs/abap.mjs +4 -5
  11. package/dist/langs/actionscript-3.mjs +4 -5
  12. package/dist/langs/ada.mjs +4 -5
  13. package/dist/langs/adoc.mjs +2 -46
  14. package/dist/langs/angular-expression.mjs +4 -5
  15. package/dist/langs/angular-html.mjs +9 -12
  16. package/dist/langs/angular-inline-style.mjs +5 -7
  17. package/dist/langs/angular-inline-template.mjs +6 -13
  18. package/dist/langs/angular-let-declaration.mjs +5 -6
  19. package/dist/langs/angular-template-blocks.mjs +6 -7
  20. package/dist/langs/angular-template.mjs +5 -6
  21. package/dist/langs/angular-ts.mjs +10 -16
  22. package/dist/langs/apache.mjs +4 -5
  23. package/dist/langs/apex.mjs +4 -5
  24. package/dist/langs/apl.mjs +9 -11
  25. package/dist/langs/applescript.mjs +4 -5
  26. package/dist/langs/ara.mjs +4 -5
  27. package/dist/langs/asciidoc.mjs +3 -91
  28. package/dist/langs/asm.mjs +4 -5
  29. package/dist/langs/astro.mjs +9 -20
  30. package/dist/langs/awk.mjs +4 -5
  31. package/dist/langs/ballerina.mjs +4 -5
  32. package/dist/langs/bash.mjs +2 -1
  33. package/dist/langs/bat.mjs +4 -5
  34. package/dist/langs/batch.mjs +2 -1
  35. package/dist/langs/be.mjs +2 -1
  36. package/dist/langs/beancount.mjs +4 -5
  37. package/dist/langs/berry.mjs +4 -5
  38. package/dist/langs/bibtex.mjs +4 -5
  39. package/dist/langs/bicep.mjs +4 -5
  40. package/dist/langs/blade.mjs +10 -12
  41. package/dist/langs/c.mjs +4 -5
  42. package/dist/langs/cadence.mjs +4 -5
  43. package/dist/langs/cdc.mjs +2 -1
  44. package/dist/langs/clarity.mjs +4 -5
  45. package/dist/langs/clj.mjs +2 -1
  46. package/dist/langs/clojure.mjs +4 -5
  47. package/dist/langs/closure-templates.mjs +2 -4
  48. package/dist/langs/cmake.mjs +4 -5
  49. package/dist/langs/cmd.mjs +2 -1
  50. package/dist/langs/cobol.mjs +6 -9
  51. package/dist/langs/codeowners.mjs +4 -5
  52. package/dist/langs/codeql.mjs +4 -5
  53. package/dist/langs/coffee.mjs +5 -6
  54. package/dist/langs/coffeescript.mjs +2 -2
  55. package/dist/langs/common-lisp.mjs +4 -5
  56. package/dist/langs/console.mjs +2 -2
  57. package/dist/langs/coq.mjs +4 -5
  58. package/dist/langs/cpp-macro.mjs +7 -9
  59. package/dist/langs/cpp.mjs +8 -10
  60. package/dist/langs/cql.mjs +2 -1
  61. package/dist/langs/crystal.mjs +10 -11
  62. package/dist/langs/cs.mjs +2 -1
  63. package/dist/langs/csharp.mjs +4 -5
  64. package/dist/langs/css.mjs +4 -5
  65. package/dist/langs/csv.mjs +4 -5
  66. package/dist/langs/cue.mjs +4 -5
  67. package/dist/langs/cypher.mjs +4 -5
  68. package/dist/langs/d.mjs +4 -5
  69. package/dist/langs/dart.mjs +4 -5
  70. package/dist/langs/dax.mjs +4 -5
  71. package/dist/langs/desktop.mjs +4 -5
  72. package/dist/langs/diff.mjs +4 -5
  73. package/dist/langs/docker.mjs +4 -5
  74. package/dist/langs/dockerfile.mjs +2 -1
  75. package/dist/langs/dotenv.mjs +4 -5
  76. package/dist/langs/dream-maker.mjs +4 -5
  77. package/dist/langs/edge.mjs +7 -10
  78. package/dist/langs/elisp.mjs +2 -1
  79. package/dist/langs/elixir.mjs +5 -8
  80. package/dist/langs/elm.mjs +5 -7
  81. package/dist/langs/emacs-lisp.mjs +4 -5
  82. package/dist/langs/erb.mjs +6 -15
  83. package/dist/langs/erl.mjs +2 -1
  84. package/dist/langs/erlang.mjs +4 -5
  85. package/dist/langs/es-tag-css.mjs +7 -8
  86. package/dist/langs/es-tag-glsl.mjs +7 -9
  87. package/dist/langs/es-tag-html.mjs +7 -9
  88. package/dist/langs/es-tag-sql.mjs +6 -7
  89. package/dist/langs/es-tag-xml.mjs +5 -7
  90. package/dist/langs/f.mjs +2 -2
  91. package/dist/langs/f03.mjs +2 -1
  92. package/dist/langs/f08.mjs +2 -1
  93. package/dist/langs/f18.mjs +2 -1
  94. package/dist/langs/f77.mjs +2 -2
  95. package/dist/langs/f90.mjs +2 -1
  96. package/dist/langs/f95.mjs +2 -1
  97. package/dist/langs/fennel.mjs +4 -5
  98. package/dist/langs/fish.mjs +4 -5
  99. package/dist/langs/fluent.mjs +4 -5
  100. package/dist/langs/for.mjs +2 -2
  101. package/dist/langs/fortran-fixed-form.mjs +5 -6
  102. package/dist/langs/fortran-free-form.mjs +4 -5
  103. package/dist/langs/fs.mjs +2 -2
  104. package/dist/langs/fsharp.mjs +5 -6
  105. package/dist/langs/fsl.mjs +2 -1
  106. package/dist/langs/ftl.mjs +2 -1
  107. package/dist/langs/gdresource.mjs +6 -7
  108. package/dist/langs/gdscript.mjs +4 -5
  109. package/dist/langs/gdshader.mjs +4 -5
  110. package/dist/langs/genie.mjs +4 -5
  111. package/dist/langs/gherkin.mjs +4 -5
  112. package/dist/langs/git-commit.mjs +5 -6
  113. package/dist/langs/git-rebase.mjs +5 -6
  114. package/dist/langs/gjs.mjs +2 -5
  115. package/dist/langs/gleam.mjs +4 -5
  116. package/dist/langs/glimmer-js.mjs +8 -9
  117. package/dist/langs/glimmer-ts.mjs +8 -9
  118. package/dist/langs/glsl.mjs +5 -6
  119. package/dist/langs/gnuplot.mjs +4 -5
  120. package/dist/langs/go.mjs +4 -5
  121. package/dist/langs/gql.mjs +2 -5
  122. package/dist/langs/graphql.mjs +8 -9
  123. package/dist/langs/groovy.mjs +4 -5
  124. package/dist/langs/gts.mjs +2 -5
  125. package/dist/langs/hack.mjs +6 -9
  126. package/dist/langs/haml.mjs +6 -22
  127. package/dist/langs/handlebars.mjs +8 -9
  128. package/dist/langs/haskell.mjs +4 -5
  129. package/dist/langs/haxe.mjs +4 -5
  130. package/dist/langs/hbs.mjs +2 -5
  131. package/dist/langs/hcl.mjs +4 -5
  132. package/dist/langs/hjson.mjs +4 -5
  133. package/dist/langs/hlsl.mjs +4 -5
  134. package/dist/langs/hs.mjs +2 -1
  135. package/dist/langs/html-derivative.mjs +5 -8
  136. package/dist/langs/html.mjs +6 -7
  137. package/dist/langs/http.mjs +8 -14
  138. package/dist/langs/hxml.mjs +5 -6
  139. package/dist/langs/hy.mjs +4 -5
  140. package/dist/langs/imba.mjs +5 -6
  141. package/dist/langs/ini.mjs +4 -5
  142. package/dist/langs/jade.mjs +2 -8
  143. package/dist/langs/java.mjs +4 -5
  144. package/dist/langs/javascript.mjs +4 -5
  145. package/dist/langs/jinja-html.mjs +5 -8
  146. package/dist/langs/jinja.mjs +5 -9
  147. package/dist/langs/jison.mjs +5 -6
  148. package/dist/langs/jl.mjs +2 -10
  149. package/dist/langs/js.mjs +2 -1
  150. package/dist/langs/json.mjs +4 -5
  151. package/dist/langs/json5.mjs +4 -5
  152. package/dist/langs/jsonc.mjs +4 -5
  153. package/dist/langs/jsonl.mjs +4 -5
  154. package/dist/langs/jsonnet.mjs +4 -5
  155. package/dist/langs/jssm.mjs +4 -5
  156. package/dist/langs/jsx.mjs +4 -5
  157. package/dist/langs/julia.mjs +9 -14
  158. package/dist/langs/kotlin.mjs +4 -5
  159. package/dist/langs/kql.mjs +2 -1
  160. package/dist/langs/kt.mjs +2 -1
  161. package/dist/langs/kts.mjs +2 -1
  162. package/dist/langs/kusto.mjs +4 -5
  163. package/dist/langs/latex.mjs +5 -45
  164. package/dist/langs/lean.mjs +4 -5
  165. package/dist/langs/lean4.mjs +2 -1
  166. package/dist/langs/less.mjs +4 -5
  167. package/dist/langs/liquid.mjs +8 -9
  168. package/dist/langs/lisp.mjs +2 -1
  169. package/dist/langs/lit.mjs +2 -15
  170. package/dist/langs/log.mjs +4 -5
  171. package/dist/langs/logo.mjs +4 -5
  172. package/dist/langs/lua.mjs +5 -6
  173. package/dist/langs/luau.mjs +4 -5
  174. package/dist/langs/make.mjs +4 -5
  175. package/dist/langs/makefile.mjs +2 -1
  176. package/dist/langs/markdown-vue.mjs +4 -5
  177. package/dist/langs/markdown.mjs +4 -5
  178. package/dist/langs/marko.mjs +8 -9
  179. package/dist/langs/matlab.mjs +4 -5
  180. package/dist/langs/md.mjs +2 -1
  181. package/dist/langs/mdc.mjs +7 -11
  182. package/dist/langs/mdx.mjs +4 -5
  183. package/dist/langs/mediawiki.mjs +2 -58
  184. package/dist/langs/mermaid.mjs +4 -5
  185. package/dist/langs/mojo.mjs +4 -5
  186. package/dist/langs/move.mjs +4 -5
  187. package/dist/langs/nar.mjs +2 -1
  188. package/dist/langs/narrat.mjs +4 -5
  189. package/dist/langs/nextflow.mjs +4 -5
  190. package/dist/langs/nf.mjs +2 -1
  191. package/dist/langs/nginx.mjs +5 -7
  192. package/dist/langs/nim.mjs +11 -13
  193. package/dist/langs/nix.mjs +4 -5
  194. package/dist/langs/nu.mjs +2 -1
  195. package/dist/langs/nushell.mjs +4 -5
  196. package/dist/langs/objc.mjs +2 -1
  197. package/dist/langs/objective-c.mjs +4 -5
  198. package/dist/langs/objective-cpp.mjs +4 -5
  199. package/dist/langs/ocaml.mjs +4 -5
  200. package/dist/langs/pascal.mjs +4 -5
  201. package/dist/langs/perl.mjs +9 -11
  202. package/dist/langs/perl6.mjs +2 -1
  203. package/dist/langs/php.mjs +10 -12
  204. package/dist/langs/plsql.mjs +4 -5
  205. package/dist/langs/po.mjs +4 -5
  206. package/dist/langs/postcss.mjs +4 -5
  207. package/dist/langs/pot.mjs +2 -1
  208. package/dist/langs/potx.mjs +2 -1
  209. package/dist/langs/powerquery.mjs +4 -5
  210. package/dist/langs/powershell.mjs +4 -5
  211. package/dist/langs/prisma.mjs +4 -5
  212. package/dist/langs/prolog.mjs +4 -5
  213. package/dist/langs/properties.mjs +2 -1
  214. package/dist/langs/proto.mjs +4 -5
  215. package/dist/langs/protobuf.mjs +2 -1
  216. package/dist/langs/ps.mjs +2 -1
  217. package/dist/langs/ps1.mjs +2 -1
  218. package/dist/langs/pug.mjs +7 -16
  219. package/dist/langs/puppet.mjs +4 -5
  220. package/dist/langs/purescript.mjs +4 -5
  221. package/dist/langs/py.mjs +2 -1
  222. package/dist/langs/python.mjs +4 -5
  223. package/dist/langs/ql.mjs +2 -1
  224. package/dist/langs/qml.mjs +5 -6
  225. package/dist/langs/qmldir.mjs +4 -5
  226. package/dist/langs/qss.mjs +4 -5
  227. package/dist/langs/r.mjs +4 -5
  228. package/dist/langs/racket.mjs +4 -5
  229. package/dist/langs/raku.mjs +4 -5
  230. package/dist/langs/razor.mjs +6 -9
  231. package/dist/langs/rb.mjs +2 -10
  232. package/dist/langs/reg.mjs +4 -5
  233. package/dist/langs/regex.mjs +2 -1
  234. package/dist/langs/regexp.mjs +4 -5
  235. package/dist/langs/rel.mjs +4 -5
  236. package/dist/langs/riscv.mjs +4 -5
  237. package/dist/langs/rs.mjs +2 -1
  238. package/dist/langs/rst.mjs +12 -23
  239. package/dist/langs/ruby.mjs +12 -14
  240. package/dist/langs/rust.mjs +4 -5
  241. package/dist/langs/sas.mjs +5 -6
  242. package/dist/langs/sass.mjs +4 -5
  243. package/dist/langs/scala.mjs +4 -5
  244. package/dist/langs/scheme.mjs +4 -5
  245. package/dist/langs/scss.mjs +5 -6
  246. package/dist/langs/sh.mjs +2 -1
  247. package/dist/langs/shader.mjs +2 -2
  248. package/dist/langs/shaderlab.mjs +5 -6
  249. package/dist/langs/shell.mjs +2 -1
  250. package/dist/langs/shellscript.mjs +4 -5
  251. package/dist/langs/shellsession.mjs +5 -6
  252. package/dist/langs/smalltalk.mjs +4 -5
  253. package/dist/langs/solidity.mjs +4 -5
  254. package/dist/langs/soy.mjs +5 -8
  255. package/dist/langs/sparql.mjs +5 -6
  256. package/dist/langs/spl.mjs +2 -1
  257. package/dist/langs/splunk.mjs +4 -5
  258. package/dist/langs/sql.mjs +4 -5
  259. package/dist/langs/ssh-config.mjs +4 -5
  260. package/dist/langs/stata.mjs +5 -6
  261. package/dist/langs/styl.mjs +2 -1
  262. package/dist/langs/stylus.mjs +4 -5
  263. package/dist/langs/svelte.mjs +8 -24
  264. package/dist/langs/swift.mjs +4 -5
  265. package/dist/langs/system-verilog.mjs +4 -5
  266. package/dist/langs/systemd.mjs +4 -5
  267. package/dist/langs/tasl.mjs +4 -5
  268. package/dist/langs/tcl.mjs +4 -5
  269. package/dist/langs/templ.mjs +7 -8
  270. package/dist/langs/terraform.mjs +4 -5
  271. package/dist/langs/tex.mjs +5 -6
  272. package/dist/langs/tf.mjs +2 -1
  273. package/dist/langs/tfvars.mjs +2 -1
  274. package/dist/langs/toml.mjs +4 -5
  275. package/dist/langs/ts-tags.mjs +10 -19
  276. package/dist/langs/ts.mjs +2 -1
  277. package/dist/langs/tsp.mjs +2 -1
  278. package/dist/langs/tsv.mjs +4 -5
  279. package/dist/langs/tsx.mjs +4 -5
  280. package/dist/langs/turtle.mjs +4 -5
  281. package/dist/langs/twig.mjs +10 -19
  282. package/dist/langs/typ.mjs +2 -1
  283. package/dist/langs/typescript.mjs +4 -5
  284. package/dist/langs/typespec.mjs +4 -5
  285. package/dist/langs/typst.mjs +4 -5
  286. package/dist/langs/v.mjs +4 -5
  287. package/dist/langs/vala.mjs +4 -5
  288. package/dist/langs/vb.mjs +4 -5
  289. package/dist/langs/verilog.mjs +4 -5
  290. package/dist/langs/vhdl.mjs +4 -5
  291. package/dist/langs/vim.mjs +2 -1
  292. package/dist/langs/viml.mjs +4 -5
  293. package/dist/langs/vimscript.mjs +2 -1
  294. package/dist/langs/vue-directives.mjs +4 -5
  295. package/dist/langs/vue-html.mjs +6 -30
  296. package/dist/langs/vue-interpolations.mjs +4 -5
  297. package/dist/langs/vue-sfc-style-variable-injection.mjs +5 -6
  298. package/dist/langs/vue.mjs +14 -43
  299. package/dist/langs/vy.mjs +2 -1
  300. package/dist/langs/vyper.mjs +4 -5
  301. package/dist/langs/wasm.mjs +4 -5
  302. package/dist/langs/wenyan.mjs +4 -5
  303. package/dist/langs/wgsl.mjs +4 -5
  304. package/dist/langs/wiki.mjs +2 -58
  305. package/dist/langs/wikitext.mjs +3 -111
  306. package/dist/langs/wl.mjs +2 -1
  307. package/dist/langs/wolfram.mjs +4 -5
  308. package/dist/langs/xml.mjs +5 -6
  309. package/dist/langs/xsl.mjs +5 -7
  310. package/dist/langs/yaml.mjs +4 -5
  311. package/dist/langs/yml.mjs +2 -1
  312. package/dist/langs/zenscript.mjs +4 -5
  313. package/dist/langs/zig.mjs +4 -5
  314. package/dist/langs/zsh.mjs +2 -1
  315. package/dist/theme-css-variables.d.mts +1 -37
  316. package/dist/theme-css-variables.mjs +3 -235
  317. package/dist/themes/andromeeda.mjs +2 -3
  318. package/dist/themes/aurora-x.mjs +2 -3
  319. package/dist/themes/ayu-dark.mjs +2 -3
  320. package/dist/themes/catppuccin-frappe.mjs +2 -3
  321. package/dist/themes/catppuccin-latte.mjs +2 -3
  322. package/dist/themes/catppuccin-macchiato.mjs +2 -3
  323. package/dist/themes/catppuccin-mocha.mjs +2 -3
  324. package/dist/themes/dark-plus.mjs +2 -3
  325. package/dist/themes/dracula-soft.mjs +2 -3
  326. package/dist/themes/dracula.mjs +2 -3
  327. package/dist/themes/everforest-dark.mjs +2 -3
  328. package/dist/themes/everforest-light.mjs +2 -3
  329. package/dist/themes/github-dark-default.mjs +2 -3
  330. package/dist/themes/github-dark-dimmed.mjs +2 -3
  331. package/dist/themes/github-dark-high-contrast.mjs +2 -3
  332. package/dist/themes/github-dark.mjs +2 -3
  333. package/dist/themes/github-light-default.mjs +2 -3
  334. package/dist/themes/github-light-high-contrast.mjs +2 -3
  335. package/dist/themes/github-light.mjs +2 -3
  336. package/dist/themes/houston.mjs +2 -3
  337. package/dist/themes/laserwave.mjs +2 -3
  338. package/dist/themes/light-plus.mjs +2 -3
  339. package/dist/themes/material-theme-darker.mjs +2 -3
  340. package/dist/themes/material-theme-lighter.mjs +2 -3
  341. package/dist/themes/material-theme-ocean.mjs +2 -3
  342. package/dist/themes/material-theme-palenight.mjs +2 -3
  343. package/dist/themes/material-theme.mjs +2 -3
  344. package/dist/themes/min-dark.mjs +2 -3
  345. package/dist/themes/min-light.mjs +2 -3
  346. package/dist/themes/monokai.mjs +2 -3
  347. package/dist/themes/night-owl.mjs +2 -3
  348. package/dist/themes/nord.mjs +2 -3
  349. package/dist/themes/one-dark-pro.mjs +2 -3
  350. package/dist/themes/one-light.mjs +2 -3
  351. package/dist/themes/plastic.mjs +2 -3
  352. package/dist/themes/poimandres.mjs +2 -3
  353. package/dist/themes/red.mjs +2 -3
  354. package/dist/themes/rose-pine-dawn.mjs +2 -3
  355. package/dist/themes/rose-pine-moon.mjs +2 -3
  356. package/dist/themes/rose-pine.mjs +2 -3
  357. package/dist/themes/slack-dark.mjs +2 -3
  358. package/dist/themes/slack-ochin.mjs +2 -3
  359. package/dist/themes/snazzy-light.mjs +2 -3
  360. package/dist/themes/solarized-dark.mjs +2 -3
  361. package/dist/themes/solarized-light.mjs +2 -3
  362. package/dist/themes/synthwave-84.mjs +2 -3
  363. package/dist/themes/tokyo-night.mjs +2 -3
  364. package/dist/themes/vesper.mjs +2 -3
  365. package/dist/themes/vitesse-black.mjs +2 -3
  366. package/dist/themes/vitesse-dark.mjs +2 -3
  367. package/dist/themes/vitesse-light.mjs +2 -3
  368. package/dist/types/wasm-dynamic.d.mts +3 -0
  369. package/dist/{chunks/wasm-dynamic.mjs → wasm-dynamic-K7LwWlz7.js} +3 -0
  370. package/package.json +8 -7
@@ -6,7 +6,6 @@ import { BundledLanguage } from './langs.mjs';
6
6
  export { bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
7
7
  import { BundledTheme } from './themes.mjs';
8
8
  export { bundledThemes, bundledThemesInfo } from './themes.mjs';
9
- export { CssVariablesThemeOptions, createCssVariablesTheme } from './theme-css-variables.mjs';
10
9
  export * from '@shikijs/core';
11
10
  import '@shikijs/core/types';
12
11
 
@@ -1,16 +1,16 @@
1
1
  import { bundledLanguages } from './langs.mjs';
2
2
  export { bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
3
- import { g as getWasmInlined } from './chunks/wasm-dynamic.mjs';
4
3
  import { bundledThemes } from './themes.mjs';
5
4
  export { bundledThemesInfo } from './themes.mjs';
6
- import { createdBundledHighlighter, createWasmOnigEngine, createSingletonShorthands, warnDeprecated } from '@shikijs/core';
5
+ export { g as getWasmInlined } from './wasm-dynamic-K7LwWlz7.js';
6
+ import { createdBundledHighlighter, createSingletonShorthands, warnDeprecated } from '@shikijs/core';
7
7
  export * from '@shikijs/core';
8
- export { createCssVariablesTheme } from './theme-css-variables.mjs';
8
+ import { createOnigurumaEngine } from '@shikijs/engine-oniguruma';
9
9
 
10
10
  const createHighlighter = /* @__PURE__ */ createdBundledHighlighter({
11
11
  langs: bundledLanguages,
12
12
  themes: bundledThemes,
13
- engine: () => createWasmOnigEngine(getWasmInlined)
13
+ engine: () => createOnigurumaEngine(import('shiki/wasm'))
14
14
  });
15
15
  const {
16
16
  codeToHtml,
@@ -28,4 +28,4 @@ const getHighlighter = (options) => {
28
28
  return createHighlighter(options);
29
29
  };
30
30
 
31
- export { bundledLanguages, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getLastGrammarState, getSingletonHighlighter, getWasmInlined };
31
+ export { bundledLanguages, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getLastGrammarState, getSingletonHighlighter };
@@ -6,7 +6,6 @@ import { BundledLanguageInfo, DynamicImportLanguageRegistration } from '@shikijs
6
6
  export * from '@shikijs/core';
7
7
  import { BundledTheme } from './themes.mjs';
8
8
  export { bundledThemes, bundledThemesInfo } from './themes.mjs';
9
- export { CssVariablesThemeOptions, createCssVariablesTheme } from './theme-css-variables.mjs';
10
9
  import '@shikijs/core/types';
11
10
 
12
11
  declare const bundledLanguagesInfo: BundledLanguageInfo[];
@@ -16,7 +15,7 @@ declare const bundledLanguagesBase: {
16
15
  declare const bundledLanguagesAlias: {
17
16
  [k: string]: DynamicImportLanguageRegistration;
18
17
  };
19
- type BundledLanguage = 'angular-html' | 'angular-ts' | 'astro' | 'bash' | 'blade' | 'c' | 'c++' | 'coffee' | 'coffeescript' | 'cpp' | 'css' | 'glsl' | 'gql' | 'graphql' | 'haml' | 'handlebars' | 'hbs' | 'html' | 'html-derivative' | 'http' | 'imba' | 'jade' | 'java' | 'javascript' | 'jinja' | 'jison' | 'jl' | 'js' | 'json' | 'json5' | 'jsonc' | 'jsonl' | 'jsx' | 'julia' | 'less' | 'lit' | 'lua' | 'markdown' | 'marko' | 'md' | 'mdc' | 'mdx' | 'php' | 'postcss' | 'pug' | 'py' | 'python' | 'r' | 'rb' | 'regex' | 'regexp' | 'ruby' | 'sass' | 'scss' | 'sh' | 'shell' | 'shellscript' | 'sql' | 'styl' | 'stylus' | 'svelte' | 'toml' | 'ts' | 'ts-tags' | 'tsx' | 'typescript' | 'vue' | 'vue-html' | 'wasm' | 'wgsl' | 'xml' | 'yaml' | 'yml' | 'zsh';
18
+ type BundledLanguage = 'angular-html' | 'angular-ts' | 'astro' | 'bash' | 'blade' | 'c' | 'c++' | 'coffee' | 'coffeescript' | 'cpp' | 'css' | 'glsl' | 'gql' | 'graphql' | 'haml' | 'handlebars' | 'hbs' | 'html' | 'html-derivative' | 'http' | 'imba' | 'jade' | 'java' | 'javascript' | 'jinja' | 'jison' | 'jl' | 'js' | 'json' | 'jsonc' | 'jsonl' | 'jsx' | 'julia' | 'less' | 'lit' | 'markdown' | 'marko' | 'md' | 'mdc' | 'mdx' | 'php' | 'postcss' | 'pug' | 'py' | 'python' | 'r' | 'regex' | 'regexp' | 'sass' | 'scss' | 'sh' | 'shell' | 'shellscript' | 'sql' | 'styl' | 'stylus' | 'svelte' | 'ts' | 'ts-tags' | 'tsx' | 'typescript' | 'vue' | 'vue-html' | 'wasm' | 'wgsl' | 'xml' | 'yaml' | 'yml' | 'zsh';
20
19
  declare const bundledLanguages: Record<BundledLanguage, DynamicImportLanguageRegistration>;
21
20
 
22
21
  type Highlighter = HighlighterGeneric<BundledLanguage, BundledTheme>;
@@ -1,9 +1,9 @@
1
- import { g as getWasmInlined } from './chunks/wasm-dynamic.mjs';
2
- import { createdBundledHighlighter, createWasmOnigEngine, createSingletonShorthands, warnDeprecated } from '@shikijs/core';
3
- export * from '@shikijs/core';
4
1
  import { bundledThemes } from './themes.mjs';
5
2
  export { bundledThemesInfo } from './themes.mjs';
6
- export { createCssVariablesTheme } from './theme-css-variables.mjs';
3
+ export { g as getWasmInlined } from './wasm-dynamic-K7LwWlz7.js';
4
+ import { createdBundledHighlighter, createSingletonShorthands, warnDeprecated } from '@shikijs/core';
5
+ export * from '@shikijs/core';
6
+ import { createOnigurumaEngine } from '@shikijs/engine-oniguruma';
7
7
 
8
8
  const bundledLanguagesInfo = [
9
9
  {
@@ -126,11 +126,6 @@ const bundledLanguagesInfo = [
126
126
  "name": "JSON",
127
127
  "import": () => import('./langs/json.mjs')
128
128
  },
129
- {
130
- "id": "json5",
131
- "name": "JSON5",
132
- "import": () => import('./langs/json5.mjs')
133
- },
134
129
  {
135
130
  "id": "jsonc",
136
131
  "name": "JSON with Comments",
@@ -159,11 +154,6 @@ const bundledLanguagesInfo = [
159
154
  "name": "Less",
160
155
  "import": () => import('./langs/less.mjs')
161
156
  },
162
- {
163
- "id": "lua",
164
- "name": "Lua",
165
- "import": () => import('./langs/lua.mjs')
166
- },
167
157
  {
168
158
  "id": "markdown",
169
159
  "name": "Markdown",
@@ -226,14 +216,6 @@ const bundledLanguagesInfo = [
226
216
  ],
227
217
  "import": () => import('./langs/regexp.mjs')
228
218
  },
229
- {
230
- "id": "ruby",
231
- "name": "Ruby",
232
- "aliases": [
233
- "rb"
234
- ],
235
- "import": () => import('./langs/ruby.mjs')
236
- },
237
219
  {
238
220
  "id": "sass",
239
221
  "name": "Sass",
@@ -273,11 +255,6 @@ const bundledLanguagesInfo = [
273
255
  "name": "Svelte",
274
256
  "import": () => import('./langs/svelte.mjs')
275
257
  },
276
- {
277
- "id": "toml",
278
- "name": "TOML",
279
- "import": () => import('./langs/toml.mjs')
280
- },
281
258
  {
282
259
  "id": "ts-tags",
283
260
  "name": "TypeScript with Tags",
@@ -343,7 +320,7 @@ const bundledLanguages = {
343
320
  const createHighlighter = /* @__PURE__ */ createdBundledHighlighter({
344
321
  langs: bundledLanguages,
345
322
  themes: bundledThemes,
346
- engine: () => createWasmOnigEngine(getWasmInlined)
323
+ engine: () => createOnigurumaEngine(import('shiki/wasm'))
347
324
  });
348
325
  const {
349
326
  codeToHtml,
@@ -361,4 +338,4 @@ const getHighlighter = (options) => {
361
338
  return createHighlighter(options);
362
339
  };
363
340
 
364
- export { bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getLastGrammarState, getSingletonHighlighter, getWasmInlined };
341
+ export { bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getLastGrammarState, getSingletonHighlighter };
@@ -1,4 +1 @@
1
1
  export * from '@shikijs/core';
2
- import '@shikijs/engine-javascript';
3
- import '@shikijs/engine-oniguruma';
4
- import '@shikijs/vscode-textmate';
package/dist/core.d.mts CHANGED
@@ -1,3 +1,4 @@
1
- export { CssVariablesThemeOptions, createCssVariablesTheme } from './theme-css-variables.mjs';
2
1
  export * from '@shikijs/core';
3
- import '@shikijs/types';
2
+ import '@shikijs/engine-javascript';
3
+ import '@shikijs/engine-oniguruma';
4
+ import '@shikijs/vscode-textmate';
package/dist/core.mjs CHANGED
@@ -1,2 +1 @@
1
- export { createCssVariablesTheme } from './theme-css-variables.mjs';
2
1
  export * from '@shikijs/core';
package/dist/index.d.mts CHANGED
@@ -1,9 +1,10 @@
1
1
  export { Highlighter, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getLastGrammarState, getSingletonHighlighter } from './bundle-full.mjs';
2
2
  export { BuiltinLanguage, BuiltinTheme } from './types.mjs';
3
- export { BundledLanguage, bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
4
- export { CssVariablesThemeOptions, createCssVariablesTheme } from './theme-css-variables.mjs';
3
+ export { createJavaScriptRegexEngine, defaultJavaScriptRegexConstructor } from '@shikijs/engine-javascript';
4
+ export { createOnigurumaEngine, loadWasm } from '@shikijs/engine-oniguruma';
5
+ export { g as getWasmInlined } from './types/wasm-dynamic.mjs';
5
6
  export * from '@shikijs/core';
7
+ export { BundledLanguage, bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
6
8
  export { BundledTheme, bundledThemes, bundledThemesInfo } from './themes.mjs';
7
- export { g as getWasmInlined } from './types/wasm-dynamic.mjs';
8
9
  import '@shikijs/types';
9
10
  import '@shikijs/core/types';
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  export { codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getLastGrammarState, getSingletonHighlighter } from './bundle-full.mjs';
2
- export { bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
3
- export { createCssVariablesTheme } from './theme-css-variables.mjs';
2
+ export { createJavaScriptRegexEngine, defaultJavaScriptRegexConstructor } from '@shikijs/engine-javascript';
3
+ export { createOnigurumaEngine, loadWasm } from '@shikijs/engine-oniguruma';
4
+ export { g as getWasmInlined } from './wasm-dynamic-K7LwWlz7.js';
4
5
  export * from '@shikijs/core';
6
+ export { bundledLanguages, bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
5
7
  export { bundledThemes, bundledThemesInfo } from './themes.mjs';
6
- export { g as getWasmInlined } from './chunks/wasm-dynamic.mjs';
@@ -1,6 +1,5 @@
1
- const lang = Object.freeze(JSON.parse('{"displayName":"ABAP","fileTypes":["abap","ABAP"],"foldingStartMarker":"/\\\\*\\\\*|\\\\{\\\\s*$","foldingStopMarker":"\\\\*\\\\*/|^\\\\s*\\\\}","name":"abap","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"^\\\\*.*\\\\n?","name":"comment.line.full.abap"},{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"\\".*\\\\n?","name":"comment.line.partial.abap"},{"match":"(?<![^\\\\s])##.*?(?=([\\\\.:,\\\\s]))","name":"comment.line.pragma.abap"},{"match":"(?i)(?<=(?:\\\\s|~|-))(?<=(?:->|=>))([a-z_\\\\/][a-z_0-9\\\\/]*)(?=\\\\s+(?:=|\\\\+=|-=|\\\\*=|\\\\/=|&&=|&=)\\\\s+)","name":"variable.other.abap"},{"match":"\\\\b\\\\d+(\\\\b|\\\\.|,)","name":"constant.numeric.abap"},{"match":"(?i)(^|\\\\s+)((PUBLIC|PRIVATE|PROTECTED)\\\\sSECTION)(?=\\\\s+|:|\\\\.)","name":"storage.modifier.class.abap"},{"begin":"(?<!\\\\\\\\)(\\\\|)(.*?)","beginCaptures":{"1":{"name":"constant.character.escape.abap"}},"end":"(?<!\\\\\\\\)(\\\\||(\\\\\\\\\\\\\\\\\\\\|))","endCaptures":{"1":{"name":"constant.character.escape.abap"}},"name":"string.interpolated.abap","patterns":[{"match":"({ )|( })","name":"constant.character.escape"},{"match":"(?<={ ).*?(?= })","name":"variable.other.abap"},{"match":"\\\\\\\\\\\\|","name":"constant.character.escape.abap"}]},{"begin":"\'","end":"\'","name":"string.quoted.single.abap","patterns":[{"match":"\'\'","name":"constant.character.escape.abap"}]},{"begin":"`","end":"`","name":"string.quoted.single.abap","patterns":[{"match":"``","name":"constant.character.escape.abap"}]},{"begin":"(?i)^\\\\s*(class)\\\\s([a-z_\\\\/][a-z_0-9\\\\/]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.block.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","name":"meta.block.begin.implementation.abap","patterns":[{"match":"(?i)(^|\\\\s+)(definition|implementation|public|inheriting\\\\s+from|final|deferred|abstract|shared\\\\s+memory\\\\s+enabled|(global|local)*\\\\s*friends|(create\\\\s+(public|protected|private))|for\\\\s+behavior\\\\s+of|for\\\\s+testing|risk\\\\s+level\\\\s+(critical|dangerous|harmless))|duration\\\\s(short|medium|long)(?=\\\\s+|\\\\.)","name":"storage.modifier.class.abap"},{"begin":"(?=[A-Za-z_][A-Za-z0-9_]*)","contentName":"entity.name.type.block.abap","end":"(?![A-Za-z0-9_])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(method)\\\\s(?:([a-z_\\\\/][a-z_0-9\\\\/]*)~)?([a-z_\\\\/][a-z_0-9\\\\/]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"},"3":{"name":"entity.name.function.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(BY\\\\s+DATABASE(\\\\s+PROCEDURE|\\\\s+FUNCTION|\\\\s+GRAPH\\\\s+WORKSPACE)|BY\\\\s+KERNEL\\\\s+MODULE)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=^|\\\\s)(FOR\\\\s+(HDB|LLANG))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=\\\\s)(OPTIONS\\\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\\\s+SYNTAX\\\\s+ERRORS))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=^|\\\\s)(LANGUAGE\\\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"captures":{"1":{"name":"storage.modifier.method.abap"}},"match":"(?i)(?<=\\\\s)(USING)\\\\s+([a-z_\\\\/][a-z_0-9\\\\/=>]*)+(?=\\\\s+|\\\\.)"},{"begin":"(?=[A-Za-z_][A-Za-z0-9_]*)","end":"(?![A-Za-z0-9_])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(INTERFACE)\\\\s([a-z_\\\\/][a-z_0-9\\\\/]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(DEFERRED|PUBLIC)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"}]},{"begin":"(?i)^\\\\s*(FORM)\\\\s([a-z_\\\\/][a-z_0-9\\\\/\\\\-?]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\\\s+|\\\\.)","name":"storage.modifier.form.abap"},{"include":"#abaptypes"},{"include":"#keywords_followed_by_braces"}]},{"match":"(?i)(endclass|endmethod|endform|endinterface)","name":"storage.type.block.end.abap"},{"match":"(?i)(<[A-Za-z_][A-Za-z0-9_]*>)","name":"variable.other.field.symbol.abap"},{"include":"#keywords"},{"include":"#abap_constants"},{"include":"#reserved_names"},{"include":"#operators"},{"include":"#builtin_functions"},{"include":"#abaptypes"},{"include":"#system_fields"},{"include":"#sql_functions"},{"include":"#sql_types"}],"repository":{"abap_constants":{"match":"(?i)(?<=\\\\s)(initial|null|space|abap_true|abap_false|abap_undefined|table_line|%_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|adabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=\\\\s|\\\\.|,)","name":"constant.language.abap"},"abaptypes":{"patterns":[{"match":"(?i)\\\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|c|n|i|p|f|d|t|x)(?=\\\\s|\\\\.|,)","name":"support.type.abap"},{"match":"(?i)\\\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\\\s|\\\\.|,)","name":"keyword.control.simple.abap"}]},"arithmetic_operator":{"match":"(?i)(?<=\\\\s)(\\\\+|-|\\\\*|\\\\*\\\\*|\\\\/|%|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\\\s)","name":"keyword.control.simple.abap"},"builtin_functions":{"match":"(?i)(?<=\\\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\\\()","name":"entity.name.function.builtin.abap"},"comparison_operator":{"match":"(?i)(?<=\\\\s)(<|>|<=|>=|=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|o|z|m)(?=\\\\s)","name":"keyword.control.simple.abap"},"control_keywords":{"match":"(?i)(^|\\\\s)(at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=\\\\s|\\\\.|:)","name":"keyword.control.flow.abap"},"generic_names":{"match":"[A-Za-z_][A-Za-z0-9_]*"},"keywords":{"patterns":[{"include":"#main_keywords"},{"include":"#text_symbols"},{"include":"#control_keywords"},{"include":"#keywords_followed_by_braces"}]},"keywords_followed_by_braces":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"variable.other.abap"}},"match":"(?i)\\\\b(data|value|field-symbol|final|reference|resumable)\\\\((<?[a-z_\\\\/][a-z_0-9\\\\/]*>?)\\\\)"},"logical_operator":{"match":"(?i)(?<=\\\\s)(not|or|and)(?=\\\\s)","name":"keyword.control.simple.abap"},"main_keywords":{"match":"(?i)(?<=^|\\\\s)(abap-source|abstract|accept|accepting|access|according|action|activation|actual|add|add-corresponding|adjacent|alias|aliases|align|all|allocate|alpha|amdp|analysis|analyzer|append|appending|application|archive|area|arithmetic|as|ascending|assert|assign|assigned|assigning|association|asynchronous|at|attributes|authority|authority-check|authorization|auto|back|background|backward|badi|base|before|begin|behavior|between|binary|bit|blank|blanks|block|blocks|bound|boundaries|bounds|boxed|break|break-point|buffer|by|bypassing|byte|byte-order|call|calling|cast|casting|cds|center|centered|change|changing|channels|char-to-hex|character|check|checkbox|cid|circular|class|class-data|class-events|class-method|class-methods|class-pool|cleanup|clear|client|clients|clock|clone|close|cnt|code|collect|color|column|comment|comments|commit|common|communication|comparing|component|components|compression|compute|concatenate|cond|condense|condition|connection|constant|constants|context|contexts|control|controls|conv|conversion|convert|copy|corresponding|count|country|cover|create|currency|current|cursor|customer-function|data|database|datainfo|dataset|date|daylight|ddl|deallocate|decimals|declarations|deep|default|deferred|define|delete|deleting|demand|descending|describe|destination|detail|determine|dialog|did|directory|discarding|display|display-mode|distance|distinct|divide|divide-corresponding|dummy|duplicate|duplicates|duration|during|dynpro|edit|editor-call|empty|enabled|enabling|encoding|end|end-enhancement-section|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|endenhancement|endexec|endfunction|endian|ending|endmodule|endprovide|endselect|endwith|engineering|enhancement|enhancement-point|enhancement-section|enhancements|entities|entity|entries|entry|enum|environment|equiv|errors|escape|escaping|event|events|exact|except|exception|exception-table|exceptions|excluding|exec|execute|exists|exit|exit-command|expanding|explicit|exponent|export|exporting|extended|extension|extract|fail|failed|features|fetch|field|field-groups|field-symbols|fields|file|fill|filter|filters|final|find|first|first-line|fixed-point|flush|following|for|format|forward|found|frame|frames|free|from|full|function|function-pool|generate|get|giving|graph|group|groups|handle|handler|hashed|having|header|headers|heading|help-id|help-request|hide|hint|hold|hotspot|icon|id|identification|identifier|ignore|ignoring|immediately|implemented|implicit|import|importing|in|inactive|incl|include|includes|increment|index|index-line|indicators|infotypes|inheriting|init|initial|initialization|inner|input|insert|instance|instances|intensified|interface|interface-pool|interfaces|internal|intervals|into|inverse|inverted-date|is|iso|job|join|keep|keeping|kernel|key|keys|keywords|kind|language|last|late|layout|leading|leave|left|left-justified|leftplus|leftspace|legacy|length|let|level|levels|like|line|line-count|line-selection|line-size|linefeed|lines|link|list|list-processing|listbox|load|load-of-program|local|locale|lock|locks|log-point|logical|lower|mapped|mapping|margin|mark|mask|match|matchcode|maximum|members|memory|mesh|message|message-id|messages|messaging|method|methods|mode|modif|modifier|modify|module|move|move-corresponding|multiply|multiply-corresponding|name|nametab|native|nested|nesting|new|new-line|new-page|new-section|next|no|no-display|no-extension|no-gap|no-gaps|no-grouping|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unicode|non-unique|number|object|objects|objmgr|obligatory|occurence|occurences|occurrence|occurrences|occurs|of|offset|on|only|open|optional|option|options|order|others|out|outer|output|output-length|overflow|overlay|pack|package|pad|padding|page|parameter|parameter-table|parameters|part|partially|pcre|perform|performing|permissions|pf-status|places|pool|position|pragmas|preceeding|precompiled|preferred|preserving|primary|print|print-control|private|privileged|procedure|program|property|protected|provide|push|pushbutton|put|query|queue-only|queueonly|quickinfo|radiobutton|raising|range|ranges|read|read-only|receive|received|receiving|redefinition|reduce|ref|reference|refresh|regex|reject|renaming|replace|replacement|replacing|report|reported|request|requested|required|reserve|reset|resolution|respecting|response|restore|result|results|resumable|resume|retry|return|returning|right|right-justified|rightplus|rightspace|rollback|rows|rp-provide-from-last|run|sap|sap-spool|save|saving|scale_preserving|scale_preserving_scientific|scan|scientific|scientific_with_leading_zero|screen|scroll|scroll-boundary|scrolling|search|seconds|section|select|select-options|selection|selection-screen|selection-set|selection-sets|selection-table|selections|send|separate|separated|session|set|shared|shift|shortdump|shortdump-id|sign|sign_as_postfix|simple|simulation|single|size|skip|skipping|smart|some|sort|sortable|sorted|source|specified|split|spool|spots|sql|stable|stamp|standard|start-of-selection|starting|state|statement|statements|static|statics|statusinfo|step|step-loop|stop|structure|structures|style|subkey|submatches|submit|subroutine|subscreen|substring|subtract|subtract-corresponding|suffix|sum|summary|supplied|supply|suppress|switch|symbol|syntax-check|syntax-trace|system-call|system-exceptions|tab|tabbed|table|tables|tableview|tabstrip|target|task|tasks|test|test-injection|test-seam|testing|text|textpool|then|throw|time|times|timestamp|timezone|title|titlebar|to|tokens|top-lines|top-of-page|trace-file|trace-table|trailing|transaction|transfer|transformation|translate|transporting|trmac|truncate|truncation|type|type-pool|type-pools|types|uline|unassign|unbounded|under|unicode|union|unique|unit|unix|unpack|until|unwind|up|update|upper|user|user-command|using|utf-8|uuid|valid|validate|value|value-request|values|vary|varying|version|via|visible|wait|when|where|width|window|windows|with|with-heading|with-title|without|word|work|workspace|write|xml|xsd|yes|zero|zone)(?=\\\\s|\\\\.|:|,)","name":"keyword.control.simple.abap"},"operators":{"patterns":[{"include":"#other_operator"},{"include":"#arithmetic_operator"},{"include":"#comparison_operator"},{"include":"#logical_operator"}]},"other_operator":{"match":"(?<=\\\\s)(&&|&|\\\\?=|\\\\+=|-=|\\\\/=|\\\\*=|&&=|&=)(?=\\\\s)","name":"keyword.control.simple.abap"},"reserved_names":{"match":"(?i)(?<=\\\\s)(me|super)(?=\\\\s|\\\\.|,|->)","name":"constant.language.abap"},"sql_functions":{"match":"(?i)(?<=\\\\s)(abap_system_timezone|abap_user_timezone|abs|add_days|add_months|allow_precision_loss|as_geo_json|avg|bintohex|cast|ceil|coalesce|concat_with_space|concat|corr_spearman|corr|count|currency_conversion|datn_add_days|datn_add_months|datn_days_between|dats_add_days|dats_add_months|dats_days_between|dats_from_datn|dats_is_valid|dats_tims_to_tstmp|dats_to_datn|dayname|days_between|dense_rank|division|div|extract_day|extract_hour|extract_minute|extract_month|extract_second|extract_year|first_value|floor|grouping|hextobin|initcap|instr|is_valid|lag|last_value|lead|left|length|like_regexpr|locate_regexpr_after|locate_regexpr|locate|lower|lpad|ltrim|max|median|min|mod|monthname|ntile|occurrences_regexpr|over|product|rank|replace_regexpr|replace|rigth|round|row_number|rpad|rtrim|stddev|string_agg|substring_regexpr|substring|sum|tims_from_timn|tims_is_valid|tims_to_timn|to_blob|to_clob|tstmp_add_seconds|tstmp_current_utctimestamp|tstmp_is_valid|tstmp_seconds_between|tstmp_to_dats|tstmp_to_dst|tstmp_to_tims|tstmpl_from_utcl|tstmpl_to_utcl|unit_conversion|upper|utcl_add_seconds|utcl_current|utcl_seconds_between|uuid|var|weekday)(?=\\\\()","name":"entity.name.function.sql.abap"},"sql_types":{"match":"(?i)(?<=\\\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=\\\\s|\\\\(|\\\\))","name":"entity.name.type.sql.abap"},"system_fields":{"captures":{"1":{"name":"variable.language.abap"},"2":{"name":"variable.language.abap"}},"match":"(?i)\\\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar\\\\d|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\\\.|\\\\s)"},"text_symbols":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"constant.numeric.abap"}},"match":"(?i)(?<=^|\\\\s)(text)-([A-Z0-9]{1,3})(?=\\\\s|\\\\.|:|,)"}},"scopeName":"source.abap"}'));
2
- var abap = [
3
- lang
4
- ];
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"ABAP\",\"fileTypes\":[\"abap\",\"ABAP\"],\"foldingStartMarker\":\"/\\\\*\\\\*|\\\\{\\\\s*$\",\"foldingStopMarker\":\"\\\\*\\\\*/|^\\\\s*\\\\}\",\"name\":\"abap\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.abap\"}},\"match\":\"^\\\\*.*\\\\n?\",\"name\":\"comment.line.full.abap\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.abap\"}},\"match\":\"\\\".*\\\\n?\",\"name\":\"comment.line.partial.abap\"},{\"match\":\"(?<![^\\\\s])##.*?(?=([\\\\.:,\\\\s]))\",\"name\":\"comment.line.pragma.abap\"},{\"match\":\"(?i)(?<=(?:\\\\s|~|-))(?<=(?:->|=>))([a-z_\\\\/][a-z_0-9\\\\/]*)(?=\\\\s+(?:=|\\\\+=|-=|\\\\*=|\\\\/=|&&=|&=)\\\\s+)\",\"name\":\"variable.other.abap\"},{\"match\":\"\\\\b\\\\d+(\\\\b|\\\\.|,)\",\"name\":\"constant.numeric.abap\"},{\"match\":\"(?i)(^|\\\\s+)((PUBLIC|PRIVATE|PROTECTED)\\\\sSECTION)(?=\\\\s+|:|\\\\.)\",\"name\":\"storage.modifier.class.abap\"},{\"begin\":\"(?<!\\\\\\\\)(\\\\|)(.*?)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.character.escape.abap\"}},\"end\":\"(?<!\\\\\\\\)(\\\\||(\\\\\\\\\\\\\\\\\\\\|))\",\"endCaptures\":{\"1\":{\"name\":\"constant.character.escape.abap\"}},\"name\":\"string.interpolated.abap\",\"patterns\":[{\"match\":\"({ )|( })\",\"name\":\"constant.character.escape\"},{\"match\":\"(?<={ ).*?(?= })\",\"name\":\"variable.other.abap\"},{\"match\":\"\\\\\\\\\\\\|\",\"name\":\"constant.character.escape.abap\"}]},{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.abap\",\"patterns\":[{\"match\":\"''\",\"name\":\"constant.character.escape.abap\"}]},{\"begin\":\"`\",\"end\":\"`\",\"name\":\"string.quoted.single.abap\",\"patterns\":[{\"match\":\"``\",\"name\":\"constant.character.escape.abap\"}]},{\"begin\":\"(?i)^\\\\s*(class)\\\\s([a-z_\\\\/][a-z_0-9\\\\/]*)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.block.abap\"},\"2\":{\"name\":\"entity.name.type.block.abap\"}},\"end\":\"\\\\s*\\\\.\\\\s*\\\\n?\",\"name\":\"meta.block.begin.implementation.abap\",\"patterns\":[{\"match\":\"(?i)(^|\\\\s+)(definition|implementation|public|inheriting\\\\s+from|final|deferred|abstract|shared\\\\s+memory\\\\s+enabled|(global|local)*\\\\s*friends|(create\\\\s+(public|protected|private))|for\\\\s+behavior\\\\s+of|for\\\\s+testing|risk\\\\s+level\\\\s+(critical|dangerous|harmless))|duration\\\\s(short|medium|long)(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.class.abap\"},{\"begin\":\"(?=[A-Za-z_][A-Za-z0-9_]*)\",\"contentName\":\"entity.name.type.block.abap\",\"end\":\"(?![A-Za-z0-9_])\",\"patterns\":[{\"include\":\"#generic_names\"}]}]},{\"begin\":\"(?i)^\\\\s*(method)\\\\s(?:([a-z_\\\\/][a-z_0-9\\\\/]*)~)?([a-z_\\\\/][a-z_0-9\\\\/]*)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.block.abap\"},\"2\":{\"name\":\"entity.name.type.abap\"},\"3\":{\"name\":\"entity.name.function.abap\"}},\"end\":\"\\\\s*\\\\.\\\\s*\\\\n?\",\"patterns\":[{\"match\":\"(?i)(?<=^|\\\\s)(BY\\\\s+DATABASE(\\\\s+PROCEDURE|\\\\s+FUNCTION|\\\\s+GRAPH\\\\s+WORKSPACE)|BY\\\\s+KERNEL\\\\s+MODULE)(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.method.abap\"},{\"match\":\"(?i)(?<=^|\\\\s)(FOR\\\\s+(HDB|LLANG))(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.method.abap\"},{\"match\":\"(?i)(?<=\\\\s)(OPTIONS\\\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\\\s+SYNTAX\\\\s+ERRORS))(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.method.abap\"},{\"match\":\"(?i)(?<=^|\\\\s)(LANGUAGE\\\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.method.abap\"},{\"captures\":{\"1\":{\"name\":\"storage.modifier.method.abap\"}},\"match\":\"(?i)(?<=\\\\s)(USING)\\\\s+([a-z_\\\\/][a-z_0-9\\\\/=>]*)+(?=\\\\s+|\\\\.)\"},{\"begin\":\"(?=[A-Za-z_][A-Za-z0-9_]*)\",\"end\":\"(?![A-Za-z0-9_])\",\"patterns\":[{\"include\":\"#generic_names\"}]}]},{\"begin\":\"(?i)^\\\\s*(INTERFACE)\\\\s([a-z_\\\\/][a-z_0-9\\\\/]*)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.block.abap\"},\"2\":{\"name\":\"entity.name.type.abap\"}},\"end\":\"\\\\s*\\\\.\\\\s*\\\\n?\",\"patterns\":[{\"match\":\"(?i)(?<=^|\\\\s)(DEFERRED|PUBLIC)(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.method.abap\"}]},{\"begin\":\"(?i)^\\\\s*(FORM)\\\\s([a-z_\\\\/][a-z_0-9\\\\/\\\\-?]*)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.block.abap\"},\"2\":{\"name\":\"entity.name.type.abap\"}},\"end\":\"\\\\s*\\\\.\\\\s*\\\\n?\",\"patterns\":[{\"match\":\"(?i)(?<=^|\\\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\\\s+|\\\\.)\",\"name\":\"storage.modifier.form.abap\"},{\"include\":\"#abaptypes\"},{\"include\":\"#keywords_followed_by_braces\"}]},{\"match\":\"(?i)(endclass|endmethod|endform|endinterface)\",\"name\":\"storage.type.block.end.abap\"},{\"match\":\"(?i)(<[A-Za-z_][A-Za-z0-9_]*>)\",\"name\":\"variable.other.field.symbol.abap\"},{\"include\":\"#keywords\"},{\"include\":\"#abap_constants\"},{\"include\":\"#reserved_names\"},{\"include\":\"#operators\"},{\"include\":\"#builtin_functions\"},{\"include\":\"#abaptypes\"},{\"include\":\"#system_fields\"},{\"include\":\"#sql_functions\"},{\"include\":\"#sql_types\"}],\"repository\":{\"abap_constants\":{\"match\":\"(?i)(?<=\\\\s)(initial|null|space|abap_true|abap_false|abap_undefined|table_line|%_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|adabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=\\\\s|\\\\.|,)\",\"name\":\"constant.language.abap\"},\"abaptypes\":{\"patterns\":[{\"match\":\"(?i)\\\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|c|n|i|p|f|d|t|x)(?=\\\\s|\\\\.|,)\",\"name\":\"support.type.abap\"},{\"match\":\"(?i)\\\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\\\s|\\\\.|,)\",\"name\":\"keyword.control.simple.abap\"}]},\"arithmetic_operator\":{\"match\":\"(?i)(?<=\\\\s)(\\\\+|-|\\\\*|\\\\*\\\\*|\\\\/|%|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\\\s)\",\"name\":\"keyword.control.simple.abap\"},\"builtin_functions\":{\"match\":\"(?i)(?<=\\\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\\\()\",\"name\":\"entity.name.function.builtin.abap\"},\"comparison_operator\":{\"match\":\"(?i)(?<=\\\\s)(<|>|<=|>=|=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|o|z|m)(?=\\\\s)\",\"name\":\"keyword.control.simple.abap\"},\"control_keywords\":{\"match\":\"(?i)(^|\\\\s)(at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=\\\\s|\\\\.|:)\",\"name\":\"keyword.control.flow.abap\"},\"generic_names\":{\"match\":\"[A-Za-z_][A-Za-z0-9_]*\"},\"keywords\":{\"patterns\":[{\"include\":\"#main_keywords\"},{\"include\":\"#text_symbols\"},{\"include\":\"#control_keywords\"},{\"include\":\"#keywords_followed_by_braces\"}]},\"keywords_followed_by_braces\":{\"captures\":{\"1\":{\"name\":\"keyword.control.simple.abap\"},\"2\":{\"name\":\"variable.other.abap\"}},\"match\":\"(?i)\\\\b(data|value|field-symbol|final|reference|resumable)\\\\((<?[a-z_\\\\/][a-z_0-9\\\\/]*>?)\\\\)\"},\"logical_operator\":{\"match\":\"(?i)(?<=\\\\s)(not|or|and)(?=\\\\s)\",\"name\":\"keyword.control.simple.abap\"},\"main_keywords\":{\"match\":\"(?i)(?<=^|\\\\s)(abap-source|abstract|accept|accepting|access|according|action|activation|actual|add|add-corresponding|adjacent|alias|aliases|align|all|allocate|alpha|amdp|analysis|analyzer|append|appending|application|archive|area|arithmetic|as|ascending|assert|assign|assigned|assigning|association|asynchronous|at|attributes|authority|authority-check|authorization|auto|back|background|backward|badi|base|before|begin|behavior|between|binary|bit|blank|blanks|block|blocks|bound|boundaries|bounds|boxed|break|break-point|buffer|by|bypassing|byte|byte-order|call|calling|cast|casting|cds|center|centered|change|changing|channels|char-to-hex|character|check|checkbox|cid|circular|class|class-data|class-events|class-method|class-methods|class-pool|cleanup|clear|client|clients|clock|clone|close|cnt|code|collect|color|column|comment|comments|commit|common|communication|comparing|component|components|compression|compute|concatenate|cond|condense|condition|connection|constant|constants|context|contexts|control|controls|conv|conversion|convert|copy|corresponding|count|country|cover|create|currency|current|cursor|customer-function|data|database|datainfo|dataset|date|daylight|ddl|deallocate|decimals|declarations|deep|default|deferred|define|delete|deleting|demand|descending|describe|destination|detail|determine|dialog|did|directory|discarding|display|display-mode|distance|distinct|divide|divide-corresponding|dummy|duplicate|duplicates|duration|during|dynpro|edit|editor-call|empty|enabled|enabling|encoding|end|end-enhancement-section|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|endenhancement|endexec|endfunction|endian|ending|endmodule|endprovide|endselect|endwith|engineering|enhancement|enhancement-point|enhancement-section|enhancements|entities|entity|entries|entry|enum|environment|equiv|errors|escape|escaping|event|events|exact|except|exception|exception-table|exceptions|excluding|exec|execute|exists|exit|exit-command|expanding|explicit|exponent|export|exporting|extended|extension|extract|fail|failed|features|fetch|field|field-groups|field-symbols|fields|file|fill|filter|filters|final|find|first|first-line|fixed-point|flush|following|for|format|forward|found|frame|frames|free|from|full|function|function-pool|generate|get|giving|graph|group|groups|handle|handler|hashed|having|header|headers|heading|help-id|help-request|hide|hint|hold|hotspot|icon|id|identification|identifier|ignore|ignoring|immediately|implemented|implicit|import|importing|in|inactive|incl|include|includes|increment|index|index-line|indicators|infotypes|inheriting|init|initial|initialization|inner|input|insert|instance|instances|intensified|interface|interface-pool|interfaces|internal|intervals|into|inverse|inverted-date|is|iso|job|join|keep|keeping|kernel|key|keys|keywords|kind|language|last|late|layout|leading|leave|left|left-justified|leftplus|leftspace|legacy|length|let|level|levels|like|line|line-count|line-selection|line-size|linefeed|lines|link|list|list-processing|listbox|load|load-of-program|local|locale|lock|locks|log-point|logical|lower|mapped|mapping|margin|mark|mask|match|matchcode|maximum|members|memory|mesh|message|message-id|messages|messaging|method|methods|mode|modif|modifier|modify|module|move|move-corresponding|multiply|multiply-corresponding|name|nametab|native|nested|nesting|new|new-line|new-page|new-section|next|no|no-display|no-extension|no-gap|no-gaps|no-grouping|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unicode|non-unique|number|object|objects|objmgr|obligatory|occurence|occurences|occurrence|occurrences|occurs|of|offset|on|only|open|optional|option|options|order|others|out|outer|output|output-length|overflow|overlay|pack|package|pad|padding|page|parameter|parameter-table|parameters|part|partially|pcre|perform|performing|permissions|pf-status|places|pool|position|pragmas|preceeding|precompiled|preferred|preserving|primary|print|print-control|private|privileged|procedure|program|property|protected|provide|push|pushbutton|put|query|queue-only|queueonly|quickinfo|radiobutton|raising|range|ranges|read|read-only|receive|received|receiving|redefinition|reduce|ref|reference|refresh|regex|reject|renaming|replace|replacement|replacing|report|reported|request|requested|required|reserve|reset|resolution|respecting|response|restore|result|results|resumable|resume|retry|return|returning|right|right-justified|rightplus|rightspace|rollback|rows|rp-provide-from-last|run|sap|sap-spool|save|saving|scale_preserving|scale_preserving_scientific|scan|scientific|scientific_with_leading_zero|screen|scroll|scroll-boundary|scrolling|search|seconds|section|select|select-options|selection|selection-screen|selection-set|selection-sets|selection-table|selections|send|separate|separated|session|set|shared|shift|shortdump|shortdump-id|sign|sign_as_postfix|simple|simulation|single|size|skip|skipping|smart|some|sort|sortable|sorted|source|specified|split|spool|spots|sql|stable|stamp|standard|start-of-selection|starting|state|statement|statements|static|statics|statusinfo|step|step-loop|stop|structure|structures|style|subkey|submatches|submit|subroutine|subscreen|substring|subtract|subtract-corresponding|suffix|sum|summary|supplied|supply|suppress|switch|symbol|syntax-check|syntax-trace|system-call|system-exceptions|tab|tabbed|table|tables|tableview|tabstrip|target|task|tasks|test|test-injection|test-seam|testing|text|textpool|then|throw|time|times|timestamp|timezone|title|titlebar|to|tokens|top-lines|top-of-page|trace-file|trace-table|trailing|transaction|transfer|transformation|translate|transporting|trmac|truncate|truncation|type|type-pool|type-pools|types|uline|unassign|unbounded|under|unicode|union|unique|unit|unix|unpack|until|unwind|up|update|upper|user|user-command|using|utf-8|uuid|valid|validate|value|value-request|values|vary|varying|version|via|visible|wait|when|where|width|window|windows|with|with-heading|with-title|without|word|work|workspace|write|xml|xsd|yes|zero|zone)(?=\\\\s|\\\\.|:|,)\",\"name\":\"keyword.control.simple.abap\"},\"operators\":{\"patterns\":[{\"include\":\"#other_operator\"},{\"include\":\"#arithmetic_operator\"},{\"include\":\"#comparison_operator\"},{\"include\":\"#logical_operator\"}]},\"other_operator\":{\"match\":\"(?<=\\\\s)(&&|&|\\\\?=|\\\\+=|-=|\\\\/=|\\\\*=|&&=|&=)(?=\\\\s)\",\"name\":\"keyword.control.simple.abap\"},\"reserved_names\":{\"match\":\"(?i)(?<=\\\\s)(me|super)(?=\\\\s|\\\\.|,|->)\",\"name\":\"constant.language.abap\"},\"sql_functions\":{\"match\":\"(?i)(?<=\\\\s)(abap_system_timezone|abap_user_timezone|abs|add_days|add_months|allow_precision_loss|as_geo_json|avg|bintohex|cast|ceil|coalesce|concat_with_space|concat|corr_spearman|corr|count|currency_conversion|datn_add_days|datn_add_months|datn_days_between|dats_add_days|dats_add_months|dats_days_between|dats_from_datn|dats_is_valid|dats_tims_to_tstmp|dats_to_datn|dayname|days_between|dense_rank|division|div|extract_day|extract_hour|extract_minute|extract_month|extract_second|extract_year|first_value|floor|grouping|hextobin|initcap|instr|is_valid|lag|last_value|lead|left|length|like_regexpr|locate_regexpr_after|locate_regexpr|locate|lower|lpad|ltrim|max|median|min|mod|monthname|ntile|occurrences_regexpr|over|product|rank|replace_regexpr|replace|rigth|round|row_number|rpad|rtrim|stddev|string_agg|substring_regexpr|substring|sum|tims_from_timn|tims_is_valid|tims_to_timn|to_blob|to_clob|tstmp_add_seconds|tstmp_current_utctimestamp|tstmp_is_valid|tstmp_seconds_between|tstmp_to_dats|tstmp_to_dst|tstmp_to_tims|tstmpl_from_utcl|tstmpl_to_utcl|unit_conversion|upper|utcl_add_seconds|utcl_current|utcl_seconds_between|uuid|var|weekday)(?=\\\\()\",\"name\":\"entity.name.function.sql.abap\"},\"sql_types\":{\"match\":\"(?i)(?<=\\\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=\\\\s|\\\\(|\\\\))\",\"name\":\"entity.name.type.sql.abap\"},\"system_fields\":{\"captures\":{\"1\":{\"name\":\"variable.language.abap\"},\"2\":{\"name\":\"variable.language.abap\"}},\"match\":\"(?i)\\\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar\\\\d|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\\\.|\\\\s)\"},\"text_symbols\":{\"captures\":{\"1\":{\"name\":\"keyword.control.simple.abap\"},\"2\":{\"name\":\"constant.numeric.abap\"}},\"match\":\"(?i)(?<=^|\\\\s)(text)-([A-Z0-9]{1,3})(?=\\\\s|\\\\.|:|,)\"}},\"scopeName\":\"source.abap\"}"))
5
2
 
6
- export { abap as default };
3
+ export default [
4
+ lang
5
+ ]
@@ -1,6 +1,5 @@
1
- const lang = Object.freeze(JSON.parse(`{"displayName":"ActionScript","fileTypes":["as"],"name":"actionscript-3","patterns":[{"include":"#comments"},{"include":"#package"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"},{"include":"#import"},{"include":"#mxml"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"}],"repository":{"arithmetic_operators":{"match":"(\\\\+|-|/|%|(?<!:)\\\\*)","name":"keyword.operator.actionscript.3"},"array_access_operators":{"match":"(\\\\[|\\\\])","name":"keyword.operator.actionscript.3"},"class":{"begin":"(^|\\\\s+|;)(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(\\\\b(internal|public)\\\\b\\\\s+)?(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(?=\\\\bclass\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"}},"end":"\\\\}","name":"meta.class.actionscript.3","patterns":[{"include":"#class_declaration"},{"include":"#metadata"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_operators"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"},{"include":"#object_literal"}]},"class_declaration":{"begin":"\\\\b(class)\\\\b\\\\s+([\\\\.\\\\w]+|\\\\*)","beginCaptures":{"1":{"name":"storage.type.class.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#implements"},{"include":"#comments"}]},"code_block":{"begin":"\\\\{","end":"\\\\}","name":"meta.code_block.actionscript.3","patterns":[{"include":"#code_block"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"},{"include":"#import"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","end":"\\\\*/","name":"comment.block.documentation.actionscript.3","patterns":[{"match":"@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\\\b","name":"keyword.other.documentation.actionscript.3.asdoc"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.actionscript.3"},{"match":"//.*","name":"comment.line.actionscript.3"}]},"control_keywords":{"match":"\\\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\\\b","name":"keyword.control.actionscript.3"},"dynamic_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"match":"(?<=:)\\\\s*(\\\\*)"},"escapes":{"match":"\\\\\\\\(x\\\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.actionscript.3"},"extends":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(extends)\\\\b\\\\s+([\\\\.\\\\w]+)\\\\s*(?:,\\\\s*([\\\\.\\\\w]+))*\\\\s*","name":"meta.extends.actionscript.3"},"function_arguments":{"begin":"\\\\(","end":"\\\\)","name":"meta.function_arguments.actionscript.3","patterns":[{"include":"#parameters"},{"include":"#comments"}]},"functions":{"begin":"\\\\b(function)\\\\b(?:\\\\s+\\\\b(get|set)\\\\b\\\\s+)?\\\\s*([a-zA-Z0-9_$]+\\\\b)?","beginCaptures":{"1":{"name":"storage.type.function.actionscript.3"},"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"entity.name.function.actionscript.3"}},"end":"($|;|(?=\\\\{))","name":"meta.function.actionscript.3","patterns":[{"include":"#function_arguments"},{"include":"#return_type"},{"include":"#comments"}]},"guess_constant":{"captures":{"1":{"name":"constant.other.actionscript.3"}},"comment":"Following convention, let's guess that anything in all caps/digits (possible underscores) is a constant.","match":"\\\\b([A-Z$][A-Z0-9_]+)\\\\b"},"guess_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"comment":"Following convention, let's guess that any word starting with one or more capital letters (that contains at least some lower-case letters so that constants aren't detected) refers to a class/type. May be fully-qualified.","match":"\\\\b((?:[A-Za-z0-9_$]+\\\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_$]*)\\\\b"},"implements":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(implements)\\\\b\\\\s+([\\\\.\\\\w]+)\\\\s*(?:,\\\\s*([\\\\.\\\\w]+))*\\\\s*","name":"meta.implements.actionscript.3"},"import":{"captures":{"2":{"name":"keyword.control.import.actionscript.3"},"3":{"name":"support.type.actionscript.3"}},"match":"(^|\\\\s+|;)\\\\b(import)\\\\b\\\\s+([A-Za-z0-9$_\\\\.]+(?:\\\\.\\\\*)?)\\\\s*(?=;|$)","name":"meta.import.actionscript.3"},"interface":{"begin":"(^|\\\\s+|;)(\\\\b(internal|public)\\\\b\\\\s+)?(?=\\\\binterface\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"}},"end":"\\\\}","name":"meta.interface.actionscript.3","patterns":[{"include":"#interface_declaration"},{"include":"#metadata"},{"include":"#functions"},{"include":"#comments"}]},"interface_declaration":{"begin":"\\\\b(interface)\\\\b\\\\s+([\\\\.\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.interface.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#comments"}]},"language_constants":{"match":"\\\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\\\b","name":"constant.language.actionscript.3"},"language_variables":{"match":"\\\\b(super|this|arguments)\\\\b","name":"variable.language.actionscript.3"},"logical_operators":{"match":"(&|<|~|\\\\||>|\\\\^|!|\\\\?)","name":"keyword.operator.actionscript.3"},"metadata":{"begin":"\\\\[\\\\s*\\\\b(\\\\w+)\\\\b","beginCaptures":{"1":{"name":"keyword.other.actionscript.3"}},"end":"\\\\]","name":"meta.metadata_info.actionscript.3","patterns":[{"include":"#metadata_info"}]},"metadata_info":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"variable.parameter.actionscript.3"},"2":{"name":"keyword.operator.actionscript.3"}},"match":"(\\\\w+)\\\\s*(=)"}]},"method":{"begin":"(^|\\\\s+)((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?(?=\\\\bfunction\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"storage.modifier.actionscript.3"}},"end":"(?<=(;|\\\\}))","name":"meta.method.actionscript.3","patterns":[{"include":"#functions"},{"include":"#code_block"}]},"mxml":{"begin":"<!\\\\[CDATA\\\\[","end":"\\\\]\\\\]>","name":"meta.cdata.actionscript.3","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#metadata"},{"include":"#class"},{"include":"#namespace_declaration"},{"include":"#use_namespace"},{"include":"#class_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_keywords"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"}]},"namespace_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"storage.modifier.actionscript.3"}},"match":"((\\\\w+)\\\\s+)?(namespace)\\\\s+(?:[A-Za-z0-9_$]+)","name":"meta.namespace_declaration.actionscript.3"},"numbers":{"match":"\\\\b((0(x|X)[0-9a-fA-F]*)|((\\\\d+\\\\.?\\\\d*)|(\\\\.\\\\d+))((e|E)(\\\\+|-)?\\\\d+)?)(L|l|UL|ul|u|U|F|f)?\\\\b","name":"constant.numeric.actionscript.3"},"object_literal":{"begin":"\\\\{","end":"\\\\}","name":"meta.object_literal.actionscript.3","patterns":[{"include":"#object_literal"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#functions"}]},"other_keywords":{"match":"\\\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\\\b","name":"keyword.other.actionscript.3"},"other_operators":{"match":"(\\\\.|=)","name":"keyword.operator.actionscript.3"},"package":{"begin":"(^|\\\\s+)(package)\\\\b","beginCaptures":{"2":{"name":"keyword.other.actionscript.3"}},"end":"\\\\}","name":"meta.package.actionscript.3","patterns":[{"include":"#package_name"},{"include":"#variable_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#return_type"},{"include":"#import"},{"include":"#use_namespace"},{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#metadata"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"}]},"package_name":{"begin":"(?<=package)\\\\s+([\\\\w\\\\._]*)\\\\b","end":"\\\\{","name":"meta.package_name.actionscript.3"},"parameters":{"begin":"(\\\\.\\\\.\\\\.)?\\\\s*([A-Za-z_$][A-Za-z0-9_$]*)(?:\\\\s*(:)\\\\s*(?:(?:([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)(?:\\\\.<([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)>)?)|(\\\\*)))?(?:\\\\s*(=))?","beginCaptures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"variable.parameter.actionscript.3"},"3":{"name":"keyword.operator.actionscript.3"},"4":{"name":"support.type.actionscript.3"},"5":{"name":"support.type.actionscript.3"},"6":{"name":"support.type.actionscript.3"},"7":{"name":"keyword.operator.actionscript.3"}},"end":",|(?=\\\\))","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#comments"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#guess_type"},{"include":"#guess_constant"}]},"primitive_error_types":{"captures":{"1":{"name":"support.class.error.actionscript.3"}},"match":"\\\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\\\b"},"primitive_functions":{"captures":{"1":{"name":"support.function.actionscript.3"}},"match":"\\\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\\\s*\\\\()"},"primitive_types":{"captures":{"1":{"name":"support.class.builtin.actionscript.3"}},"match":"\\\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\\\*(?<=a))\\\\b"},"regexp":{"begin":"(?<=[=(:,\\\\[]|^|return|&&|\\\\|\\\\||!)\\\\s*(/)(?![/*+{}?])","end":"$|(/)[igm]*","name":"string.regex.actionscript.3","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.actionscript.3"},{"match":"\\\\[(\\\\\\\\\\\\]|[^\\\\]])*\\\\]","name":"constant.character.class.actionscript.3"}]},"return_type":{"captures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"support.type.actionscript.3"},"3":{"name":"support.type.actionscript.3"},"4":{"name":"support.type.actionscript.3"}},"match":"(:)\\\\s*(?:([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)(?:\\\\.<([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)>)?)|(\\\\*)"},"strings":{"patterns":[{"begin":"@\\"","end":"\\"","name":"string.quoted.verbatim.actionscript.3"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.actionscript.3","patterns":[{"include":"#escapes"}]},{"begin":"'","end":"'","name":"string.quoted.single.actionscript.3","patterns":[{"include":"#escapes"}]}]},"use_namespace":{"captures":{"2":{"name":"keyword.other.actionscript.3"},"3":{"name":"keyword.other.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"}},"match":"(^|\\\\s+|;)(use\\\\s+)?(namespace)\\\\s+(\\\\w+)\\\\s*(;|$)"},"variable_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"},"6":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"keyword.operator.actionscript.3"}},"match":"((static)\\\\s+)?((\\\\w+)\\\\s+)?((static)\\\\s+)?(const|var)\\\\s+(?:[A-Za-z0-9_$]+)(?:\\\\s*(:))?","name":"meta.variable_declaration.actionscript.3"},"vector_creation_operators":{"match":"(<|>)","name":"keyword.operator.actionscript.3"}},"scopeName":"source.actionscript.3"}`));
2
- var actionscript3 = [
3
- lang
4
- ];
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"ActionScript\",\"fileTypes\":[\"as\"],\"name\":\"actionscript-3\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#package\"},{\"include\":\"#class\"},{\"include\":\"#interface\"},{\"include\":\"#namespace_declaration\"},{\"include\":\"#import\"},{\"include\":\"#mxml\"},{\"include\":\"#strings\"},{\"include\":\"#regexp\"},{\"include\":\"#variable_declaration\"},{\"include\":\"#numbers\"},{\"include\":\"#primitive_types\"},{\"include\":\"#primitive_error_types\"},{\"include\":\"#dynamic_type\"},{\"include\":\"#primitive_functions\"},{\"include\":\"#language_constants\"},{\"include\":\"#language_variables\"},{\"include\":\"#guess_type\"},{\"include\":\"#guess_constant\"},{\"include\":\"#other_operators\"},{\"include\":\"#arithmetic_operators\"},{\"include\":\"#logical_operators\"},{\"include\":\"#array_access_operators\"},{\"include\":\"#vector_creation_operators\"},{\"include\":\"#control_keywords\"},{\"include\":\"#other_keywords\"},{\"include\":\"#use_namespace\"},{\"include\":\"#functions\"}],\"repository\":{\"arithmetic_operators\":{\"match\":\"(\\\\+|-|/|%|(?<!:)\\\\*)\",\"name\":\"keyword.operator.actionscript.3\"},\"array_access_operators\":{\"match\":\"(\\\\[|\\\\])\",\"name\":\"keyword.operator.actionscript.3\"},\"class\":{\"begin\":\"(^|\\\\s+|;)(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(\\\\b(internal|public)\\\\b\\\\s+)?(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(?=\\\\bclass\\\\b)\",\"beginCaptures\":{\"3\":{\"name\":\"storage.modifier.actionscript.3\"},\"5\":{\"name\":\"storage.modifier.actionscript.3\"},\"7\":{\"name\":\"storage.modifier.actionscript.3\"}},\"end\":\"\\\\}\",\"name\":\"meta.class.actionscript.3\",\"patterns\":[{\"include\":\"#class_declaration\"},{\"include\":\"#metadata\"},{\"include\":\"#method\"},{\"include\":\"#comments\"},{\"include\":\"#strings\"},{\"include\":\"#regexp\"},{\"include\":\"#numbers\"},{\"include\":\"#primitive_types\"},{\"include\":\"#primitive_error_types\"},{\"include\":\"#dynamic_type\"},{\"include\":\"#primitive_functions\"},{\"include\":\"#language_constants\"},{\"include\":\"#language_variables\"},{\"include\":\"#other_operators\"},{\"include\":\"#other_keywords\"},{\"include\":\"#use_namespace\"},{\"include\":\"#guess_type\"},{\"include\":\"#guess_constant\"},{\"include\":\"#arithmetic_operators\"},{\"include\":\"#array_access_operators\"},{\"include\":\"#vector_creation_operators\"},{\"include\":\"#variable_declaration\"},{\"include\":\"#object_literal\"}]},\"class_declaration\":{\"begin\":\"\\\\b(class)\\\\b\\\\s+([\\\\.\\\\w]+|\\\\*)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.actionscript.3\"},\"2\":{\"name\":\"entity.name.class.actionscript.3\"}},\"end\":\"\\\\{\",\"name\":\"meta.class_declaration.actionscript.3\",\"patterns\":[{\"include\":\"#extends\"},{\"include\":\"#implements\"},{\"include\":\"#comments\"}]},\"code_block\":{\"begin\":\"\\\\{\",\"end\":\"\\\\}\",\"name\":\"meta.code_block.actionscript.3\",\"patterns\":[{\"include\":\"#code_block\"},{\"include\":\"#comments\"},{\"include\":\"#strings\"},{\"include\":\"#regexp\"},{\"include\":\"#variable_declaration\"},{\"include\":\"#numbers\"},{\"include\":\"#primitive_types\"},{\"include\":\"#primitive_error_types\"},{\"include\":\"#dynamic_type\"},{\"include\":\"#primitive_functions\"},{\"include\":\"#language_constants\"},{\"include\":\"#language_variables\"},{\"include\":\"#guess_type\"},{\"include\":\"#guess_constant\"},{\"include\":\"#other_operators\"},{\"include\":\"#arithmetic_operators\"},{\"include\":\"#logical_operators\"},{\"include\":\"#array_access_operators\"},{\"include\":\"#vector_creation_operators\"},{\"include\":\"#control_keywords\"},{\"include\":\"#other_keywords\"},{\"include\":\"#use_namespace\"},{\"include\":\"#functions\"},{\"include\":\"#import\"}]},\"comments\":{\"patterns\":[{\"begin\":\"/\\\\*\\\\*(?!/)\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.actionscript.3\",\"patterns\":[{\"match\":\"@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\\\b\",\"name\":\"keyword.other.documentation.actionscript.3.asdoc\"}]},{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.actionscript.3\"},{\"match\":\"//.*\",\"name\":\"comment.line.actionscript.3\"}]},\"control_keywords\":{\"match\":\"\\\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\\\b\",\"name\":\"keyword.control.actionscript.3\"},\"dynamic_type\":{\"captures\":{\"1\":{\"name\":\"support.type.actionscript.3\"}},\"match\":\"(?<=:)\\\\s*(\\\\*)\"},\"escapes\":{\"match\":\"\\\\\\\\(x\\\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)\",\"name\":\"constant.character.escape.actionscript.3\"},\"extends\":{\"captures\":{\"1\":{\"name\":\"keyword.other.actionscript.3\"},\"2\":{\"name\":\"entity.other.inherited-class.actionscript.3\"},\"3\":{\"name\":\"entity.other.inherited-class.actionscript.3\"}},\"match\":\"\\\\b(extends)\\\\b\\\\s+([\\\\.\\\\w]+)\\\\s*(?:,\\\\s*([\\\\.\\\\w]+))*\\\\s*\",\"name\":\"meta.extends.actionscript.3\"},\"function_arguments\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.function_arguments.actionscript.3\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#comments\"}]},\"functions\":{\"begin\":\"\\\\b(function)\\\\b(?:\\\\s+\\\\b(get|set)\\\\b\\\\s+)?\\\\s*([a-zA-Z0-9_$]+\\\\b)?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.actionscript.3\"},\"2\":{\"name\":\"storage.modifier.actionscript.3\"},\"3\":{\"name\":\"entity.name.function.actionscript.3\"}},\"end\":\"($|;|(?=\\\\{))\",\"name\":\"meta.function.actionscript.3\",\"patterns\":[{\"include\":\"#function_arguments\"},{\"include\":\"#return_type\"},{\"include\":\"#comments\"}]},\"guess_constant\":{\"captures\":{\"1\":{\"name\":\"constant.other.actionscript.3\"}},\"comment\":\"Following convention, let's guess that anything in all caps/digits (possible underscores) is a constant.\",\"match\":\"\\\\b([A-Z$][A-Z0-9_]+)\\\\b\"},\"guess_type\":{\"captures\":{\"1\":{\"name\":\"support.type.actionscript.3\"}},\"comment\":\"Following convention, let's guess that any word starting with one or more capital letters (that contains at least some lower-case letters so that constants aren't detected) refers to a class/type. May be fully-qualified.\",\"match\":\"\\\\b((?:[A-Za-z0-9_$]+\\\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_$]*)\\\\b\"},\"implements\":{\"captures\":{\"1\":{\"name\":\"keyword.other.actionscript.3\"},\"2\":{\"name\":\"entity.other.inherited-class.actionscript.3\"},\"3\":{\"name\":\"entity.other.inherited-class.actionscript.3\"}},\"match\":\"\\\\b(implements)\\\\b\\\\s+([\\\\.\\\\w]+)\\\\s*(?:,\\\\s*([\\\\.\\\\w]+))*\\\\s*\",\"name\":\"meta.implements.actionscript.3\"},\"import\":{\"captures\":{\"2\":{\"name\":\"keyword.control.import.actionscript.3\"},\"3\":{\"name\":\"support.type.actionscript.3\"}},\"match\":\"(^|\\\\s+|;)\\\\b(import)\\\\b\\\\s+([A-Za-z0-9$_\\\\.]+(?:\\\\.\\\\*)?)\\\\s*(?=;|$)\",\"name\":\"meta.import.actionscript.3\"},\"interface\":{\"begin\":\"(^|\\\\s+|;)(\\\\b(internal|public)\\\\b\\\\s+)?(?=\\\\binterface\\\\b)\",\"beginCaptures\":{\"3\":{\"name\":\"storage.modifier.actionscript.3\"}},\"end\":\"\\\\}\",\"name\":\"meta.interface.actionscript.3\",\"patterns\":[{\"include\":\"#interface_declaration\"},{\"include\":\"#metadata\"},{\"include\":\"#functions\"},{\"include\":\"#comments\"}]},\"interface_declaration\":{\"begin\":\"\\\\b(interface)\\\\b\\\\s+([\\\\.\\\\w]+)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.interface.actionscript.3\"},\"2\":{\"name\":\"entity.name.class.actionscript.3\"}},\"end\":\"\\\\{\",\"name\":\"meta.class_declaration.actionscript.3\",\"patterns\":[{\"include\":\"#extends\"},{\"include\":\"#comments\"}]},\"language_constants\":{\"match\":\"\\\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\\\b\",\"name\":\"constant.language.actionscript.3\"},\"language_variables\":{\"match\":\"\\\\b(super|this|arguments)\\\\b\",\"name\":\"variable.language.actionscript.3\"},\"logical_operators\":{\"match\":\"(&|<|~|\\\\||>|\\\\^|!|\\\\?)\",\"name\":\"keyword.operator.actionscript.3\"},\"metadata\":{\"begin\":\"\\\\[\\\\s*\\\\b(\\\\w+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.actionscript.3\"}},\"end\":\"\\\\]\",\"name\":\"meta.metadata_info.actionscript.3\",\"patterns\":[{\"include\":\"#metadata_info\"}]},\"metadata_info\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"#strings\"},{\"captures\":{\"1\":{\"name\":\"variable.parameter.actionscript.3\"},\"2\":{\"name\":\"keyword.operator.actionscript.3\"}},\"match\":\"(\\\\w+)\\\\s*(=)\"}]},\"method\":{\"begin\":\"(^|\\\\s+)((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?(?=\\\\bfunction\\\\b)\",\"beginCaptures\":{\"3\":{\"name\":\"storage.modifier.actionscript.3\"},\"5\":{\"name\":\"storage.modifier.actionscript.3\"},\"7\":{\"name\":\"storage.modifier.actionscript.3\"},\"8\":{\"name\":\"storage.modifier.actionscript.3\"}},\"end\":\"(?<=(;|\\\\}))\",\"name\":\"meta.method.actionscript.3\",\"patterns\":[{\"include\":\"#functions\"},{\"include\":\"#code_block\"}]},\"mxml\":{\"begin\":\"<!\\\\[CDATA\\\\[\",\"end\":\"\\\\]\\\\]>\",\"name\":\"meta.cdata.actionscript.3\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#import\"},{\"include\":\"#metadata\"},{\"include\":\"#class\"},{\"include\":\"#namespace_declaration\"},{\"include\":\"#use_namespace\"},{\"include\":\"#class_declaration\"},{\"include\":\"#method\"},{\"include\":\"#comments\"},{\"include\":\"#strings\"},{\"include\":\"#regexp\"},{\"include\":\"#numbers\"},{\"include\":\"#primitive_types\"},{\"include\":\"#primitive_error_types\"},{\"include\":\"#dynamic_type\"},{\"include\":\"#primitive_functions\"},{\"include\":\"#language_constants\"},{\"include\":\"#language_variables\"},{\"include\":\"#other_keywords\"},{\"include\":\"#guess_type\"},{\"include\":\"#guess_constant\"},{\"include\":\"#other_operators\"},{\"include\":\"#arithmetic_operators\"},{\"include\":\"#array_access_operators\"},{\"include\":\"#vector_creation_operators\"},{\"include\":\"#variable_declaration\"}]},\"namespace_declaration\":{\"captures\":{\"2\":{\"name\":\"storage.modifier.actionscript.3\"},\"3\":{\"name\":\"storage.modifier.actionscript.3\"}},\"match\":\"((\\\\w+)\\\\s+)?(namespace)\\\\s+(?:[A-Za-z0-9_$]+)\",\"name\":\"meta.namespace_declaration.actionscript.3\"},\"numbers\":{\"match\":\"\\\\b((0(x|X)[0-9a-fA-F]*)|((\\\\d+\\\\.?\\\\d*)|(\\\\.\\\\d+))((e|E)(\\\\+|-)?\\\\d+)?)(L|l|UL|ul|u|U|F|f)?\\\\b\",\"name\":\"constant.numeric.actionscript.3\"},\"object_literal\":{\"begin\":\"\\\\{\",\"end\":\"\\\\}\",\"name\":\"meta.object_literal.actionscript.3\",\"patterns\":[{\"include\":\"#object_literal\"},{\"include\":\"#comments\"},{\"include\":\"#strings\"},{\"include\":\"#regexp\"},{\"include\":\"#numbers\"},{\"include\":\"#primitive_types\"},{\"include\":\"#primitive_error_types\"},{\"include\":\"#dynamic_type\"},{\"include\":\"#primitive_functions\"},{\"include\":\"#language_constants\"},{\"include\":\"#language_variables\"},{\"include\":\"#guess_type\"},{\"include\":\"#guess_constant\"},{\"include\":\"#array_access_operators\"},{\"include\":\"#vector_creation_operators\"},{\"include\":\"#functions\"}]},\"other_keywords\":{\"match\":\"\\\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\\\b\",\"name\":\"keyword.other.actionscript.3\"},\"other_operators\":{\"match\":\"(\\\\.|=)\",\"name\":\"keyword.operator.actionscript.3\"},\"package\":{\"begin\":\"(^|\\\\s+)(package)\\\\b\",\"beginCaptures\":{\"2\":{\"name\":\"keyword.other.actionscript.3\"}},\"end\":\"\\\\}\",\"name\":\"meta.package.actionscript.3\",\"patterns\":[{\"include\":\"#package_name\"},{\"include\":\"#variable_declaration\"},{\"include\":\"#method\"},{\"include\":\"#comments\"},{\"include\":\"#return_type\"},{\"include\":\"#import\"},{\"include\":\"#use_namespace\"},{\"include\":\"#strings\"},{\"include\":\"#numbers\"},{\"include\":\"#language_constants\"},{\"include\":\"#metadata\"},{\"include\":\"#class\"},{\"include\":\"#interface\"},{\"include\":\"#namespace_declaration\"}]},\"package_name\":{\"begin\":\"(?<=package)\\\\s+([\\\\w\\\\._]*)\\\\b\",\"end\":\"\\\\{\",\"name\":\"meta.package_name.actionscript.3\"},\"parameters\":{\"begin\":\"(\\\\.\\\\.\\\\.)?\\\\s*([A-Za-z_$][A-Za-z0-9_$]*)(?:\\\\s*(:)\\\\s*(?:(?:([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)(?:\\\\.<([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)>)?)|(\\\\*)))?(?:\\\\s*(=))?\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.actionscript.3\"},\"2\":{\"name\":\"variable.parameter.actionscript.3\"},\"3\":{\"name\":\"keyword.operator.actionscript.3\"},\"4\":{\"name\":\"support.type.actionscript.3\"},\"5\":{\"name\":\"support.type.actionscript.3\"},\"6\":{\"name\":\"support.type.actionscript.3\"},\"7\":{\"name\":\"keyword.operator.actionscript.3\"}},\"end\":\",|(?=\\\\))\",\"patterns\":[{\"include\":\"#strings\"},{\"include\":\"#numbers\"},{\"include\":\"#language_constants\"},{\"include\":\"#comments\"},{\"include\":\"#primitive_types\"},{\"include\":\"#primitive_error_types\"},{\"include\":\"#dynamic_type\"},{\"include\":\"#guess_type\"},{\"include\":\"#guess_constant\"}]},\"primitive_error_types\":{\"captures\":{\"1\":{\"name\":\"support.class.error.actionscript.3\"}},\"match\":\"\\\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\\\b\"},\"primitive_functions\":{\"captures\":{\"1\":{\"name\":\"support.function.actionscript.3\"}},\"match\":\"\\\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\\\s*\\\\()\"},\"primitive_types\":{\"captures\":{\"1\":{\"name\":\"support.class.builtin.actionscript.3\"}},\"match\":\"\\\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\\\*(?<=a))\\\\b\"},\"regexp\":{\"begin\":\"(?<=[=(:,\\\\[]|^|return|&&|\\\\|\\\\||!)\\\\s*(/)(?![/*+{}?])\",\"end\":\"$|(/)[igm]*\",\"name\":\"string.regex.actionscript.3\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.actionscript.3\"},{\"match\":\"\\\\[(\\\\\\\\\\\\]|[^\\\\]])*\\\\]\",\"name\":\"constant.character.class.actionscript.3\"}]},\"return_type\":{\"captures\":{\"1\":{\"name\":\"keyword.operator.actionscript.3\"},\"2\":{\"name\":\"support.type.actionscript.3\"},\"3\":{\"name\":\"support.type.actionscript.3\"},\"4\":{\"name\":\"support.type.actionscript.3\"}},\"match\":\"(:)\\\\s*(?:([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)(?:\\\\.<([A-Za-z$][A-Za-z0-9_$]+(?:\\\\.[A-Za-z$][A-Za-z0-9_$]+)*)>)?)|(\\\\*)\"},\"strings\":{\"patterns\":[{\"begin\":\"@\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.verbatim.actionscript.3\"},{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.actionscript.3\",\"patterns\":[{\"include\":\"#escapes\"}]},{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.actionscript.3\",\"patterns\":[{\"include\":\"#escapes\"}]}]},\"use_namespace\":{\"captures\":{\"2\":{\"name\":\"keyword.other.actionscript.3\"},\"3\":{\"name\":\"keyword.other.actionscript.3\"},\"4\":{\"name\":\"storage.modifier.actionscript.3\"}},\"match\":\"(^|\\\\s+|;)(use\\\\s+)?(namespace)\\\\s+(\\\\w+)\\\\s*(;|$)\"},\"variable_declaration\":{\"captures\":{\"2\":{\"name\":\"storage.modifier.actionscript.3\"},\"4\":{\"name\":\"storage.modifier.actionscript.3\"},\"6\":{\"name\":\"storage.modifier.actionscript.3\"},\"7\":{\"name\":\"storage.modifier.actionscript.3\"},\"8\":{\"name\":\"keyword.operator.actionscript.3\"}},\"match\":\"((static)\\\\s+)?((\\\\w+)\\\\s+)?((static)\\\\s+)?(const|var)\\\\s+(?:[A-Za-z0-9_$]+)(?:\\\\s*(:))?\",\"name\":\"meta.variable_declaration.actionscript.3\"},\"vector_creation_operators\":{\"match\":\"(<|>)\",\"name\":\"keyword.operator.actionscript.3\"}},\"scopeName\":\"source.actionscript.3\"}"))
5
2
 
6
- export { actionscript3 as default };
3
+ export default [
4
+ lang
5
+ ]