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/less.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "less" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "less" 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 less =
@@ -12,7 +12,7 @@ export const less =
12
12
  disableAutodetect: false,
13
13
  states: [
14
14
  {
15
- rules: [1, 4, 7, 35, 50, 51, 103, 52, 89, 121, 34],
15
+ rules: [1, 4, 7, 36, 51, 52, 104, 53, 90, 122, 35],
16
16
  illegal: "[=>'/<($\"]",
17
17
  },
18
18
  { rules: [2, 3], scope: "comment", begin: "//", end: "$" },
@@ -55,7 +55,9 @@ export const less =
55
55
  },
56
56
  {
57
57
  relevance: 0,
58
- rules: [9, 12, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34],
58
+ rules: [
59
+ 9, 12, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35,
60
+ ],
59
61
  begin: "\\B|\\b",
60
62
  end: "[;{}]",
61
63
  returnEnd: true,
@@ -148,6 +150,13 @@ export const less =
148
150
  end: "[\\)\\n]",
149
151
  excludeEnd: true,
150
152
  },
153
+ {
154
+ rules: [],
155
+ scope: "number",
156
+ begin:
157
+ "\\b[Uu]\\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?",
158
+ end: "\\B|\\b",
159
+ },
151
160
  {
152
161
  rules: [],
153
162
  scope: "number",
@@ -156,7 +165,9 @@ export const less =
156
165
  },
157
166
  {
158
167
  relevance: 0,
159
- rules: [22, 25, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34],
168
+ rules: [
169
+ 23, 26, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35,
170
+ ],
160
171
  begin: "\\(",
161
172
  end: "\\)",
162
173
  keywords: {
@@ -200,7 +211,7 @@ export const less =
200
211
  },
201
212
  keywordPattern: "[a-z-]+",
202
213
  },
203
- { rules: [23, 24], scope: "comment", begin: "//", end: "$" },
214
+ { rules: [24, 25], scope: "comment", begin: "//", end: "$" },
204
215
  {
205
216
  relevance: 0,
206
217
  rules: [],
@@ -215,7 +226,7 @@ export const less =
215
226
  "[ ]+((?: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}",
216
227
  end: "\\B|\\b",
217
228
  },
218
- { rules: [26, 27], scope: "comment", begin: "/\\*", end: "\\*/" },
229
+ { rules: [27, 28], scope: "comment", begin: "/\\*", end: "\\*/" },
219
230
  {
220
231
  relevance: 0,
221
232
  rules: [],
@@ -274,17 +285,17 @@ export const less =
274
285
  scope: "variable",
275
286
  begin: "@[\\w-]+\\s*:",
276
287
  end: "\\B|\\b",
277
- starts: 36,
288
+ starts: 37,
278
289
  },
279
290
  {
280
291
  rules: [
281
- 37, 40, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34, 43,
292
+ 38, 41, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35, 44,
282
293
  ],
283
294
  begin: "\\B|\\b",
284
295
  end: "[;}]",
285
296
  returnEnd: true,
286
297
  },
287
- { rules: [38, 39], scope: "comment", begin: "//", end: "$" },
298
+ { rules: [39, 40], scope: "comment", begin: "//", end: "$" },
288
299
  {
289
300
  relevance: 0,
290
301
  rules: [],
@@ -299,7 +310,7 @@ export const less =
299
310
  "[ ]+((?: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}",
300
311
  end: "\\B|\\b",
301
312
  },
302
- { rules: [41, 42], scope: "comment", begin: "/\\*", end: "\\*/" },
313
+ { rules: [42, 43], scope: "comment", begin: "/\\*", end: "\\*/" },
303
314
  {
304
315
  relevance: 0,
305
316
  rules: [],
@@ -315,11 +326,11 @@ export const less =
315
326
  end: "\\B|\\b",
316
327
  },
317
328
  {
318
- rules: [44, 47, 7, 35, 50, 51, 103, 52, 89, 114, 34],
329
+ rules: [45, 48, 7, 36, 51, 52, 104, 53, 90, 115, 35],
319
330
  begin: "\\{",
320
331
  end: "\\}",
321
332
  },
322
- { rules: [45, 46], scope: "comment", begin: "//", end: "$" },
333
+ { rules: [46, 47], scope: "comment", begin: "//", end: "$" },
323
334
  {
324
335
  relevance: 0,
325
336
  rules: [],
@@ -334,7 +345,7 @@ export const less =
334
345
  "[ ]+((?: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}",
335
346
  end: "\\B|\\b",
336
347
  },
337
- { rules: [48, 49], scope: "comment", begin: "/\\*", end: "\\*/" },
348
+ { rules: [49, 50], scope: "comment", begin: "/\\*", end: "\\*/" },
338
349
  {
339
350
  relevance: 0,
340
351
  rules: [],
@@ -354,10 +365,10 @@ export const less =
354
365
  scope: "variable",
355
366
  begin: "@[\\w-]+",
356
367
  end: "\\B|\\b",
357
- starts: 36,
368
+ starts: 37,
358
369
  },
359
370
  {
360
- rules: [52, 89],
371
+ rules: [53, 90],
361
372
  begin:
362
373
  "[\\w-]+:(:)?(where|visited|valid|user-invalid|target-within|target|spelling-error|slotted|selection|scope|root|right|required|read-write|read-only|placeholder-shown|placeholder|past|part|out-of-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-col|nth-last-child|nth-col|nth-child|not|marker|local-link|link|left|last-of-type|last-child|lang|is|invalid|indeterminate|in-range|hover|host-context|host|has|grammar-error|future|fullscreen|focus-within|focus-visible|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|drop|disabled|dir|defined|default|current|cue-region|cue|checked|blank|before|backdrop|any-link|after|active)",
363
374
  end: "\\B|\\b",
@@ -366,7 +377,7 @@ export const less =
366
377
  {
367
378
  relevance: 0,
368
379
  rules: [
369
- 53, 56, 59, 67, 68, 69, 17, 70, 71, 72, 73, 74, 79, 80, 81, 88, 34,
380
+ 54, 57, 60, 68, 69, 70, 17, 71, 72, 73, 74, 75, 80, 81, 82, 89, 35,
370
381
  ],
371
382
  begin: "[\\.#:&\\[>]",
372
383
  end: "[;{}]",
@@ -374,7 +385,7 @@ export const less =
374
385
  returnEnd: true,
375
386
  illegal: "[<='$\"]",
376
387
  },
377
- { rules: [54, 55], scope: "comment", begin: "//", end: "$" },
388
+ { rules: [55, 56], scope: "comment", begin: "//", end: "$" },
378
389
  {
379
390
  relevance: 0,
380
391
  rules: [],
@@ -389,7 +400,7 @@ export const less =
389
400
  "[ ]+((?: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}",
390
401
  end: "\\B|\\b",
391
402
  },
392
- { rules: [57, 58], scope: "comment", begin: "/\\*", end: "\\*/" },
403
+ { rules: [58, 59], scope: "comment", begin: "/\\*", end: "\\*/" },
393
404
  {
394
405
  relevance: 0,
395
406
  rules: [],
@@ -407,7 +418,7 @@ export const less =
407
418
  {
408
419
  relevance: 0,
409
420
  rules: [
410
- 60, 61, 64, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34,
421
+ 61, 62, 65, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35,
411
422
  ],
412
423
  begin: "\\b(when)(?!\\.)(?=\\b|\\s)",
413
424
  endsWithParent: true,
@@ -424,7 +435,7 @@ export const less =
424
435
  keywordPattern: "\\w+",
425
436
  notAfterDot: true,
426
437
  },
427
- { rules: [62, 63], scope: "comment", begin: "//", end: "$" },
438
+ { rules: [63, 64], scope: "comment", begin: "//", end: "$" },
428
439
  {
429
440
  relevance: 0,
430
441
  rules: [],
@@ -439,7 +450,7 @@ export const less =
439
450
  "[ ]+((?: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}",
440
451
  end: "\\B|\\b",
441
452
  },
442
- { rules: [65, 66], scope: "comment", begin: "/\\*", end: "\\*/" },
453
+ { rules: [66, 67], scope: "comment", begin: "/\\*", end: "\\*/" },
443
454
  {
444
455
  relevance: 0,
445
456
  rules: [],
@@ -496,15 +507,15 @@ export const less =
496
507
  end: "\\B|\\b",
497
508
  },
498
509
  {
499
- rules: [75, 77],
510
+ rules: [76, 78],
500
511
  scope: "selector-attr",
501
512
  begin: "\\[",
502
513
  end: "\\]",
503
514
  illegal: "$",
504
515
  },
505
- { rules: [76], scope: "string", begin: "'", end: "'", illegal: "\\n" },
516
+ { rules: [77], scope: "string", begin: "'", end: "'", illegal: "\\n" },
506
517
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
507
- { rules: [78], scope: "string", begin: '"', end: '"', illegal: "\\n" },
518
+ { rules: [79], scope: "string", begin: '"', end: '"', illegal: "\\n" },
508
519
  { relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
509
520
  {
510
521
  rules: [],
@@ -523,12 +534,12 @@ export const less =
523
534
  {
524
535
  relevance: 0,
525
536
  rules: [
526
- 82, 85, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34, 43,
537
+ 83, 86, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35, 44,
527
538
  ],
528
539
  begin: "\\(",
529
540
  end: "\\)",
530
541
  },
531
- { rules: [83, 84], scope: "comment", begin: "//", end: "$" },
542
+ { rules: [84, 85], scope: "comment", begin: "//", end: "$" },
532
543
  {
533
544
  relevance: 0,
534
545
  rules: [],
@@ -543,7 +554,7 @@ export const less =
543
554
  "[ ]+((?: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}",
544
555
  end: "\\B|\\b",
545
556
  },
546
- { rules: [86, 87], scope: "comment", begin: "/\\*", end: "\\*/" },
557
+ { rules: [87, 88], scope: "comment", begin: "/\\*", end: "\\*/" },
547
558
  {
548
559
  relevance: 0,
549
560
  rules: [],
@@ -562,7 +573,7 @@ export const less =
562
573
  {
563
574
  relevance: 0,
564
575
  rules: [
565
- 90, 93, 96, 67, 68, 69, 17, 70, 71, 72, 73, 74, 79, 80, 81, 88, 34,
576
+ 91, 94, 97, 68, 69, 70, 17, 71, 72, 73, 74, 75, 80, 81, 82, 89, 35,
566
577
  ],
567
578
  begin: "([\\w-]+|@\\{[\\w-]+\\})",
568
579
  end: "\\{",
@@ -570,7 +581,7 @@ export const less =
570
581
  returnEnd: true,
571
582
  illegal: "[<='$\"]",
572
583
  },
573
- { rules: [91, 92], scope: "comment", begin: "//", end: "$" },
584
+ { rules: [92, 93], scope: "comment", begin: "//", end: "$" },
574
585
  {
575
586
  relevance: 0,
576
587
  rules: [],
@@ -585,7 +596,7 @@ export const less =
585
596
  "[ ]+((?: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}",
586
597
  end: "\\B|\\b",
587
598
  },
588
- { rules: [94, 95], scope: "comment", begin: "/\\*", end: "\\*/" },
599
+ { rules: [95, 96], scope: "comment", begin: "/\\*", end: "\\*/" },
589
600
  {
590
601
  relevance: 0,
591
602
  rules: [],
@@ -603,7 +614,7 @@ export const less =
603
614
  {
604
615
  relevance: 0,
605
616
  rules: [
606
- 60, 97, 100, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34,
617
+ 61, 98, 101, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35,
607
618
  ],
608
619
  begin: "\\b(when)(?!\\.)(?=\\b|\\s)",
609
620
  endsWithParent: true,
@@ -611,7 +622,7 @@ export const less =
611
622
  keywordPattern: "\\w+",
612
623
  notAfterDot: true,
613
624
  },
614
- { rules: [98, 99], scope: "comment", begin: "//", end: "$" },
625
+ { rules: [99, 100], scope: "comment", begin: "//", end: "$" },
615
626
  {
616
627
  relevance: 0,
617
628
  rules: [],
@@ -626,7 +637,7 @@ export const less =
626
637
  "[ ]+((?: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}",
627
638
  end: "\\B|\\b",
628
639
  },
629
- { rules: [101, 102], scope: "comment", begin: "/\\*", end: "\\*/" },
640
+ { rules: [102, 103], scope: "comment", begin: "/\\*", end: "\\*/" },
630
641
  {
631
642
  relevance: 0,
632
643
  rules: [],
@@ -643,7 +654,7 @@ export const less =
643
654
  },
644
655
  {
645
656
  relevance: 0,
646
- rules: [104, 105, 106],
657
+ rules: [105, 106, 107],
647
658
  begin: "([\\w-]+|@\\{[\\w-]+\\})\\s*:",
648
659
  end: "[;}]",
649
660
  returnBegin: true,
@@ -659,18 +670,20 @@ export const less =
659
670
  rules: [],
660
671
  scope: "attribute",
661
672
  begin:
662
- "\\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",
673
+ "\\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",
663
674
  end: "(?=:)",
664
- starts: 107,
675
+ starts: 108,
665
676
  },
666
677
  {
667
678
  relevance: 0,
668
- rules: [108, 111, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34],
679
+ rules: [
680
+ 109, 112, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34, 35,
681
+ ],
669
682
  begin: "\\B|\\b",
670
683
  endsWithParent: true,
671
684
  illegal: "[<=$]",
672
685
  },
673
- { rules: [109, 110], scope: "comment", begin: "//", end: "$" },
686
+ { rules: [110, 111], scope: "comment", begin: "//", end: "$" },
674
687
  {
675
688
  relevance: 0,
676
689
  rules: [],
@@ -685,7 +698,7 @@ export const less =
685
698
  "[ ]+((?: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}",
686
699
  end: "\\B|\\b",
687
700
  },
688
- { rules: [112, 113], scope: "comment", begin: "/\\*", end: "\\*/" },
701
+ { rules: [113, 114], scope: "comment", begin: "/\\*", end: "\\*/" },
689
702
  {
690
703
  relevance: 0,
691
704
  rules: [],
@@ -703,7 +716,8 @@ export const less =
703
716
  {
704
717
  relevance: 0,
705
718
  rules: [
706
- 60, 115, 118, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34,
719
+ 61, 116, 119, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34,
720
+ 35,
707
721
  ],
708
722
  begin: "\\b(when)(?!\\.)(?=\\b|\\s)",
709
723
  endsWithParent: true,
@@ -711,7 +725,7 @@ export const less =
711
725
  keywordPattern: "\\w+",
712
726
  notAfterDot: true,
713
727
  },
714
- { rules: [116, 117], scope: "comment", begin: "//", end: "$" },
728
+ { rules: [117, 118], scope: "comment", begin: "//", end: "$" },
715
729
  {
716
730
  relevance: 0,
717
731
  rules: [],
@@ -726,7 +740,7 @@ export const less =
726
740
  "[ ]+((?: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}",
727
741
  end: "\\B|\\b",
728
742
  },
729
- { rules: [119, 120], scope: "comment", begin: "/\\*", end: "\\*/" },
743
+ { rules: [120, 121], scope: "comment", begin: "/\\*", end: "\\*/" },
730
744
  {
731
745
  relevance: 0,
732
746
  rules: [],
@@ -744,7 +758,8 @@ export const less =
744
758
  {
745
759
  relevance: 0,
746
760
  rules: [
747
- 60, 122, 125, 15, 16, 17, 18, 20, 21, 28, 29, 30, 31, 32, 33, 34,
761
+ 61, 123, 126, 15, 16, 17, 18, 20, 21, 22, 29, 30, 31, 32, 33, 34,
762
+ 35,
748
763
  ],
749
764
  begin: "\\b(when)(?!\\.)(?=\\b|\\s)",
750
765
  endsWithParent: true,
@@ -752,7 +767,7 @@ export const less =
752
767
  keywordPattern: "\\w+",
753
768
  notAfterDot: true,
754
769
  },
755
- { rules: [123, 124], scope: "comment", begin: "//", end: "$" },
770
+ { rules: [124, 125], scope: "comment", begin: "//", end: "$" },
756
771
  {
757
772
  relevance: 0,
758
773
  rules: [],
@@ -767,7 +782,7 @@ export const less =
767
782
  "[ ]+((?: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}",
768
783
  end: "\\B|\\b",
769
784
  },
770
- { rules: [126, 127], scope: "comment", begin: "/\\*", end: "\\*/" },
785
+ { rules: [127, 128], scope: "comment", begin: "/\\*", end: "\\*/" },
771
786
  {
772
787
  relevance: 0,
773
788
  rules: [],
package/languages/lisp.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "lisp" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "lisp" 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 lisp =
@@ -90,7 +90,12 @@ export const lisp =
90
90
  begin: "['`]\\(",
91
91
  end: "\\)",
92
92
  },
93
- { rules: [], begin: "\\*", end: "\\*" },
93
+ {
94
+ rules: [],
95
+ scope: "variable",
96
+ begin: "\\*[^\\s()*]+\\*",
97
+ end: "\\B|\\b",
98
+ },
94
99
  {
95
100
  rules: [],
96
101
  scope: "symbol",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "livecodeserver" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "livecodeserver" 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 livecodeserver =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "livescript" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "livescript" 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 livescript =
package/languages/llvm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "llvm" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "llvm" 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 llvm =
@@ -13,7 +13,7 @@ export const llvm =
13
13
  states: [
14
14
  {
15
15
  rules: [
16
- 1, 2, 5, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
16
+ 1, 2, 5, 8, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
17
17
  ],
18
18
  keywords: {
19
19
  begin: ["keyword", 1],
@@ -294,7 +294,22 @@ export const llvm =
294
294
  "[ ]+((?: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}",
295
295
  end: "\\B|\\b",
296
296
  },
297
- { rules: [9], scope: "string", begin: '"', end: '"' },
297
+ { rules: [9, 10], scope: "comment", begin: "/\\*", end: "\\*/" },
298
+ {
299
+ relevance: 0,
300
+ rules: [],
301
+ scope: "doctag",
302
+ begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
303
+ end: "(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",
304
+ excludeBegin: true,
305
+ },
306
+ {
307
+ rules: [],
308
+ begin:
309
+ "[ ]+((?: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}",
310
+ end: "\\B|\\b",
311
+ },
312
+ { rules: [12], scope: "string", begin: '"', end: '"' },
298
313
  {
299
314
  rules: [],
300
315
  scope: "char.escape",
package/languages/lsl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "lsl" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "lsl" 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 lsl = /** @type {import("./index.d.ts").LanguageType<"lsl">} */ ({
package/languages/lua.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "lua" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "lua" 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 lua = /** @type {import("./index.d.ts").LanguageType<"lua">} */ ({
@@ -28,6 +28,7 @@ export const lua = /** @type {import("./index.d.ts").LanguageType<"lua">} */ ({
28
28
  if: ["keyword", 0],
29
29
  in: ["keyword", 0],
30
30
  local: ["keyword", 1],
31
+ global: ["keyword", 1],
31
32
  not: ["keyword", 0],
32
33
  or: ["keyword", 0],
33
34
  repeat: ["keyword", 1],
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "makefile" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "makefile" 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 makefile =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "markdown" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "markdown" 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 markdown =
@@ -14,7 +14,7 @@ export const markdown =
14
14
  states: [
15
15
  {
16
16
  rules: [
17
- 1, 20, 2, 23, 12, 15, 16, 19, 24, 25, 26, 27, 28, 29, 30, 32, 3, 8,
17
+ 1, 20, 2, 23, 24, 12, 15, 16, 19, 25, 26, 27, 28, 29, 30, 31, 3, 8,
18
18
  9, 10, 11, 33, 36,
19
19
  ],
20
20
  },
@@ -159,6 +159,11 @@ export const markdown =
159
159
  end: "\\s+",
160
160
  excludeEnd: true,
161
161
  },
162
+ {
163
+ rules: [],
164
+ begin: "^ {0,3}([-*_])[ \\t]*(?:\\1[ \\t]*){2,}$",
165
+ end: "\\B|\\b",
166
+ },
162
167
  {
163
168
  rules: [2, 3, 8, 9, 10, 11, 12, 15, 16, 19],
164
169
  scope: "quote",
@@ -182,13 +187,12 @@ export const markdown =
182
187
  { rules: [], scope: "code", begin: "`.+?`", end: "\\B|\\b" },
183
188
  {
184
189
  relevance: 0,
185
- rules: [31],
190
+ rules: [32],
186
191
  scope: "code",
187
192
  begin: "(?=^( {4}|\\t))",
188
193
  end: "\\B|\\b",
189
194
  },
190
195
  { rules: [], begin: "^( {4}|\\t)", end: "(\\n)$" },
191
- { rules: [], begin: "^[-\\*]{3,}", end: "$" },
192
196
  {
193
197
  rules: [34, 35],
194
198
  begin: "^\\[[^\\n]+\\]:",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "mathematica" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "mathematica" 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 mathematica =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "matlab" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "matlab" 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 matlab =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "maxima" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "maxima" 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 maxima =
package/languages/mel.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "mel" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "mel" 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 mel = /** @type {import("./index.d.ts").LanguageType<"mel">} */ ({
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "mercury" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "mercury" 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 mercury =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "mipsasm" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "mipsasm" 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 mipsasm =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "mizar" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "mizar" 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 mizar =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "mojolicious" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "mojolicious" 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 mojolicious =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "monkey" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "monkey" 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 monkey =
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "moonscript" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "moonscript" 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 moonscript =
package/languages/n1ql.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Grammar "n1ql" derived from highlight.js 11.11.1 (BSD-3-Clause).
2
+ * Grammar "n1ql" 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 n1ql =