svelte-highlight 7.16.2 → 7.18.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 (378) hide show
  1. package/AnsiOutput.svelte +2 -135
  2. package/HighlightStream.svelte +226 -17
  3. package/HighlightStream.svelte.d.ts +25 -0
  4. package/HighlightVirtual.svelte +13 -20
  5. package/LICENSE.highlight.txt +1 -1
  6. package/README.md +42 -17
  7. package/Typewriter.svelte +79 -56
  8. package/Typewriter.svelte.d.ts +10 -1
  9. package/ansi-color.js +201 -0
  10. package/editable-dom-paint.js +4 -3
  11. package/engine.js +61 -43
  12. package/index.d.ts +12 -0
  13. package/index.js +12 -0
  14. package/languages/1c.js +1 -1
  15. package/languages/abnf.js +1 -1
  16. package/languages/accesslog.js +1 -1
  17. package/languages/actionscript.js +1 -1
  18. package/languages/ada.js +7 -6
  19. package/languages/all.js +8 -0
  20. package/languages/angelscript.js +1 -1
  21. package/languages/apache.js +1 -1
  22. package/languages/applescript.js +1 -1
  23. package/languages/arcade.js +1 -1
  24. package/languages/arduino.js +91 -67
  25. package/languages/armasm.js +1 -1
  26. package/languages/asciidoc.js +1 -1
  27. package/languages/aspectj.js +1 -1
  28. package/languages/autohotkey.js +1 -1
  29. package/languages/autoit.js +1 -1
  30. package/languages/avrasm.js +1 -1
  31. package/languages/awk.js +1 -1
  32. package/languages/axapta.js +1 -1
  33. package/languages/bash.js +1 -1
  34. package/languages/basic.js +1 -1
  35. package/languages/bnf.js +1 -1
  36. package/languages/brainfuck.js +1 -1
  37. package/languages/c.js +91 -66
  38. package/languages/cal.js +1 -1
  39. package/languages/capnproto.js +1 -1
  40. package/languages/ceylon.js +1 -1
  41. package/languages/clean.js +1 -1
  42. package/languages/clojure-repl.js +1 -1
  43. package/languages/clojure.js +1 -1
  44. package/languages/cmake.js +4 -2
  45. package/languages/coffeescript.js +1 -1
  46. package/languages/coq.js +1 -1
  47. package/languages/cos.js +1 -1
  48. package/languages/cpp.js +90 -65
  49. package/languages/cql.d.ts +2 -0
  50. package/languages/cql.js +203 -0
  51. package/languages/crmsh.js +1 -1
  52. package/languages/crystal.js +27 -34
  53. package/languages/csharp.js +4 -4
  54. package/languages/csp.js +8 -1
  55. package/languages/css.js +20 -13
  56. package/languages/d.js +1 -1
  57. package/languages/dart.js +18 -3
  58. package/languages/delphi.js +1 -1
  59. package/languages/diff.js +2 -2
  60. package/languages/django.js +1 -1
  61. package/languages/dns.js +71 -43
  62. package/languages/dockerfile.js +1 -1
  63. package/languages/dos.js +3 -3
  64. package/languages/dsconfig.js +1 -1
  65. package/languages/dts.js +1 -1
  66. package/languages/dust.js +1 -1
  67. package/languages/ebnf.js +1 -1
  68. package/languages/elixir.js +59 -50
  69. package/languages/elm.js +1 -1
  70. package/languages/erb.js +1 -1
  71. package/languages/erlang-repl.js +1 -1
  72. package/languages/erlang.js +1 -1
  73. package/languages/excel.js +1 -1
  74. package/languages/fix.js +1 -1
  75. package/languages/flix.js +1 -1
  76. package/languages/flux.d.ts +2 -0
  77. package/languages/flux.js +272 -0
  78. package/languages/fortran.js +1 -1
  79. package/languages/freedesktop.d.ts +2 -0
  80. package/languages/freedesktop.js +45 -0
  81. package/languages/fsharp.js +1 -1
  82. package/languages/gams.js +1 -1
  83. package/languages/gauss.js +1 -1
  84. package/languages/gcode.js +1 -1
  85. package/languages/gherkin.js +36 -38
  86. package/languages/glsl.js +1 -1
  87. package/languages/gml.js +1 -1
  88. package/languages/go.js +10 -3
  89. package/languages/golo.js +1 -1
  90. package/languages/gradle.js +1 -1
  91. package/languages/graphql.js +1 -1
  92. package/languages/groovy.js +60 -5
  93. package/languages/haml.js +1 -1
  94. package/languages/handlebars.js +1 -1
  95. package/languages/haskell.js +2 -1
  96. package/languages/haxe.js +1 -1
  97. package/languages/hsp.js +1 -1
  98. package/languages/http.js +1 -1
  99. package/languages/hy.js +1 -1
  100. package/languages/index.d.ts +8 -0
  101. package/languages/index.js +4 -0
  102. package/languages/inform7.js +1 -1
  103. package/languages/ini.js +1 -1
  104. package/languages/irpf90.js +1 -1
  105. package/languages/isbl.js +1 -1
  106. package/languages/java.js +28 -25
  107. package/languages/javascript.js +9 -3
  108. package/languages/jboss-cli.js +1 -1
  109. package/languages/json.js +12 -9
  110. package/languages/julia-repl.js +1 -1
  111. package/languages/julia.js +1 -1
  112. package/languages/kotlin.js +3 -3
  113. package/languages/lasso.js +1 -1
  114. package/languages/latex.js +1 -1
  115. package/languages/ldif.js +1 -1
  116. package/languages/leaf.js +7 -2
  117. package/languages/less.js +60 -45
  118. package/languages/lisp.js +7 -2
  119. package/languages/livecodeserver.js +1 -1
  120. package/languages/livescript.js +1 -1
  121. package/languages/llvm.js +18 -3
  122. package/languages/lsl.js +1 -1
  123. package/languages/lua.js +2 -1
  124. package/languages/makefile.js +1 -1
  125. package/languages/markdown.js +8 -4
  126. package/languages/mathematica.js +1 -1
  127. package/languages/matlab.js +1 -1
  128. package/languages/maxima.js +1 -1
  129. package/languages/mel.js +1 -1
  130. package/languages/mercury.js +1 -1
  131. package/languages/mipsasm.js +1 -1
  132. package/languages/mizar.js +1 -1
  133. package/languages/mojolicious.js +1 -1
  134. package/languages/monkey.js +1 -1
  135. package/languages/moonscript.js +1 -1
  136. package/languages/n1ql.js +1 -1
  137. package/languages/nestedtext.js +1 -1
  138. package/languages/nginx.js +1 -1
  139. package/languages/nim.js +1 -1
  140. package/languages/nix.js +1 -1
  141. package/languages/node-repl.js +1 -1
  142. package/languages/nsis.js +20 -5
  143. package/languages/objectivec.js +1 -1
  144. package/languages/ocaml.js +1 -1
  145. package/languages/openscad.js +1 -1
  146. package/languages/oxygene.js +1 -1
  147. package/languages/parser3.js +1 -1
  148. package/languages/perl.js +1 -1
  149. package/languages/pf.js +1 -1
  150. package/languages/pgsql.js +1 -1
  151. package/languages/php-template.js +1 -1
  152. package/languages/php.js +150 -24
  153. package/languages/plaintext.js +1 -1
  154. package/languages/pony.js +1 -1
  155. package/languages/powershell.js +1 -1
  156. package/languages/processing.js +1 -1
  157. package/languages/profile.js +1 -1
  158. package/languages/prolog.js +1 -1
  159. package/languages/properties.js +1 -1
  160. package/languages/protobuf.js +1 -1
  161. package/languages/prql.d.ts +2 -0
  162. package/languages/prql.js +160 -0
  163. package/languages/puppet.js +1 -1
  164. package/languages/purebasic.js +1 -1
  165. package/languages/python-repl.js +1 -1
  166. package/languages/python.js +31 -11
  167. package/languages/q.js +1 -1
  168. package/languages/qml.js +1 -1
  169. package/languages/r.js +1 -1
  170. package/languages/reasonml.js +1 -1
  171. package/languages/rib.js +1 -1
  172. package/languages/roboconf.js +1 -1
  173. package/languages/routeros.js +1 -1
  174. package/languages/rsl.js +1 -1
  175. package/languages/ruby.js +2 -2
  176. package/languages/ruleslanguage.js +1 -1
  177. package/languages/rust.js +23 -11
  178. package/languages/sas.js +1 -1
  179. package/languages/scala.js +1 -1
  180. package/languages/scheme.js +1 -1
  181. package/languages/scilab.js +1 -1
  182. package/languages/scss.js +16 -9
  183. package/languages/shell.js +2 -2
  184. package/languages/smali.js +1 -1
  185. package/languages/smalltalk.js +1 -1
  186. package/languages/sml.js +1 -1
  187. package/languages/sqf.js +175 -10
  188. package/languages/sql.js +1 -1
  189. package/languages/stan.js +1 -1
  190. package/languages/stata.js +1 -1
  191. package/languages/step21.js +1 -1
  192. package/languages/stylus.js +18 -11
  193. package/languages/subunit.js +1 -1
  194. package/languages/swift.js +1 -1
  195. package/languages/taggerscript.js +1 -1
  196. package/languages/tap.js +1 -1
  197. package/languages/tcl.js +1 -1
  198. package/languages/thrift.js +1 -1
  199. package/languages/tp.js +1 -1
  200. package/languages/twig.js +1 -1
  201. package/languages/typescript.js +9 -3
  202. package/languages/vala.js +1 -1
  203. package/languages/vbnet.js +1 -1
  204. package/languages/vbscript-html.js +1 -1
  205. package/languages/vbscript.js +1 -1
  206. package/languages/verilog.js +1 -1
  207. package/languages/vhdl.js +1 -1
  208. package/languages/vim.js +1 -1
  209. package/languages/wasm.js +1 -1
  210. package/languages/wren.js +1 -1
  211. package/languages/x86asm.js +1 -1
  212. package/languages/xl.js +1 -1
  213. package/languages/xml.js +3 -3
  214. package/languages/xquery.js +1 -1
  215. package/languages/yaml.js +1 -1
  216. package/languages/zephir.js +1 -1
  217. package/package.json +1 -1
  218. package/stream-sealed-chunks.js +44 -0
  219. package/styles/a11y-dark.css +1 -1
  220. package/styles/a11y-dark.js +1 -1
  221. package/styles/a11y-light.css +1 -1
  222. package/styles/a11y-light.js +1 -1
  223. package/styles/an-old-hope.css +1 -1
  224. package/styles/an-old-hope.js +1 -1
  225. package/styles/arduino-light.css +1 -1
  226. package/styles/arduino-light.js +1 -1
  227. package/styles/arta.css +1 -1
  228. package/styles/arta.js +1 -1
  229. package/styles/brown-paper.css +1 -1
  230. package/styles/brown-paper.js +1 -1
  231. package/styles/codepen-embed.css +1 -1
  232. package/styles/codepen-embed.js +1 -1
  233. package/styles/cybertopia-cherry.css +10 -9
  234. package/styles/cybertopia-cherry.js +10 -9
  235. package/styles/cybertopia-dimmer.css +10 -9
  236. package/styles/cybertopia-dimmer.js +10 -9
  237. package/styles/cybertopia-icecap.css +10 -9
  238. package/styles/cybertopia-icecap.js +10 -9
  239. package/styles/cybertopia-saturated.css +10 -9
  240. package/styles/cybertopia-saturated.js +10 -9
  241. package/styles/dark.css +1 -1
  242. package/styles/dark.js +1 -1
  243. package/styles/docco.css +1 -1
  244. package/styles/docco.js +1 -1
  245. package/styles/equinox.css +25 -0
  246. package/styles/equinox.d.ts +1 -0
  247. package/styles/equinox.js +27 -0
  248. package/styles/far.css +1 -1
  249. package/styles/far.js +1 -1
  250. package/styles/gml.css +1 -1
  251. package/styles/gml.js +1 -1
  252. package/styles/googlecode.css +1 -1
  253. package/styles/googlecode.js +1 -1
  254. package/styles/hybrid.css +1 -1
  255. package/styles/hybrid.js +1 -1
  256. package/styles/index.d.ts +2 -0
  257. package/styles/index.js +2 -0
  258. package/styles/intellij-light.css +1 -1
  259. package/styles/intellij-light.js +1 -1
  260. package/styles/ir-black.css +1 -1
  261. package/styles/ir-black.js +1 -1
  262. package/styles/isbl-editor-dark.css +1 -1
  263. package/styles/isbl-editor-dark.js +1 -1
  264. package/styles/isbl-editor-light.css +1 -1
  265. package/styles/isbl-editor-light.js +1 -1
  266. package/styles/magula.css +1 -1
  267. package/styles/magula.js +1 -1
  268. package/styles/mono-blue.css +1 -1
  269. package/styles/mono-blue.js +1 -1
  270. package/styles/monokai-sublime.css +1 -1
  271. package/styles/monokai-sublime.js +1 -1
  272. package/styles/monokai.css +1 -1
  273. package/styles/monokai.js +1 -1
  274. package/styles/nnfx-dark.css +1 -1
  275. package/styles/nnfx-dark.js +1 -1
  276. package/styles/nnfx-light.css +1 -1
  277. package/styles/nnfx-light.js +1 -1
  278. package/styles/obsidian.css +1 -1
  279. package/styles/obsidian.js +1 -1
  280. package/styles/paraiso-dark.css +1 -1
  281. package/styles/paraiso-dark.js +1 -1
  282. package/styles/paraiso-light.css +1 -1
  283. package/styles/paraiso-light.js +1 -1
  284. package/styles/pojoaque.css +1 -1
  285. package/styles/pojoaque.js +1 -1
  286. package/styles/purebasic.css +1 -1
  287. package/styles/purebasic.js +1 -1
  288. package/styles/qtcreator-dark.css +1 -1
  289. package/styles/qtcreator-dark.js +1 -1
  290. package/styles/qtcreator-light.css +1 -1
  291. package/styles/qtcreator-light.js +1 -1
  292. package/styles/rainbow.css +1 -1
  293. package/styles/rainbow.js +1 -1
  294. package/styles/routeros.css +1 -1
  295. package/styles/routeros.js +1 -1
  296. package/styles/school-book.css +1 -1
  297. package/styles/school-book.js +1 -1
  298. package/styles/shades-of-purple.css +1 -1
  299. package/styles/shades-of-purple.js +1 -1
  300. package/styles/srcery.css +1 -1
  301. package/styles/srcery.js +1 -1
  302. package/styles/stackoverflow-dark.css +1 -1
  303. package/styles/stackoverflow-dark.js +1 -1
  304. package/styles/stackoverflow-light.css +1 -1
  305. package/styles/stackoverflow-light.js +1 -1
  306. package/styles/tomorrow-night-blue.css +1 -1
  307. package/styles/tomorrow-night-blue.js +1 -1
  308. package/styles/tomorrow-night-bright.css +1 -1
  309. package/styles/tomorrow-night-bright.js +1 -1
  310. package/styles/vs-dark.css +21 -0
  311. package/styles/vs-dark.d.ts +1 -0
  312. package/styles/vs-dark.js +23 -0
  313. package/styles/vs.css +1 -1
  314. package/styles/vs.js +1 -1
  315. package/styles/xcode.css +1 -1
  316. package/styles/xcode.js +1 -1
  317. package/styles/xt256.css +1 -1
  318. package/styles/xt256.js +1 -1
  319. package/text-diff.js +10 -2
  320. package/themes/a11y-dark.css +1 -1
  321. package/themes/a11y-dark.js +1 -1
  322. package/themes/a11y-light.css +1 -1
  323. package/themes/a11y-light.js +1 -1
  324. package/themes/an-old-hope.css +1 -1
  325. package/themes/an-old-hope.js +1 -1
  326. package/themes/arta.css +1 -1
  327. package/themes/arta.js +1 -1
  328. package/themes/brown-paper.css +1 -1
  329. package/themes/brown-paper.js +1 -1
  330. package/themes/codepen-embed.css +1 -1
  331. package/themes/codepen-embed.js +1 -1
  332. package/themes/cybertopia-cherry.css +1 -1
  333. package/themes/cybertopia-cherry.js +49 -48
  334. package/themes/cybertopia-dimmer.css +1 -1
  335. package/themes/cybertopia-dimmer.js +49 -48
  336. package/themes/cybertopia-icecap.css +1 -1
  337. package/themes/cybertopia-icecap.js +49 -48
  338. package/themes/cybertopia-saturated.css +1 -1
  339. package/themes/cybertopia-saturated.js +49 -48
  340. package/themes/dark.css +1 -1
  341. package/themes/dark.js +1 -1
  342. package/themes/docco.css +1 -1
  343. package/themes/docco.js +1 -1
  344. package/themes/equinox.css +1 -0
  345. package/themes/equinox.d.ts +1 -0
  346. package/themes/equinox.js +51 -0
  347. package/themes/far.css +1 -1
  348. package/themes/far.js +1 -1
  349. package/themes/googlecode.css +1 -1
  350. package/themes/googlecode.js +1 -1
  351. package/themes/index.d.ts +2 -0
  352. package/themes/index.js +2 -0
  353. package/themes/ir-black.css +1 -1
  354. package/themes/ir-black.js +1 -1
  355. package/themes/paraiso-dark.css +1 -1
  356. package/themes/paraiso-dark.js +1 -1
  357. package/themes/paraiso-light.css +1 -1
  358. package/themes/paraiso-light.js +1 -1
  359. package/themes/pojoaque.css +1 -1
  360. package/themes/pojoaque.js +1 -1
  361. package/themes/rainbow.css +1 -1
  362. package/themes/rainbow.js +1 -1
  363. package/themes/school-book.css +1 -1
  364. package/themes/school-book.js +1 -1
  365. package/themes/tomorrow-night-blue.css +1 -1
  366. package/themes/tomorrow-night-blue.js +1 -1
  367. package/themes/tomorrow-night-bright.css +1 -1
  368. package/themes/tomorrow-night-bright.js +1 -1
  369. package/themes/vs-dark.css +1 -0
  370. package/themes/vs-dark.d.ts +1 -0
  371. package/themes/vs-dark.js +45 -0
  372. package/themes/vs.css +1 -1
  373. package/themes/vs.js +1 -1
  374. package/typewriter-easing.d.ts +14 -0
  375. package/typewriter-easing.js +57 -0
  376. package/typewriter-units.d.ts +6 -0
  377. package/typewriter-units.js +27 -4
  378. package/virtual-window.js +67 -0
package/languages/sql.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "sql" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "sql" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const sql = /** @type {import("./index.d.ts").LanguageType<"sql">} */ ({
package/languages/stan.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "stan" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "stan" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const stan =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "stata" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "stata" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const stata =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "step21" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "step21" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const step21 =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "stylus" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "stylus" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const stylus =
@@ -14,8 +14,8 @@ export const stylus =
14
14
  states: [
15
15
  {
16
16
  rules: [
17
- 1, 3, 5, 8, 11, 12, 13, 14, 15, 16, 17, 22, 25, 26, 24, 27, 34, 35,
18
- 45,
17
+ 1, 3, 5, 8, 11, 12, 13, 14, 15, 16, 17, 22, 25, 26, 24, 27, 35, 36,
18
+ 46,
19
19
  ],
20
20
  illegal:
21
21
  "(\\?|(\\bReturn\\b)|(\\bEnd\\b)|(\\bend\\b)|(\\bdef\\b)|;|#\\s|\\*\\s|===\\s|\\||%)",
@@ -199,14 +199,21 @@ export const stylus =
199
199
  end: "\\B|\\b",
200
200
  },
201
201
  {
202
- rules: [11, 26, 30, 24, 32],
202
+ rules: [11, 26, 30, 24, 32, 33],
203
203
  scope: "params",
204
204
  begin: "\\(",
205
205
  end: "\\)",
206
206
  },
207
207
  { rules: [31], scope: "string", begin: "'", end: "'", illegal: "\\n" },
208
208
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
209
- { rules: [33], scope: "string", begin: '"', end: '"', illegal: "\\n" },
209
+ {
210
+ rules: [],
211
+ scope: "number",
212
+ begin:
213
+ "\\b[Uu]\\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?",
214
+ end: "\\B|\\b",
215
+ },
216
+ { rules: [34], scope: "string", begin: '"', end: '"', illegal: "\\n" },
210
217
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
211
218
  {
212
219
  rules: [],
@@ -218,22 +225,22 @@ export const stylus =
218
225
  rules: [],
219
226
  scope: "attribute",
220
227
  begin:
221
- "\\b(zoom|z-index|y|x|writing-mode|word-wrap|word-spacing|word-break|will-change|width|widows|white-space-collapse|white-space|voice-volume|voice-stress|voice-rate|voice-range|voice-pitch|voice-family|voice-duration|voice-balance|visibility|view-transition-name|view-timeline-name|view-timeline-inset|view-timeline-axis|view-timeline|vertical-align|vector-effect|user-select|user-modify|unicode-bidi|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition-behavior|transition|transform-style|transform-origin|transform-box|transform|touch-action|top|timeline-scope|text-wrap-style|text-wrap-mode|text-wrap|text-underline-position|text-underline-offset|text-transform|text-size-adjust|text-shadow|text-rendering|text-overflow|text-orientation|text-justify|text-indent|text-emphasis-style|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-thickness|text-decoration-style|text-decoration-skip-ink|text-decoration-skip|text-decoration-line|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|table-layout|tab-size|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|src|speak-as|speak|shape-rendering|shape-outside|shape-margin|shape-image-threshold|scrollbar-width|scrollbar-gutter|scrollbar-color|scroll-timeline-name|scroll-timeline-axis|scroll-timeline|scroll-snap-type|scroll-snap-stop|scroll-snap-align|scroll-padding-top|scroll-padding-right|scroll-padding-left|scroll-padding-inline-start|scroll-padding-inline-end|scroll-padding-inline|scroll-padding-bottom|scroll-padding-block-start|scroll-padding-block-end|scroll-padding-block|scroll-padding|scroll-margin-top|scroll-margin-right|scroll-margin-left|scroll-margin-inline-start|scroll-margin-inline-end|scroll-margin-inline|scroll-margin-bottom|scroll-margin-block-start|scroll-margin-block-end|scroll-margin-block|scroll-margin|scroll-behavior|scale|ruby-position|ruby-align|row-gap|rotate|right|rest-before|rest-after|rest|resize|r|quotes|print-color-adjust|position-visibility|position-anchor|position|pointer-events|place-self|place-items|place-content|perspective-origin|perspective|pause-before|pause-after|pause|paint-order|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-inline|padding-bottom|padding-block-start|padding-block-end|padding-block|padding|overscroll-behavior-y|overscroll-behavior-x|overscroll-behavior-inline|overscroll-behavior-block|overscroll-behavior|overlay|overflow-y|overflow-x|overflow-wrap|overflow-inline|overflow-clip-margin|overflow-block|overflow-anchor|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|offset-rotate|offset-position|offset-path|offset-distance|offset-anchor|offset|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|mix-blend-mode|min-width|min-inline-size|min-height|min-block-size|max-width|max-inline-size|max-height|max-block-size|math-style|math-shift|math-depth|masonry-auto-flow|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marks|marker-start|marker-mid|marker-end|marker|margin-trim|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-inline|margin-bottom|margin-block-start|margin-block-end|margin-block|margin|list-style-type|list-style-position|list-style-image|list-style|line-height-step|line-height|line-break|lighting-color|letter-spacing|left|kerning|justify-self|justify-items|justify-content|isolation|inset-inline-start|inset-inline-end|inset-inline|inset-block-start|inset-block-end|inset-block|inset-area|inset|inline-size|initial-letter-align|initial-letter|ime-mode|image-resolution|image-rendering|image-orientation|icon|hyphens|hyphenate-limit-chars|hyphenate-character|height|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-end|grid-row|grid-gap|grid-column-start|grid-column-end|grid-column|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|forced-color-adjust|font-weight|font-variation-settings|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-emoji|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis-weight|font-synthesis-style|font-synthesis-small-caps|font-synthesis-position|font-synthesis|font-style|font-stretch|font-smoothing|font-smooth|font-size-adjust|font-size|font-palette|font-optical-sizing|font-language-override|font-kerning|font-feature-settings|font-family|font-display|font|flow|flood-opacity|flood-color|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|fill-rule|fill-opacity|fill|field-sizing|enable-background|empty-cells|dominant-baseline|display|direction|cy|cx|cursor|cue-before|cue-after|cue|counter-set|counter-reset|counter-increment|content-visibility|content|container-type|container-name|container|contain-intrinsic-width|contain-intrinsic-size|contain-intrinsic-inline-size|contain-intrinsic-height|contain-intrinsic-block-size|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|color-scheme|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color|clip-rule|clip-path|clip|clear|caret-color|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-start-start-radius|border-start-end-radius|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-inline-width|border-inline-style|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-inline-color|border-inline|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-end-start-radius|border-end-end-radius|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-width|border-block-style|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border-block-color|border-block|border|block-size|baseline-shift|background-size|background-repeat|background-position-y|background-position-x|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|aspect-ratio|appearance|animation-timing-function|animation-timeline|animation-range-start|animation-range-end|animation-range|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation-composition|animation|anchor-name|all|alignment-baseline|align-self|align-items|align-content|accent-color)\\b",
228
+ "\\b(zoom|z-index|y|x|writing-mode|word-wrap|word-spacing|word-break|will-change|width|widows|white-space-collapse|white-space|voice-volume|voice-stress|voice-rate|voice-range|voice-pitch|voice-family|voice-duration|voice-balance|visibility|view-transition-name|view-timeline-name|view-timeline-inset|view-timeline-axis|view-timeline|vertical-align|vector-effect|user-select|user-modify|unicode-range|unicode-bidi|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition-behavior|transition|transform-style|transform-origin|transform-box|transform|touch-action|top|timeline-scope|text-wrap-style|text-wrap-mode|text-wrap|text-underline-position|text-underline-offset|text-transform|text-size-adjust|text-shadow|text-rendering|text-overflow|text-orientation|text-justify|text-indent|text-emphasis-style|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-thickness|text-decoration-style|text-decoration-skip-ink|text-decoration-skip|text-decoration-line|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|table-layout|tab-size|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|src|speak-as|speak|shape-rendering|shape-outside|shape-margin|shape-image-threshold|scrollbar-width|scrollbar-gutter|scrollbar-color|scroll-timeline-name|scroll-timeline-axis|scroll-timeline|scroll-snap-type|scroll-snap-stop|scroll-snap-align|scroll-padding-top|scroll-padding-right|scroll-padding-left|scroll-padding-inline-start|scroll-padding-inline-end|scroll-padding-inline|scroll-padding-bottom|scroll-padding-block-start|scroll-padding-block-end|scroll-padding-block|scroll-padding|scroll-margin-top|scroll-margin-right|scroll-margin-left|scroll-margin-inline-start|scroll-margin-inline-end|scroll-margin-inline|scroll-margin-bottom|scroll-margin-block-start|scroll-margin-block-end|scroll-margin-block|scroll-margin|scroll-behavior|scale|ruby-position|ruby-align|row-gap|rotate|right|rest-before|rest-after|rest|resize|r|quotes|print-color-adjust|position-visibility|position-anchor|position|pointer-events|place-self|place-items|place-content|perspective-origin|perspective|pause-before|pause-after|pause|paint-order|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-inline|padding-bottom|padding-block-start|padding-block-end|padding-block|padding|overscroll-behavior-y|overscroll-behavior-x|overscroll-behavior-inline|overscroll-behavior-block|overscroll-behavior|overlay|overflow-y|overflow-x|overflow-wrap|overflow-inline|overflow-clip-margin|overflow-block|overflow-anchor|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|offset-rotate|offset-position|offset-path|offset-distance|offset-anchor|offset|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|mix-blend-mode|min-width|min-inline-size|min-height|min-block-size|max-width|max-inline-size|max-height|max-block-size|math-style|math-shift|math-depth|masonry-auto-flow|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marks|marker-start|marker-mid|marker-end|marker|margin-trim|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-inline|margin-bottom|margin-block-start|margin-block-end|margin-block|margin|list-style-type|list-style-position|list-style-image|list-style|line-height-step|line-height|line-break|lighting-color|letter-spacing|left|kerning|justify-self|justify-items|justify-content|isolation|inset-inline-start|inset-inline-end|inset-inline|inset-block-start|inset-block-end|inset-block|inset-area|inset|inline-size|initial-letter-align|initial-letter|ime-mode|image-resolution|image-rendering|image-orientation|icon|hyphens|hyphenate-limit-chars|hyphenate-character|height|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-end|grid-row|grid-gap|grid-column-start|grid-column-end|grid-column|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|forced-color-adjust|font-weight|font-variation-settings|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-emoji|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis-weight|font-synthesis-style|font-synthesis-small-caps|font-synthesis-position|font-synthesis|font-style|font-stretch|font-smoothing|font-smooth|font-size-adjust|font-size|font-palette|font-optical-sizing|font-language-override|font-kerning|font-feature-settings|font-family|font-display|font|flow|flood-opacity|flood-color|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|fill-rule|fill-opacity|fill|field-sizing|enable-background|empty-cells|dominant-baseline|display|direction|cy|cx|cursor|cue-before|cue-after|cue|counter-set|counter-reset|counter-increment|corner-top-right-shape|corner-top-left-shape|corner-shape|corner-bottom-right-shape|corner-bottom-left-shape|content-visibility|content|container-type|container-name|container|contain-intrinsic-width|contain-intrinsic-size|contain-intrinsic-inline-size|contain-intrinsic-height|contain-intrinsic-block-size|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|color-scheme|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color|clip-rule|clip-path|clip|clear|caret-color|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-start-start-radius|border-start-end-radius|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-inline-width|border-inline-style|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-inline-color|border-inline|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-end-start-radius|border-end-end-radius|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-width|border-block-style|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border-block-color|border-block|border|block-size|baseline-shift|background-size|background-repeat|background-position-y|background-position-x|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|aspect-ratio|appearance|animation-timing-function|animation-timeline|animation-range-start|animation-range-end|animation-range|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation-composition|animation|anchor-name|all|alignment-baseline|align-self|align-items|align-content|accent-color)\\b",
222
229
  end: "\\B|\\b",
223
- starts: 36,
230
+ starts: 37,
224
231
  },
225
232
  {
226
233
  relevance: 0,
227
- rules: [11, 26, 37, 39, 24, 41, 44, 45],
234
+ rules: [11, 26, 38, 40, 24, 42, 45, 46],
228
235
  begin: "\\B|\\b",
229
236
  end: ";|$",
230
237
  illegal: "\\.",
231
238
  },
232
- { rules: [38], scope: "string", begin: "'", end: "'", illegal: "\\n" },
239
+ { rules: [39], scope: "string", begin: "'", end: "'", illegal: "\\n" },
233
240
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
234
- { rules: [40], scope: "string", begin: '"', end: '"', illegal: "\\n" },
241
+ { rules: [41], scope: "string", begin: '"', end: '"', illegal: "\\n" },
235
242
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
236
- { rules: [42, 43], scope: "comment", begin: "/\\*", end: "\\*/" },
243
+ { rules: [43, 44], scope: "comment", begin: "/\\*", end: "\\*/" },
237
244
  {
238
245
  relevance: 0,
239
246
  rules: [],
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "subunit" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "subunit" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const subunit =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "swift" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "swift" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const swift =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "taggerscript" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "taggerscript" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const taggerscript =
package/languages/tap.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "tap" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "tap" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const tap = /** @type {import("./index.d.ts").LanguageType<"tap">} */ ({
package/languages/tcl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "tcl" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "tcl" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const tcl = /** @type {import("./index.d.ts").LanguageType<"tcl">} */ ({
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "thrift" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "thrift" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const thrift =
package/languages/tp.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "tp" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "tp" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const tp = /** @type {import("./index.d.ts").LanguageType<"tp">} */ ({
package/languages/twig.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "twig" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "twig" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const twig =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "typescript" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "typescript" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const typescript =
@@ -18,7 +18,7 @@ export const typescript =
18
18
  30, 51, 52, 53, 66, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97,
19
19
  98, 100, 64, 101, 102, 65,
20
20
  ],
21
- illegal: "#(?![$_A-z])",
21
+ illegal: "#(?![$_A-Za-z])",
22
22
  keywords: {
23
23
  as: ["keyword", 1],
24
24
  in: ["keyword", 0],
@@ -159,6 +159,7 @@ export const typescript =
159
159
  localStorage: ["variable.language", 1],
160
160
  sessionStorage: ["variable.language", 1],
161
161
  module: ["variable.language", 1],
162
+ self: ["variable.language", 1],
162
163
  global: ["variable.language", 1],
163
164
  },
164
165
  keywordPattern: "[A-Za-z$_][0-9A-Za-z$_]*",
@@ -330,6 +331,7 @@ export const typescript =
330
331
  localStorage: ["variable.language", 1],
331
332
  sessionStorage: ["variable.language", 1],
332
333
  module: ["variable.language", 1],
334
+ self: ["variable.language", 1],
333
335
  global: ["variable.language", 1],
334
336
  },
335
337
  keywordPattern: "[A-Za-z$_][0-9A-Za-z$_]*",
@@ -542,6 +544,7 @@ export const typescript =
542
544
  localStorage: ["variable.language", 1],
543
545
  sessionStorage: ["variable.language", 1],
544
546
  module: ["variable.language", 1],
547
+ self: ["variable.language", 1],
545
548
  global: ["variable.language", 1],
546
549
  },
547
550
  keywordPattern: "[A-Za-z$_][0-9A-Za-z$_]*",
@@ -859,6 +862,7 @@ export const typescript =
859
862
  localStorage: ["variable.language", 1],
860
863
  sessionStorage: ["variable.language", 1],
861
864
  module: ["variable.language", 1],
865
+ self: ["variable.language", 1],
862
866
  global: ["variable.language", 1],
863
867
  },
864
868
  keywordPattern: "[A-Za-z$_][0-9A-Za-z$_]*",
@@ -1014,6 +1018,7 @@ export const typescript =
1014
1018
  localStorage: ["variable.language", 1],
1015
1019
  sessionStorage: ["variable.language", 1],
1016
1020
  module: ["variable.language", 1],
1021
+ self: ["variable.language", 1],
1017
1022
  global: ["variable.language", 1],
1018
1023
  },
1019
1024
  keywordPattern: "[A-Za-z$_][0-9A-Za-z$_]*",
@@ -1223,6 +1228,7 @@ export const typescript =
1223
1228
  localStorage: ["variable.language", 1],
1224
1229
  sessionStorage: ["variable.language", 1],
1225
1230
  module: ["variable.language", 1],
1231
+ self: ["variable.language", 1],
1226
1232
  global: ["variable.language", 1],
1227
1233
  },
1228
1234
  keywordPattern: "[A-Za-z$_][0-9A-Za-z$_]*",
@@ -1331,7 +1337,7 @@ export const typescript =
1331
1337
  rules: [],
1332
1338
  scope: "title.function",
1333
1339
  begin:
1334
- "\\b(?!setInterval\\s*\\(|setTimeout\\s*\\(|clearInterval\\s*\\(|clearTimeout\\s*\\(|require\\s*\\(|exports\\s*\\(|eval\\s*\\(|isFinite\\s*\\(|isNaN\\s*\\(|parseFloat\\s*\\(|parseInt\\s*\\(|decodeURI\\s*\\(|decodeURIComponent\\s*\\(|encodeURI\\s*\\(|encodeURIComponent\\s*\\(|escape\\s*\\(|unescape\\s*\\(|super\\s*\\(|import\\s*\\()[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*\\()",
1340
+ "\\b(?!setInterval\\s*\\(|setTimeout\\s*\\(|clearInterval\\s*\\(|clearTimeout\\s*\\(|require\\s*\\(|exports\\s*\\(|eval\\s*\\(|isFinite\\s*\\(|isNaN\\s*\\(|parseFloat\\s*\\(|parseInt\\s*\\(|decodeURI\\s*\\(|decodeURIComponent\\s*\\(|encodeURI\\s*\\(|encodeURIComponent\\s*\\(|escape\\s*\\(|unescape\\s*\\(|super\\s*\\(|import\\s*\\(|await\\s*\\()[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*\\()",
1335
1341
  end: "\\B|\\b",
1336
1342
  },
1337
1343
  {
package/languages/vala.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "vala" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "vala" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const vala =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "vbnet" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "vbnet" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const vbnet =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "vbscript-html" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "vbscript-html" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const vbscriptHtml =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "vbscript" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "vbscript" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const vbscript =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "verilog" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "verilog" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const verilog =
package/languages/vhdl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "vhdl" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "vhdl" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const vhdl =
package/languages/vim.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "vim" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "vim" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const vim = /** @type {import("./index.d.ts").LanguageType<"vim">} */ ({
package/languages/wasm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "wasm" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "wasm" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const wasm =
package/languages/wren.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "wren" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "wren" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const wren =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "x86asm" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "x86asm" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const x86asm =
package/languages/xl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "xl" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "xl" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const xl = /** @type {import("./index.d.ts").LanguageType<"xl">} */ ({
package/languages/xml.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "xml" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "xml" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const xml = /** @type {import("./index.d.ts").LanguageType<"xml">} */ ({
@@ -119,7 +119,7 @@ export const xml = /** @type {import("./index.d.ts").LanguageType<"xml">} */ ({
119
119
  begin: "\\B|\\b",
120
120
  end: "<\\/style>",
121
121
  returnEnd: true,
122
- subLanguage: ["css", "xml"],
122
+ subLanguage: "css",
123
123
  },
124
124
  {
125
125
  rules: [27],
@@ -142,7 +142,7 @@ export const xml = /** @type {import("./index.d.ts").LanguageType<"xml">} */ ({
142
142
  begin: "\\B|\\b",
143
143
  end: "<\\/script>",
144
144
  returnEnd: true,
145
- subLanguage: ["javascript", "handlebars", "xml"],
145
+ subLanguage: "javascript",
146
146
  },
147
147
  { rules: [], scope: "tag", begin: "<>|<\\/>", end: "\\B|\\b" },
148
148
  {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "xquery" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "xquery" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const xquery =
package/languages/yaml.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "yaml" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "yaml" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const yaml =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "zephir" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "zephir" derived from highlight.js 11.12.0 (BSD-3-Clause).
3
3
  * Copyright (c) 2006, Ivan Sagalaev. Full text: LICENSE.highlight.txt.
4
4
  */
5
5
  export const zephir =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-highlight",
3
- "version": "7.16.2",
3
+ "version": "7.18.0",
4
4
  "license": "MIT",
5
5
  "description": "Svelte component library for highlighting code using highlight.js",
6
6
  "author": "Eric Liu (https://github.com/metonym)",
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Sealed-chunk bookkeeping for HighlightStream's default (non-virtualized)
3
+ * engine: once `SEAL_CHUNK_LINES` completed lines accumulate, they're
4
+ * folded into one immutable HTML string and never touched again, so keyed
5
+ * `{#each sealedChunks}` reconciliation only ever diffs the (constant-size)
6
+ * unsealed tail, not the whole stream.
7
+ */
8
+
9
+ /**
10
+ * Joins `lines` (already-highlighted line HTML, one entry per line) into one
11
+ * `<span class="highlight-stream-line" data-line="i">` per line, separated
12
+ * by the newlines a real multi-line block needs.
13
+ * @param {string[]} lines
14
+ * @param {number} startLine Index of `lines[0]` in the overall document.
15
+ * @returns {string}
16
+ */
17
+ export function buildSealedChunkHtml(lines, startLine) {
18
+ if (lines.length === 0) return "";
19
+ // Only the very first line of the whole document (index 0) skips a
20
+ // leading separator; every other line - including this chunk's own first
21
+ // line, when it isn't the document's first - gets one. Peeling that one
22
+ // check out of the loop avoids re-evaluating it every iteration.
23
+ let html = `<span class="highlight-stream-line" data-line="${startLine}">${lines[0]}</span>`;
24
+ for (let i = 1; i < lines.length; i++) {
25
+ const lineIndex = startLine + i;
26
+ html += `\n<span class="highlight-stream-line" data-line="${lineIndex}">${lines[i]}</span>`;
27
+ }
28
+ return startLine > 0 ? `\n${html}` : html;
29
+ }
30
+
31
+ /**
32
+ * Appends `chunk` to `chunks` in place and returns the same array reference
33
+ * (Svelte's `x = x` self-assign invalidation idiom relies on referential
34
+ * equality staying stable so a keyed each-block doesn't rebuild). O(1)
35
+ * amortized, not O(c): a concat/spread-copy here would make sealing chunk
36
+ * `c` of a growing stream cost O(c), i.e. O(c^2) total across the stream.
37
+ * @param {string[]} chunks
38
+ * @param {string} chunk
39
+ * @returns {string[]}
40
+ */
41
+ export function pushSealedChunk(chunks, chunk) {
42
+ chunks.push(chunk);
43
+ return chunks;
44
+ }
@@ -38,4 +38,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
38
38
  .hljs-symbol,
39
39
  .hljs-type,
40
40
  .hljs-quote{color:highlight}.hljs-keyword,
41
- .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#ffa07a}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#ffa07a}.hljs-code{color:highlight}.hljs-formula{color:#00e0e0}
41
+ .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#ffa07a}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#ffa07a}.hljs-code{color:highlight}.hljs-formula{color:#dcc6e0}
@@ -38,6 +38,6 @@ const a11yDark = `<style>pre code.hljs{display:block;overflow-x:auto;padding:1em
38
38
  .hljs-symbol,
39
39
  .hljs-type,
40
40
  .hljs-quote{color:highlight}.hljs-keyword,
41
- .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#ffa07a}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#ffa07a}.hljs-code{color:highlight}.hljs-formula{color:#00e0e0}</style>`;
41
+ .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#ffa07a}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#ffa07a}.hljs-code{color:highlight}.hljs-formula{color:#dcc6e0}</style>`;
42
42
 
43
43
  export default a11yDark;
@@ -32,4 +32,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
32
32
  .hljs-symbol,
33
33
  .hljs-type,
34
34
  .hljs-quote{color:highlight}.hljs-keyword,
35
- .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#d91e18}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#d91e18}.hljs-code{color:highlight}.hljs-formula{color:#007faa}
35
+ .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#d91e18}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#d91e18}.hljs-code{color:highlight}.hljs-formula{color:#7928a1}
@@ -32,6 +32,6 @@ const a11yLight = `<style>pre code.hljs{display:block;overflow-x:auto;padding:1e
32
32
  .hljs-symbol,
33
33
  .hljs-type,
34
34
  .hljs-quote{color:highlight}.hljs-keyword,
35
- .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#d91e18}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#d91e18}.hljs-code{color:highlight}.hljs-formula{color:#007faa}</style>`;
35
+ .hljs-selector-tag{font-weight:bold}}.hljs-doctag{color:#d91e18}.hljs-attr,.hljs-template-tag{color:highlight}.hljs-selector-attr,.hljs-selector-pseudo{color:#d91e18}.hljs-code{color:highlight}.hljs-formula{color:#7928a1}</style>`;
36
36
 
37
37
  export default a11yLight;
@@ -26,4 +26,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
26
26
  .hljs-bullet,
27
27
  .hljs-addition{color:#4FB4D7}.hljs-title,
28
28
  .hljs-section{color:#78BB65}.hljs-keyword,
29
- .hljs-selector-tag{color:#B45EA4}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag{color:#EB3C54}.hljs-attr,.hljs-template-tag{color:#E7CE56}.hljs-selector-attr,.hljs-selector-pseudo{color:#EB3C54}.hljs-code{color:#4FB4D7}.hljs-formula{color:#78BB65}
29
+ .hljs-selector-tag{color:#B45EA4}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag{color:#EB3C54}.hljs-attr,.hljs-template-tag{color:#E7CE56}.hljs-selector-attr,.hljs-selector-pseudo{color:#EB3C54}.hljs-code{color:#4FB4D7}.hljs-formula{color:#B45EA4}
@@ -26,6 +26,6 @@ const anOldHope = `<style>pre code.hljs{display:block;overflow-x:auto;padding:1e
26
26
  .hljs-bullet,
27
27
  .hljs-addition{color:#4FB4D7}.hljs-title,
28
28
  .hljs-section{color:#78BB65}.hljs-keyword,
29
- .hljs-selector-tag{color:#B45EA4}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag{color:#EB3C54}.hljs-attr,.hljs-template-tag{color:#E7CE56}.hljs-selector-attr,.hljs-selector-pseudo{color:#EB3C54}.hljs-code{color:#4FB4D7}.hljs-formula{color:#78BB65}</style>`;
29
+ .hljs-selector-tag{color:#B45EA4}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag{color:#EB3C54}.hljs-attr,.hljs-template-tag{color:#E7CE56}.hljs-selector-attr,.hljs-selector-pseudo{color:#EB3C54}.hljs-code{color:#4FB4D7}.hljs-formula{color:#B45EA4}</style>`;
30
30
 
31
31
  export default anOldHope;
@@ -19,4 +19,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
19
19
  .hljs-quote,
20
20
  .hljs-template-tag,
21
21
  .hljs-deletion{color:#005C5F}.hljs-comment{color:rgba(149,165,166,.8)}.hljs-meta .hljs-keyword{color:#728E00}.hljs-meta{color:#434f54}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-function{color:#728E00}.hljs-title,
22
- .hljs-section{color:#880000;font-weight:bold}.hljs-number,.hljs-attr{color:#8A7B52}.hljs-tag,.hljs-params{color:#005C5F}.hljs-operator{color:#434f54}.hljs-formula{color:#D35400}.hljs-punctuation{color:#434f54}
22
+ .hljs-section{color:#880000;font-weight:bold}.hljs-number,.hljs-attr{color:#8A7B52}.hljs-tag,.hljs-params{color:#005C5F}.hljs-formula{color:#D35400}.hljs-operator,.hljs-punctuation{color:#434f54}
@@ -19,6 +19,6 @@ const arduinoLight = `<style>pre code.hljs{display:block;overflow-x:auto;padding
19
19
  .hljs-quote,
20
20
  .hljs-template-tag,
21
21
  .hljs-deletion{color:#005C5F}.hljs-comment{color:rgba(149,165,166,.8)}.hljs-meta .hljs-keyword{color:#728E00}.hljs-meta{color:#434f54}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-function{color:#728E00}.hljs-title,
22
- .hljs-section{color:#880000;font-weight:bold}.hljs-number,.hljs-attr{color:#8A7B52}.hljs-tag,.hljs-params{color:#005C5F}.hljs-operator{color:#434f54}.hljs-formula{color:#D35400}.hljs-punctuation{color:#434f54}</style>`;
22
+ .hljs-section{color:#880000;font-weight:bold}.hljs-number,.hljs-attr{color:#8A7B52}.hljs-tag,.hljs-params{color:#005C5F}.hljs-formula{color:#D35400}.hljs-operator,.hljs-punctuation{color:#434f54}</style>`;
23
23
 
24
24
  export default arduinoLight;
package/styles/arta.css CHANGED
@@ -22,4 +22,4 @@ Author: pumbur <pumbur@pumbur.net>
22
22
  .hljs-deletion,
23
23
  .hljs-template-tag{color:#bb1166}.hljs-section,
24
24
  .hljs-doctag,
25
- .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#ffcc33}.hljs-attr{color:#00cc66}.hljs-selector-attr,.hljs-selector-pseudo{color:#32aaee}.hljs-code{color:#00cc66}.hljs-tag{color:#6644aa}.hljs-params{color:#32aaee}.hljs-operator{color:#aaa}.hljs-formula{color:#fff}.hljs-punctuation{color:#aaa}
25
+ .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#ffcc33}.hljs-attr{color:#00cc66}.hljs-selector-attr,.hljs-selector-pseudo{color:#32aaee}.hljs-code{color:#00cc66}.hljs-tag{color:#6644aa}.hljs-params{color:#32aaee}.hljs-formula{color:#6644aa}.hljs-operator,.hljs-punctuation{color:#aaa}
package/styles/arta.js CHANGED
@@ -22,6 +22,6 @@ Author: pumbur <pumbur@pumbur.net>
22
22
  .hljs-deletion,
23
23
  .hljs-template-tag{color:#bb1166}.hljs-section,
24
24
  .hljs-doctag,
25
- .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#ffcc33}.hljs-attr{color:#00cc66}.hljs-selector-attr,.hljs-selector-pseudo{color:#32aaee}.hljs-code{color:#00cc66}.hljs-tag{color:#6644aa}.hljs-params{color:#32aaee}.hljs-operator{color:#aaa}.hljs-formula{color:#fff}.hljs-punctuation{color:#aaa}</style>`;
25
+ .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#ffcc33}.hljs-attr{color:#00cc66}.hljs-selector-attr,.hljs-selector-pseudo{color:#32aaee}.hljs-code{color:#00cc66}.hljs-tag{color:#6644aa}.hljs-params{color:#32aaee}.hljs-formula{color:#6644aa}.hljs-operator,.hljs-punctuation{color:#aaa}</style>`;
26
26
 
27
27
  export default arta;
@@ -24,4 +24,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
24
24
  .hljs-section,
25
25
  .hljs-type,
26
26
  .hljs-name,
27
- .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#2c009f}.hljs-attr,.hljs-number{color:#005599}.hljs-selector-id,.hljs-selector-class{color:#2c009f}.hljs-regexp{color:#802022}.hljs-selector-attr,.hljs-selector-pseudo,.hljs-code,.hljs-params{color:#2c009f}.hljs-formula{color:#005599}
27
+ .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#802022}.hljs-attr,.hljs-number{color:#005599}.hljs-selector-id,.hljs-selector-class{color:#2c009f}.hljs-regexp{color:#802022}.hljs-selector-attr,.hljs-selector-pseudo,.hljs-code,.hljs-params{color:#2c009f}.hljs-formula{color:#005599}
@@ -24,6 +24,6 @@ const brownPaper = `<style>pre code.hljs{display:block;overflow-x:auto;padding:1
24
24
  .hljs-section,
25
25
  .hljs-type,
26
26
  .hljs-name,
27
- .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#2c009f}.hljs-attr,.hljs-number{color:#005599}.hljs-selector-id,.hljs-selector-class{color:#2c009f}.hljs-regexp{color:#802022}.hljs-selector-attr,.hljs-selector-pseudo,.hljs-code,.hljs-params{color:#2c009f}.hljs-formula{color:#005599}</style>`;
27
+ .hljs-strong{font-weight:bold}.hljs-emphasis{font-style:italic}.hljs-doctag{color:#802022}.hljs-attr,.hljs-number{color:#005599}.hljs-selector-id,.hljs-selector-class{color:#2c009f}.hljs-regexp{color:#802022}.hljs-selector-attr,.hljs-selector-pseudo,.hljs-code,.hljs-params{color:#2c009f}.hljs-formula{color:#005599}</style>`;
28
28
 
29
29
  export default brownPaper;
@@ -25,4 +25,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
25
25
  .hljs-attribute{color:#9b869b}.hljs-string,
26
26
  .hljs-keyword,
27
27
  .hljs-selector-tag,
28
- .hljs-addition{color:#8f9c6c}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag,.hljs-attr{color:#ab875d}.hljs-template-tag{color:#9b869b}.hljs-selector-attr,.hljs-selector-pseudo{color:#ab875d}.hljs-code{color:#8f9c6c}.hljs-formula{color:#9b869b}
28
+ .hljs-addition{color:#8f9c6c}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag,.hljs-attr{color:#ab875d}.hljs-template-tag{color:#9b869b}.hljs-selector-attr,.hljs-selector-pseudo{color:#ab875d}.hljs-code,.hljs-formula{color:#8f9c6c}
@@ -25,6 +25,6 @@ const codepenEmbed = `<style>pre code.hljs{display:block;overflow-x:auto;padding
25
25
  .hljs-attribute{color:#9b869b}.hljs-string,
26
26
  .hljs-keyword,
27
27
  .hljs-selector-tag,
28
- .hljs-addition{color:#8f9c6c}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag,.hljs-attr{color:#ab875d}.hljs-template-tag{color:#9b869b}.hljs-selector-attr,.hljs-selector-pseudo{color:#ab875d}.hljs-code{color:#8f9c6c}.hljs-formula{color:#9b869b}</style>`;
28
+ .hljs-addition{color:#8f9c6c}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-doctag,.hljs-attr{color:#ab875d}.hljs-template-tag{color:#9b869b}.hljs-selector-attr,.hljs-selector-pseudo{color:#ab875d}.hljs-code,.hljs-formula{color:#8f9c6c}</style>`;
29
29
 
30
30
  export default codepenEmbed;