svelte-highlight 7.16.2 → 7.17.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 (364) hide show
  1. package/HighlightStream.svelte +218 -3
  2. package/HighlightStream.svelte.d.ts +25 -0
  3. package/HighlightVirtual.svelte +13 -20
  4. package/LICENSE.highlight.txt +1 -1
  5. package/README.md +19 -10
  6. package/languages/1c.js +1 -1
  7. package/languages/abnf.js +1 -1
  8. package/languages/accesslog.js +1 -1
  9. package/languages/actionscript.js +1 -1
  10. package/languages/ada.js +7 -6
  11. package/languages/all.js +8 -0
  12. package/languages/angelscript.js +1 -1
  13. package/languages/apache.js +1 -1
  14. package/languages/applescript.js +1 -1
  15. package/languages/arcade.js +1 -1
  16. package/languages/arduino.js +91 -67
  17. package/languages/armasm.js +1 -1
  18. package/languages/asciidoc.js +1 -1
  19. package/languages/aspectj.js +1 -1
  20. package/languages/autohotkey.js +1 -1
  21. package/languages/autoit.js +1 -1
  22. package/languages/avrasm.js +1 -1
  23. package/languages/awk.js +1 -1
  24. package/languages/axapta.js +1 -1
  25. package/languages/bash.js +1 -1
  26. package/languages/basic.js +1 -1
  27. package/languages/bnf.js +1 -1
  28. package/languages/brainfuck.js +1 -1
  29. package/languages/c.js +91 -66
  30. package/languages/cal.js +1 -1
  31. package/languages/capnproto.js +1 -1
  32. package/languages/ceylon.js +1 -1
  33. package/languages/clean.js +1 -1
  34. package/languages/clojure-repl.js +1 -1
  35. package/languages/clojure.js +1 -1
  36. package/languages/cmake.js +4 -2
  37. package/languages/coffeescript.js +1 -1
  38. package/languages/coq.js +1 -1
  39. package/languages/cos.js +1 -1
  40. package/languages/cpp.js +90 -65
  41. package/languages/cql.d.ts +2 -0
  42. package/languages/cql.js +203 -0
  43. package/languages/crmsh.js +1 -1
  44. package/languages/crystal.js +27 -34
  45. package/languages/csharp.js +4 -4
  46. package/languages/csp.js +8 -1
  47. package/languages/css.js +20 -13
  48. package/languages/d.js +1 -1
  49. package/languages/dart.js +18 -3
  50. package/languages/delphi.js +1 -1
  51. package/languages/diff.js +2 -2
  52. package/languages/django.js +1 -1
  53. package/languages/dns.js +71 -43
  54. package/languages/dockerfile.js +1 -1
  55. package/languages/dos.js +3 -3
  56. package/languages/dsconfig.js +1 -1
  57. package/languages/dts.js +1 -1
  58. package/languages/dust.js +1 -1
  59. package/languages/ebnf.js +1 -1
  60. package/languages/elixir.js +59 -50
  61. package/languages/elm.js +1 -1
  62. package/languages/erb.js +1 -1
  63. package/languages/erlang-repl.js +1 -1
  64. package/languages/erlang.js +1 -1
  65. package/languages/excel.js +1 -1
  66. package/languages/fix.js +1 -1
  67. package/languages/flix.js +1 -1
  68. package/languages/flux.d.ts +2 -0
  69. package/languages/flux.js +272 -0
  70. package/languages/fortran.js +1 -1
  71. package/languages/freedesktop.d.ts +2 -0
  72. package/languages/freedesktop.js +45 -0
  73. package/languages/fsharp.js +1 -1
  74. package/languages/gams.js +1 -1
  75. package/languages/gauss.js +1 -1
  76. package/languages/gcode.js +1 -1
  77. package/languages/gherkin.js +36 -38
  78. package/languages/glsl.js +1 -1
  79. package/languages/gml.js +1 -1
  80. package/languages/go.js +10 -3
  81. package/languages/golo.js +1 -1
  82. package/languages/gradle.js +1 -1
  83. package/languages/graphql.js +1 -1
  84. package/languages/groovy.js +60 -5
  85. package/languages/haml.js +1 -1
  86. package/languages/handlebars.js +1 -1
  87. package/languages/haskell.js +2 -1
  88. package/languages/haxe.js +1 -1
  89. package/languages/hsp.js +1 -1
  90. package/languages/http.js +1 -1
  91. package/languages/hy.js +1 -1
  92. package/languages/index.d.ts +8 -0
  93. package/languages/index.js +4 -0
  94. package/languages/inform7.js +1 -1
  95. package/languages/ini.js +1 -1
  96. package/languages/irpf90.js +1 -1
  97. package/languages/isbl.js +1 -1
  98. package/languages/java.js +28 -25
  99. package/languages/javascript.js +9 -3
  100. package/languages/jboss-cli.js +1 -1
  101. package/languages/json.js +12 -9
  102. package/languages/julia-repl.js +1 -1
  103. package/languages/julia.js +1 -1
  104. package/languages/kotlin.js +3 -3
  105. package/languages/lasso.js +1 -1
  106. package/languages/latex.js +1 -1
  107. package/languages/ldif.js +1 -1
  108. package/languages/leaf.js +7 -2
  109. package/languages/less.js +60 -45
  110. package/languages/lisp.js +7 -2
  111. package/languages/livecodeserver.js +1 -1
  112. package/languages/livescript.js +1 -1
  113. package/languages/llvm.js +18 -3
  114. package/languages/lsl.js +1 -1
  115. package/languages/lua.js +2 -1
  116. package/languages/makefile.js +1 -1
  117. package/languages/markdown.js +8 -4
  118. package/languages/mathematica.js +1 -1
  119. package/languages/matlab.js +1 -1
  120. package/languages/maxima.js +1 -1
  121. package/languages/mel.js +1 -1
  122. package/languages/mercury.js +1 -1
  123. package/languages/mipsasm.js +1 -1
  124. package/languages/mizar.js +1 -1
  125. package/languages/mojolicious.js +1 -1
  126. package/languages/monkey.js +1 -1
  127. package/languages/moonscript.js +1 -1
  128. package/languages/n1ql.js +1 -1
  129. package/languages/nestedtext.js +1 -1
  130. package/languages/nginx.js +1 -1
  131. package/languages/nim.js +1 -1
  132. package/languages/nix.js +1 -1
  133. package/languages/node-repl.js +1 -1
  134. package/languages/nsis.js +20 -5
  135. package/languages/objectivec.js +1 -1
  136. package/languages/ocaml.js +1 -1
  137. package/languages/openscad.js +1 -1
  138. package/languages/oxygene.js +1 -1
  139. package/languages/parser3.js +1 -1
  140. package/languages/perl.js +1 -1
  141. package/languages/pf.js +1 -1
  142. package/languages/pgsql.js +1 -1
  143. package/languages/php-template.js +1 -1
  144. package/languages/php.js +150 -24
  145. package/languages/plaintext.js +1 -1
  146. package/languages/pony.js +1 -1
  147. package/languages/powershell.js +1 -1
  148. package/languages/processing.js +1 -1
  149. package/languages/profile.js +1 -1
  150. package/languages/prolog.js +1 -1
  151. package/languages/properties.js +1 -1
  152. package/languages/protobuf.js +1 -1
  153. package/languages/prql.d.ts +2 -0
  154. package/languages/prql.js +160 -0
  155. package/languages/puppet.js +1 -1
  156. package/languages/purebasic.js +1 -1
  157. package/languages/python-repl.js +1 -1
  158. package/languages/python.js +31 -11
  159. package/languages/q.js +1 -1
  160. package/languages/qml.js +1 -1
  161. package/languages/r.js +1 -1
  162. package/languages/reasonml.js +1 -1
  163. package/languages/rib.js +1 -1
  164. package/languages/roboconf.js +1 -1
  165. package/languages/routeros.js +1 -1
  166. package/languages/rsl.js +1 -1
  167. package/languages/ruby.js +2 -2
  168. package/languages/ruleslanguage.js +1 -1
  169. package/languages/rust.js +23 -11
  170. package/languages/sas.js +1 -1
  171. package/languages/scala.js +1 -1
  172. package/languages/scheme.js +1 -1
  173. package/languages/scilab.js +1 -1
  174. package/languages/scss.js +16 -9
  175. package/languages/shell.js +2 -2
  176. package/languages/smali.js +1 -1
  177. package/languages/smalltalk.js +1 -1
  178. package/languages/sml.js +1 -1
  179. package/languages/sqf.js +175 -10
  180. package/languages/sql.js +1 -1
  181. package/languages/stan.js +1 -1
  182. package/languages/stata.js +1 -1
  183. package/languages/step21.js +1 -1
  184. package/languages/stylus.js +18 -11
  185. package/languages/subunit.js +1 -1
  186. package/languages/swift.js +1 -1
  187. package/languages/taggerscript.js +1 -1
  188. package/languages/tap.js +1 -1
  189. package/languages/tcl.js +1 -1
  190. package/languages/thrift.js +1 -1
  191. package/languages/tp.js +1 -1
  192. package/languages/twig.js +1 -1
  193. package/languages/typescript.js +9 -3
  194. package/languages/vala.js +1 -1
  195. package/languages/vbnet.js +1 -1
  196. package/languages/vbscript-html.js +1 -1
  197. package/languages/vbscript.js +1 -1
  198. package/languages/verilog.js +1 -1
  199. package/languages/vhdl.js +1 -1
  200. package/languages/vim.js +1 -1
  201. package/languages/wasm.js +1 -1
  202. package/languages/wren.js +1 -1
  203. package/languages/x86asm.js +1 -1
  204. package/languages/xl.js +1 -1
  205. package/languages/xml.js +3 -3
  206. package/languages/xquery.js +1 -1
  207. package/languages/yaml.js +1 -1
  208. package/languages/zephir.js +1 -1
  209. package/package.json +1 -1
  210. package/styles/a11y-dark.css +1 -1
  211. package/styles/a11y-dark.js +1 -1
  212. package/styles/a11y-light.css +1 -1
  213. package/styles/a11y-light.js +1 -1
  214. package/styles/an-old-hope.css +1 -1
  215. package/styles/an-old-hope.js +1 -1
  216. package/styles/arduino-light.css +1 -1
  217. package/styles/arduino-light.js +1 -1
  218. package/styles/arta.css +1 -1
  219. package/styles/arta.js +1 -1
  220. package/styles/brown-paper.css +1 -1
  221. package/styles/brown-paper.js +1 -1
  222. package/styles/codepen-embed.css +1 -1
  223. package/styles/codepen-embed.js +1 -1
  224. package/styles/cybertopia-cherry.css +10 -9
  225. package/styles/cybertopia-cherry.js +10 -9
  226. package/styles/cybertopia-dimmer.css +10 -9
  227. package/styles/cybertopia-dimmer.js +10 -9
  228. package/styles/cybertopia-icecap.css +10 -9
  229. package/styles/cybertopia-icecap.js +10 -9
  230. package/styles/cybertopia-saturated.css +10 -9
  231. package/styles/cybertopia-saturated.js +10 -9
  232. package/styles/dark.css +1 -1
  233. package/styles/dark.js +1 -1
  234. package/styles/docco.css +1 -1
  235. package/styles/docco.js +1 -1
  236. package/styles/equinox.css +25 -0
  237. package/styles/equinox.d.ts +1 -0
  238. package/styles/equinox.js +27 -0
  239. package/styles/far.css +1 -1
  240. package/styles/far.js +1 -1
  241. package/styles/gml.css +1 -1
  242. package/styles/gml.js +1 -1
  243. package/styles/googlecode.css +1 -1
  244. package/styles/googlecode.js +1 -1
  245. package/styles/hybrid.css +1 -1
  246. package/styles/hybrid.js +1 -1
  247. package/styles/index.d.ts +2 -0
  248. package/styles/index.js +2 -0
  249. package/styles/intellij-light.css +1 -1
  250. package/styles/intellij-light.js +1 -1
  251. package/styles/ir-black.css +1 -1
  252. package/styles/ir-black.js +1 -1
  253. package/styles/isbl-editor-dark.css +1 -1
  254. package/styles/isbl-editor-dark.js +1 -1
  255. package/styles/isbl-editor-light.css +1 -1
  256. package/styles/isbl-editor-light.js +1 -1
  257. package/styles/magula.css +1 -1
  258. package/styles/magula.js +1 -1
  259. package/styles/mono-blue.css +1 -1
  260. package/styles/mono-blue.js +1 -1
  261. package/styles/monokai-sublime.css +1 -1
  262. package/styles/monokai-sublime.js +1 -1
  263. package/styles/monokai.css +1 -1
  264. package/styles/monokai.js +1 -1
  265. package/styles/nnfx-dark.css +1 -1
  266. package/styles/nnfx-dark.js +1 -1
  267. package/styles/nnfx-light.css +1 -1
  268. package/styles/nnfx-light.js +1 -1
  269. package/styles/obsidian.css +1 -1
  270. package/styles/obsidian.js +1 -1
  271. package/styles/paraiso-dark.css +1 -1
  272. package/styles/paraiso-dark.js +1 -1
  273. package/styles/paraiso-light.css +1 -1
  274. package/styles/paraiso-light.js +1 -1
  275. package/styles/pojoaque.css +1 -1
  276. package/styles/pojoaque.js +1 -1
  277. package/styles/purebasic.css +1 -1
  278. package/styles/purebasic.js +1 -1
  279. package/styles/qtcreator-dark.css +1 -1
  280. package/styles/qtcreator-dark.js +1 -1
  281. package/styles/qtcreator-light.css +1 -1
  282. package/styles/qtcreator-light.js +1 -1
  283. package/styles/rainbow.css +1 -1
  284. package/styles/rainbow.js +1 -1
  285. package/styles/routeros.css +1 -1
  286. package/styles/routeros.js +1 -1
  287. package/styles/school-book.css +1 -1
  288. package/styles/school-book.js +1 -1
  289. package/styles/shades-of-purple.css +1 -1
  290. package/styles/shades-of-purple.js +1 -1
  291. package/styles/srcery.css +1 -1
  292. package/styles/srcery.js +1 -1
  293. package/styles/stackoverflow-dark.css +1 -1
  294. package/styles/stackoverflow-dark.js +1 -1
  295. package/styles/stackoverflow-light.css +1 -1
  296. package/styles/stackoverflow-light.js +1 -1
  297. package/styles/tomorrow-night-blue.css +1 -1
  298. package/styles/tomorrow-night-blue.js +1 -1
  299. package/styles/tomorrow-night-bright.css +1 -1
  300. package/styles/tomorrow-night-bright.js +1 -1
  301. package/styles/vs-dark.css +21 -0
  302. package/styles/vs-dark.d.ts +1 -0
  303. package/styles/vs-dark.js +23 -0
  304. package/styles/vs.css +1 -1
  305. package/styles/vs.js +1 -1
  306. package/styles/xcode.css +1 -1
  307. package/styles/xcode.js +1 -1
  308. package/styles/xt256.css +1 -1
  309. package/styles/xt256.js +1 -1
  310. package/themes/a11y-dark.css +1 -1
  311. package/themes/a11y-dark.js +1 -1
  312. package/themes/a11y-light.css +1 -1
  313. package/themes/a11y-light.js +1 -1
  314. package/themes/an-old-hope.css +1 -1
  315. package/themes/an-old-hope.js +1 -1
  316. package/themes/arta.css +1 -1
  317. package/themes/arta.js +1 -1
  318. package/themes/brown-paper.css +1 -1
  319. package/themes/brown-paper.js +1 -1
  320. package/themes/codepen-embed.css +1 -1
  321. package/themes/codepen-embed.js +1 -1
  322. package/themes/cybertopia-cherry.css +1 -1
  323. package/themes/cybertopia-cherry.js +49 -48
  324. package/themes/cybertopia-dimmer.css +1 -1
  325. package/themes/cybertopia-dimmer.js +49 -48
  326. package/themes/cybertopia-icecap.css +1 -1
  327. package/themes/cybertopia-icecap.js +49 -48
  328. package/themes/cybertopia-saturated.css +1 -1
  329. package/themes/cybertopia-saturated.js +49 -48
  330. package/themes/dark.css +1 -1
  331. package/themes/dark.js +1 -1
  332. package/themes/docco.css +1 -1
  333. package/themes/docco.js +1 -1
  334. package/themes/equinox.css +1 -0
  335. package/themes/equinox.d.ts +1 -0
  336. package/themes/equinox.js +51 -0
  337. package/themes/far.css +1 -1
  338. package/themes/far.js +1 -1
  339. package/themes/googlecode.css +1 -1
  340. package/themes/googlecode.js +1 -1
  341. package/themes/index.d.ts +2 -0
  342. package/themes/index.js +2 -0
  343. package/themes/ir-black.css +1 -1
  344. package/themes/ir-black.js +1 -1
  345. package/themes/paraiso-dark.css +1 -1
  346. package/themes/paraiso-dark.js +1 -1
  347. package/themes/paraiso-light.css +1 -1
  348. package/themes/paraiso-light.js +1 -1
  349. package/themes/pojoaque.css +1 -1
  350. package/themes/pojoaque.js +1 -1
  351. package/themes/rainbow.css +1 -1
  352. package/themes/rainbow.js +1 -1
  353. package/themes/school-book.css +1 -1
  354. package/themes/school-book.js +1 -1
  355. package/themes/tomorrow-night-blue.css +1 -1
  356. package/themes/tomorrow-night-blue.js +1 -1
  357. package/themes/tomorrow-night-bright.css +1 -1
  358. package/themes/tomorrow-night-bright.js +1 -1
  359. package/themes/vs-dark.css +1 -0
  360. package/themes/vs-dark.d.ts +1 -0
  361. package/themes/vs-dark.js +45 -0
  362. package/themes/vs.css +1 -1
  363. package/themes/vs.js +1 -1
  364. package/virtual-window.js +67 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "crystal" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "crystal" 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 crystal =
@@ -15,8 +15,8 @@ export const crystal =
15
15
  {
16
16
  rules: [
17
17
  1, 5, 2, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 31, 32,
18
- 34, 36, 38, 40, 42, 47, 50, 88, 54, 60, 65, 70, 72, 74, 75, 77, 78,
19
- 79, 80, 81,
18
+ 34, 36, 38, 40, 42, 43, 46, 49, 87, 53, 59, 64, 69, 71, 73, 74, 76,
19
+ 77, 78, 79, 80,
20
20
  ],
21
21
  keywords: {
22
22
  abstract: ["keyword", 1],
@@ -87,8 +87,8 @@ export const crystal =
87
87
  {
88
88
  rules: [
89
89
  2, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 31, 32, 34, 36,
90
- 38, 40, 42, 47, 50, 85, 54, 60, 65, 70, 72, 74, 75, 77, 78, 79, 80,
91
- 81,
90
+ 38, 40, 42, 43, 46, 49, 84, 53, 59, 64, 69, 71, 73, 74, 76, 77, 78,
91
+ 79, 80,
92
92
  ],
93
93
  scope: "template-variable",
94
94
  begin: "\\{\\{",
@@ -164,8 +164,8 @@ export const crystal =
164
164
  {
165
165
  rules: [
166
166
  1, 5, 2, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 31, 32,
167
- 34, 36, 38, 40, 42, 47, 50, 82, 54, 60, 65, 70, 72, 74, 75, 77, 78,
168
- 79, 80, 81,
167
+ 34, 36, 38, 40, 42, 43, 46, 49, 81, 53, 59, 64, 69, 71, 73, 74, 76,
168
+ 77, 78, 79, 80,
169
169
  ],
170
170
  scope: "subst",
171
171
  begin: "#\\{",
@@ -239,8 +239,8 @@ export const crystal =
239
239
  {
240
240
  rules: [
241
241
  2, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 31, 32, 34, 36,
242
- 38, 40, 42, 47, 50, 51, 54, 60, 65, 70, 72, 74, 75, 77, 78, 79, 80,
243
- 81,
242
+ 38, 40, 42, 43, 46, 49, 50, 53, 59, 64, 69, 71, 73, 74, 76, 77, 78,
243
+ 79, 80,
244
244
  ],
245
245
  scope: "template-variable",
246
246
  begin: "\\{%",
@@ -437,9 +437,10 @@ export const crystal =
437
437
  end: "\\|",
438
438
  },
439
439
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
440
+ { relevance: 0, rules: [], begin: "\\/\\/=?", end: "\\B|\\b" },
440
441
  {
441
442
  relevance: 0,
442
- rules: [43, 45],
443
+ rules: [44],
443
444
  begin:
444
445
  "(?!%\\})(!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",
445
446
  end: "\\B|\\b",
@@ -454,18 +455,10 @@ export const crystal =
454
455
  },
455
456
  keywordPattern: "\\w+",
456
457
  },
457
- {
458
- relevance: 0,
459
- rules: [44, 4],
460
- scope: "regexp",
461
- begin: "//[a-z]*",
462
- end: "\\B|\\b",
463
- },
464
- { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
465
- { rules: [46, 4], scope: "regexp", begin: "/(?!\\/)", end: "/[a-z]*" },
458
+ { rules: [45, 4], scope: "regexp", begin: "/(?!\\/)", end: "/[a-z]*" },
466
459
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
467
- { rules: [48], scope: "meta", begin: "@\\[", end: "\\]" },
468
- { rules: [49], scope: "string", begin: '"', end: '"', illegal: "\\n" },
460
+ { rules: [47], scope: "meta", begin: "@\\[", end: "\\]" },
461
+ { rules: [48], scope: "string", begin: '"', end: '"', illegal: "\\n" },
469
462
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
470
463
  {
471
464
  rules: [],
@@ -473,7 +466,7 @@ export const crystal =
473
466
  begin: "(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])",
474
467
  end: "\\B|\\b",
475
468
  },
476
- { rules: [52, 53], scope: "comment", begin: "#", end: "$" },
469
+ { rules: [51, 52], scope: "comment", begin: "#", end: "$" },
477
470
  {
478
471
  relevance: 0,
479
472
  rules: [],
@@ -490,7 +483,7 @@ export const crystal =
490
483
  },
491
484
  {
492
485
  relevance: 0,
493
- rules: [55, 58, 59],
486
+ rules: [54, 57, 58],
494
487
  scope: "class",
495
488
  begin: "\\b(class|module|struct)(?!\\.)(?=\\b|\\s)",
496
489
  end: "$|;",
@@ -503,7 +496,7 @@ export const crystal =
503
496
  keywordPattern: "\\w+",
504
497
  notAfterDot: true,
505
498
  },
506
- { rules: [56, 57], scope: "comment", begin: "#", end: "$" },
499
+ { rules: [55, 56], scope: "comment", begin: "#", end: "$" },
507
500
  {
508
501
  relevance: 0,
509
502
  rules: [],
@@ -528,7 +521,7 @@ export const crystal =
528
521
  { rules: [], begin: "<", end: "\\B|\\b" },
529
522
  {
530
523
  relevance: 0,
531
- rules: [61, 64],
524
+ rules: [60, 63],
532
525
  scope: "class",
533
526
  begin: "\\b(lib|enum|union)(?!\\.)(?=\\b|\\s)",
534
527
  end: "$|;",
@@ -541,7 +534,7 @@ export const crystal =
541
534
  keywordPattern: "\\w+",
542
535
  notAfterDot: true,
543
536
  },
544
- { rules: [62, 63], scope: "comment", begin: "#", end: "$" },
537
+ { rules: [61, 62], scope: "comment", begin: "#", end: "$" },
545
538
  {
546
539
  relevance: 0,
547
540
  rules: [],
@@ -565,7 +558,7 @@ export const crystal =
565
558
  },
566
559
  {
567
560
  relevance: 2,
568
- rules: [66, 69],
561
+ rules: [65, 68],
569
562
  begin: "\\b(annotation)(?!\\.)(?=\\b|\\s)",
570
563
  end: "$|;",
571
564
  illegal: "=",
@@ -573,7 +566,7 @@ export const crystal =
573
566
  keywordPattern: "\\w+",
574
567
  notAfterDot: true,
575
568
  },
576
- { rules: [67, 68], scope: "comment", begin: "#", end: "$" },
569
+ { rules: [66, 67], scope: "comment", begin: "#", end: "$" },
577
570
  {
578
571
  relevance: 0,
579
572
  rules: [],
@@ -597,7 +590,7 @@ export const crystal =
597
590
  },
598
591
  {
599
592
  relevance: 0,
600
- rules: [71],
593
+ rules: [70],
601
594
  scope: "function",
602
595
  begin: "\\b(def)(?!\\.)(?=\\b|\\s)",
603
596
  end: "\\B\\b",
@@ -616,7 +609,7 @@ export const crystal =
616
609
  },
617
610
  {
618
611
  relevance: 2,
619
- rules: [73],
612
+ rules: [72],
620
613
  scope: "function",
621
614
  begin: "\\b(fun|macro)(?!\\.)(?=\\b|\\s)",
622
615
  end: "\\B\\b",
@@ -642,7 +635,7 @@ export const crystal =
642
635
  },
643
636
  {
644
637
  relevance: 0,
645
- rules: [2, 6, 8, 10, 12, 14, 16, 18, 20, 76],
638
+ rules: [2, 6, 8, 10, 12, 14, 16, 18, 20, 75],
646
639
  scope: "symbol",
647
640
  begin: ":",
648
641
  end: "\\B|\\b",
@@ -689,7 +682,7 @@ export const crystal =
689
682
  begin: "\\b([1-9][0-9_]*|0)(_?[ui](8|16|32|64|128))?",
690
683
  end: "\\B|\\b",
691
684
  },
692
- { rules: [83, 84], scope: "comment", begin: "#", end: "$" },
685
+ { rules: [82, 83], scope: "comment", begin: "#", end: "$" },
693
686
  {
694
687
  relevance: 0,
695
688
  rules: [],
@@ -704,7 +697,7 @@ export const crystal =
704
697
  "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}",
705
698
  end: "\\B|\\b",
706
699
  },
707
- { rules: [86, 87], scope: "comment", begin: "#", end: "$" },
700
+ { rules: [85, 86], scope: "comment", begin: "#", end: "$" },
708
701
  {
709
702
  relevance: 0,
710
703
  rules: [],
@@ -719,7 +712,7 @@ export const crystal =
719
712
  "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}",
720
713
  end: "\\B|\\b",
721
714
  },
722
- { rules: [89, 90], scope: "comment", begin: "#", end: "$" },
715
+ { rules: [88, 89], scope: "comment", begin: "#", end: "$" },
723
716
  {
724
717
  relevance: 0,
725
718
  rules: [],
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "csharp" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "csharp" 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 csharp =
@@ -518,7 +518,7 @@ export const csharp =
518
518
  relevance: 0,
519
519
  rules: [],
520
520
  scope: "number",
521
- begin: "\\b(0b[01']+)",
521
+ begin: "\\b0[bB]_*[01](_*[01])*([uU][lL]?|[lL][uU]?)?",
522
522
  end: "\\B|\\b",
523
523
  },
524
524
  {
@@ -526,7 +526,7 @@ export const csharp =
526
526
  rules: [],
527
527
  scope: "number",
528
528
  begin:
529
- "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)",
529
+ "(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*([uU][lL]?|[lL][uU]?)?",
530
530
  end: "\\B|\\b",
531
531
  },
532
532
  {
@@ -534,7 +534,7 @@ export const csharp =
534
534
  rules: [],
535
535
  scope: "number",
536
536
  begin:
537
- "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)",
537
+ "(-?)(\\b\\d(_*\\d)*(\\.(\\d(_*\\d)*)?)?|\\.\\d(_*\\d)*)([eE][-+]?\\d(_*\\d)*)?([fFdDmM]|[uU][lL]?|[lL][uU]?)?",
538
538
  end: "\\B|\\b",
539
539
  },
540
540
  {
package/languages/csp.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "csp" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "csp" 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 csp = /** @type {import("./index.d.ts").LanguageType<"csp">} */ ({
@@ -17,6 +17,7 @@ export const csp = /** @type {import("./index.d.ts").LanguageType<"csp">} */ ({
17
17
  "child-src": ["keyword", 1],
18
18
  "connect-src": ["keyword", 1],
19
19
  "default-src": ["keyword", 1],
20
+ "fenced-frame-src": ["keyword", 1],
20
21
  "font-src": ["keyword", 1],
21
22
  "form-action": ["keyword", 1],
22
23
  "frame-ancestors": ["keyword", 1],
@@ -26,10 +27,16 @@ export const csp = /** @type {import("./index.d.ts").LanguageType<"csp">} */ ({
26
27
  "media-src": ["keyword", 1],
27
28
  "object-src": ["keyword", 1],
28
29
  "plugin-types": ["keyword", 1],
30
+ "report-to": ["keyword", 1],
29
31
  "report-uri": ["keyword", 1],
32
+ "require-trusted-types-for": ["keyword", 1],
30
33
  sandbox: ["keyword", 1],
31
34
  "script-src": ["keyword", 1],
35
+ "script-src-attr": ["keyword", 1],
36
+ "script-src-elem": ["keyword", 1],
32
37
  "style-src": ["keyword", 1],
38
+ "style-src-attr": ["keyword", 1],
39
+ "style-src-elem": ["keyword", 1],
33
40
  "trusted-types": ["keyword", 1],
34
41
  "unsafe-hashes": ["keyword", 1],
35
42
  "worker-src": ["keyword", 1],
package/languages/css.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "css" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "css" 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 css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
@@ -11,7 +11,7 @@ export const css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
11
11
  disableAutodetect: false,
12
12
  states: [
13
13
  {
14
- rules: [1, 4, 5, 6, 7, 8, 13, 14, 15, 16, 17, 34, 42],
14
+ rules: [1, 4, 5, 6, 7, 8, 13, 14, 15, 16, 17, 35, 43],
15
15
  illegal: "[=|'\\$]",
16
16
  keywords: { from: ["selector-tag", 1], to: ["selector-tag", 1] },
17
17
  keywordPattern: "\\w+",
@@ -89,10 +89,10 @@ export const css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
89
89
  rules: [],
90
90
  scope: "attribute",
91
91
  begin:
92
- "\\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",
92
+ "\\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",
93
93
  end: "\\B|\\b",
94
94
  },
95
- { rules: [18, 21, 22, 5, 23, 25, 27, 33], begin: ":", end: "[;}{]" },
95
+ { rules: [18, 21, 22, 5, 23, 24, 26, 28, 34], begin: ":", end: "[;}{]" },
96
96
  { rules: [19, 20], scope: "comment", begin: "/\\*", end: "\\*/" },
97
97
  {
98
98
  relevance: 0,
@@ -115,21 +115,28 @@ export const css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
115
115
  end: "\\B|\\b",
116
116
  },
117
117
  { rules: [], scope: "meta", begin: "!important", end: "\\B|\\b" },
118
- { rules: [24], scope: "string", begin: "'", end: "'", illegal: "\\n" },
118
+ {
119
+ rules: [],
120
+ scope: "number",
121
+ begin:
122
+ "\\b[Uu]\\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?",
123
+ end: "\\B|\\b",
124
+ },
125
+ { rules: [25], scope: "string", begin: "'", end: "'", illegal: "\\n" },
119
126
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
120
- { rules: [26], scope: "string", begin: '"', end: '"', illegal: "\\n" },
127
+ { rules: [27], scope: "string", begin: '"', end: '"', illegal: "\\n" },
121
128
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
122
129
  {
123
130
  relevance: 0,
124
- rules: [28, 30, 32],
131
+ rules: [29, 31, 33],
125
132
  begin: "(url|data-uri)\\(",
126
133
  end: "\\)",
127
134
  keywords: { url: ["built_in", 1], "data-uri": ["built_in", 1] },
128
135
  keywordPattern: "\\w+",
129
136
  },
130
- { rules: [29], scope: "string", begin: "'", end: "'", illegal: "\\n" },
137
+ { rules: [30], scope: "string", begin: "'", end: "'", illegal: "\\n" },
131
138
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
132
- { rules: [31], scope: "string", begin: '"', end: '"', illegal: "\\n" },
139
+ { rules: [32], scope: "string", begin: '"', end: '"', illegal: "\\n" },
133
140
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
134
141
  {
135
142
  rules: [],
@@ -141,7 +148,7 @@ export const css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
141
148
  { rules: [], scope: "built_in", begin: "[\\w-]+(?=\\()", end: "\\B|\\b" },
142
149
  {
143
150
  relevance: 0,
144
- rules: [35, 36],
151
+ rules: [36, 37],
145
152
  begin: "(?=@)",
146
153
  end: "[{;]",
147
154
  illegal: ":",
@@ -154,7 +161,7 @@ export const css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
154
161
  },
155
162
  {
156
163
  relevance: 0,
157
- rules: [37, 38, 40, 5],
164
+ rules: [38, 39, 41, 5],
158
165
  begin: "\\s",
159
166
  endsWithParent: true,
160
167
  excludeEnd: true,
@@ -200,9 +207,9 @@ export const css = /** @type {import("./index.d.ts").LanguageType<"css">} */ ({
200
207
  keywordPattern: "[a-z-]+",
201
208
  },
202
209
  { rules: [], scope: "attribute", begin: "[a-z-]+(?=:)", end: "\\B|\\b" },
203
- { rules: [39], scope: "string", begin: "'", end: "'", illegal: "\\n" },
210
+ { rules: [40], scope: "string", begin: "'", end: "'", illegal: "\\n" },
204
211
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
205
- { rules: [41], scope: "string", begin: '"', end: '"', illegal: "\\n" },
212
+ { rules: [42], scope: "string", begin: '"', end: '"', illegal: "\\n" },
206
213
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
207
214
  {
208
215
  rules: [],
package/languages/d.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "d" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "d" 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 d = /** @type {import("./index.d.ts").LanguageType<"d">} */ ({
package/languages/dart.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "dart" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "dart" 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 dart =
@@ -12,7 +12,9 @@ export const dart =
12
12
  disableAutodetect: false,
13
13
  states: [
14
14
  {
15
- rules: [1, 2, 3, 4, 5, 11, 13, 15, 17, 20, 24, 27, 30, 9, 10, 33, 34],
15
+ rules: [
16
+ 1, 2, 3, 4, 5, 11, 13, 15, 17, 20, 24, 27, 30, 33, 34, 9, 10, 35,
17
+ ],
16
18
  keywords: {
17
19
  abstract: ["keyword", 1],
18
20
  as: ["keyword", 1],
@@ -302,8 +304,21 @@ export const dart =
302
304
  begin: "[a-zA-Z_]\\w*",
303
305
  end: "\\B|\\b",
304
306
  },
307
+ {
308
+ rules: [],
309
+ scope: "title.class",
310
+ begin:
311
+ "\\b_?(?:(?:[A-Z]+[a-z0-9]+)+|(?:[A-Z]+[a-z0-9]+)+[A-Z]+)(?![A-Za-z0-9_])",
312
+ end: "\\B|\\b",
313
+ },
314
+ {
315
+ rules: [],
316
+ scope: "title.function",
317
+ begin:
318
+ "\\b(?!(?:assert|catch|for|if|switch|while)\\b)[a-z_][A-Za-z0-9_]*(?=\\()",
319
+ end: "\\B|\\b",
320
+ },
305
321
  { rules: [], scope: "meta", begin: "@[A-Za-z]+", end: "\\B|\\b" },
306
- { rules: [], begin: "=>", end: "\\B|\\b" },
307
322
  ],
308
323
  },
309
324
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "delphi" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "delphi" 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 delphi =
package/languages/diff.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "diff" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "diff" 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 diff =
@@ -18,7 +18,7 @@ export const diff =
18
18
  rules: [],
19
19
  scope: "meta",
20
20
  begin:
21
- "(?:^@@ +-\\d+,\\d+ +\\+\\d+,\\d+ +@@|^\\*\\*\\* +\\d+,\\d+ +\\*\\*\\*\\*$|^--- +\\d+,\\d+ +----$)",
21
+ "(?:^@@ +-\\d+,\\d+ +\\+\\d+,\\d+ +@@|^@@ +-\\d+ +\\+\\d+,\\d+ +@@|^@@ +-\\d+,\\d+ +\\+\\d+ +@@|^@@ +-\\d+ +\\+\\d+ +@@|^\\*\\*\\* +\\d+,\\d+ +\\*\\*\\*\\*$|^--- +\\d+,\\d+ +----$)",
22
22
  end: "\\B|\\b",
23
23
  },
24
24
  {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "django" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "django" 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 django =
package/languages/dns.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "dns" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "dns" 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 dns = /** @type {import("./index.d.ts").LanguageType<"dns">} */ ({
@@ -7,51 +7,50 @@ export const dns = /** @type {import("./index.d.ts").LanguageType<"dns">} */ ({
7
7
  aliases: ["bind", "zone"],
8
8
  register: {
9
9
  name: "dns",
10
- caseInsensitive: false,
10
+ caseInsensitive: true,
11
11
  unicode: false,
12
12
  disableAutodetect: false,
13
13
  states: [
14
14
  {
15
- rules: [1, 4, 5, 6, 7],
15
+ rules: [1, 4, 5, 7, 8, 9, 10, 11, 12, 13],
16
16
  keywords: {
17
- IN: ["keyword", 0],
18
- A: ["keyword", 1],
19
- AAAA: ["keyword", 1],
20
- AFSDB: ["keyword", 1],
21
- APL: ["keyword", 1],
22
- CAA: ["keyword", 1],
23
- CDNSKEY: ["keyword", 1],
24
- CDS: ["keyword", 1],
25
- CERT: ["keyword", 1],
26
- CNAME: ["keyword", 1],
27
- DHCID: ["keyword", 1],
28
- DLV: ["keyword", 1],
29
- DNAME: ["keyword", 1],
30
- DNSKEY: ["keyword", 1],
31
- DS: ["keyword", 1],
32
- HIP: ["keyword", 1],
33
- IPSECKEY: ["keyword", 1],
34
- KEY: ["keyword", 1],
35
- KX: ["keyword", 1],
36
- LOC: ["keyword", 1],
37
- MX: ["keyword", 1],
38
- NAPTR: ["keyword", 1],
39
- NS: ["keyword", 1],
40
- NSEC: ["keyword", 1],
41
- NSEC3: ["keyword", 1],
42
- NSEC3PARAM: ["keyword", 1],
43
- PTR: ["keyword", 1],
44
- RRSIG: ["keyword", 1],
45
- RP: ["keyword", 1],
46
- SIG: ["keyword", 1],
47
- SOA: ["keyword", 1],
48
- SRV: ["keyword", 1],
49
- SSHFP: ["keyword", 1],
50
- TA: ["keyword", 1],
51
- TKEY: ["keyword", 1],
52
- TLSA: ["keyword", 1],
53
- TSIG: ["keyword", 1],
54
- TXT: ["keyword", 1],
17
+ a: ["keyword", 1],
18
+ aaaa: ["keyword", 1],
19
+ afsdb: ["keyword", 1],
20
+ apl: ["keyword", 1],
21
+ caa: ["keyword", 1],
22
+ cdnskey: ["keyword", 1],
23
+ cds: ["keyword", 1],
24
+ cert: ["keyword", 1],
25
+ cname: ["keyword", 1],
26
+ dhcid: ["keyword", 1],
27
+ dlv: ["keyword", 1],
28
+ dname: ["keyword", 1],
29
+ dnskey: ["keyword", 1],
30
+ ds: ["keyword", 1],
31
+ hip: ["keyword", 1],
32
+ ipseckey: ["keyword", 1],
33
+ key: ["keyword", 1],
34
+ kx: ["keyword", 1],
35
+ loc: ["keyword", 1],
36
+ mx: ["keyword", 1],
37
+ naptr: ["keyword", 1],
38
+ ns: ["keyword", 1],
39
+ nsec: ["keyword", 1],
40
+ nsec3: ["keyword", 1],
41
+ nsec3param: ["keyword", 1],
42
+ ptr: ["keyword", 1],
43
+ rrsig: ["keyword", 1],
44
+ rp: ["keyword", 1],
45
+ sig: ["keyword", 1],
46
+ soa: ["keyword", 1],
47
+ srv: ["keyword", 1],
48
+ sshfp: ["keyword", 1],
49
+ ta: ["keyword", 1],
50
+ tkey: ["keyword", 1],
51
+ tlsa: ["keyword", 1],
52
+ tsig: ["keyword", 1],
53
+ txt: ["keyword", 1],
55
54
  },
56
55
  keywordPattern: "\\w+",
57
56
  },
@@ -70,24 +69,53 @@ export const dns = /** @type {import("./index.d.ts").LanguageType<"dns">} */ ({
70
69
  "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}",
71
70
  end: "\\B|\\b",
72
71
  },
72
+ {
73
+ rules: [],
74
+ begin:
75
+ "(\\bCAA\\b)([ \\t]+)(\\d+)([ \\t]+)(\\b(?:issuewild|issue|iodef|contactemail|contactphone|issuevmc|issuemail)\\b)",
76
+ end: "\\B|\\b",
77
+ captureScopes: {
78
+ 1: "keyword",
79
+ 2: null,
80
+ 3: "number",
81
+ 4: null,
82
+ 5: "attr",
83
+ },
84
+ },
85
+ { rules: [6], scope: "string", begin: '"', end: '"', illegal: "\\n" },
86
+ {
87
+ rules: [],
88
+ scope: "char.escape",
89
+ begin: "\\\\(?:\\d{3}|[^\\d\\n])",
90
+ end: "\\B|\\b",
91
+ },
92
+ {
93
+ rules: [],
94
+ begin:
95
+ '(\\bTXT\\b)(\\s+)((?!")(?:\\\\(?:\\d{3}|[^\\d\\n])|[^\\s;"()\\\\])+)',
96
+ end: "\\B|\\b",
97
+ captureScopes: { 1: "keyword", 2: null, 3: "string" },
98
+ },
73
99
  {
74
100
  rules: [],
75
101
  scope: "meta",
76
102
  begin: "^\\$(TTL|GENERATE|INCLUDE|ORIGIN)\\b",
77
103
  end: "\\B|\\b",
78
104
  },
105
+ { rules: [], scope: "punctuation", begin: "[()]", end: "\\B|\\b" },
106
+ { rules: [], scope: "type", begin: "\\b(?:IN|CH|HS)\\b", end: "\\B|\\b" },
79
107
  {
80
108
  rules: [],
81
109
  scope: "number",
82
110
  begin:
83
- "((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b",
111
+ "(?:(?:[0-9A-Fa-f]{1,4}:){7}(?:[0-9A-Fa-f]{1,4}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?::[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){5}(?:(?::[0-9A-Fa-f]{1,4}){1,2}|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){4}(?:(?::[0-9A-Fa-f]{1,4}){1,3}|(?::[0-9A-Fa-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){3}(?:(?::[0-9A-Fa-f]{1,4}){1,4}|(?::[0-9A-Fa-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){2}(?:(?::[0-9A-Fa-f]{1,4}){1,5}|(?::[0-9A-Fa-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:)(?:(?::[0-9A-Fa-f]{1,4}){1,6}|(?::[0-9A-Fa-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)|(?::(?:(?::[0-9A-Fa-f]{1,4}){1,7}|(?::[0-9A-Fa-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:)))(?![0-9A-Fa-f:])",
84
112
  end: "\\B|\\b",
85
113
  },
86
114
  {
87
115
  rules: [],
88
116
  scope: "number",
89
117
  begin:
90
- "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b",
118
+ "(?:(?:25[0-5]|(?:2[0-4]|1?\\d)?\\d)\\.){3}(?:25[0-5]|(?:2[0-4]|1?\\d)?\\d)\\b",
91
119
  end: "\\B|\\b",
92
120
  },
93
121
  {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "dockerfile" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "dockerfile" 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 dockerfile =