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.
- package/AnsiOutput.svelte +2 -135
- package/HighlightStream.svelte +226 -17
- package/HighlightStream.svelte.d.ts +25 -0
- package/HighlightVirtual.svelte +13 -20
- package/LICENSE.highlight.txt +1 -1
- package/README.md +42 -17
- package/Typewriter.svelte +79 -56
- package/Typewriter.svelte.d.ts +10 -1
- package/ansi-color.js +201 -0
- package/editable-dom-paint.js +4 -3
- package/engine.js +61 -43
- package/index.d.ts +12 -0
- package/index.js +12 -0
- package/languages/1c.js +1 -1
- package/languages/abnf.js +1 -1
- package/languages/accesslog.js +1 -1
- package/languages/actionscript.js +1 -1
- package/languages/ada.js +7 -6
- package/languages/all.js +8 -0
- package/languages/angelscript.js +1 -1
- package/languages/apache.js +1 -1
- package/languages/applescript.js +1 -1
- package/languages/arcade.js +1 -1
- package/languages/arduino.js +91 -67
- package/languages/armasm.js +1 -1
- package/languages/asciidoc.js +1 -1
- package/languages/aspectj.js +1 -1
- package/languages/autohotkey.js +1 -1
- package/languages/autoit.js +1 -1
- package/languages/avrasm.js +1 -1
- package/languages/awk.js +1 -1
- package/languages/axapta.js +1 -1
- package/languages/bash.js +1 -1
- package/languages/basic.js +1 -1
- package/languages/bnf.js +1 -1
- package/languages/brainfuck.js +1 -1
- package/languages/c.js +91 -66
- package/languages/cal.js +1 -1
- package/languages/capnproto.js +1 -1
- package/languages/ceylon.js +1 -1
- package/languages/clean.js +1 -1
- package/languages/clojure-repl.js +1 -1
- package/languages/clojure.js +1 -1
- package/languages/cmake.js +4 -2
- package/languages/coffeescript.js +1 -1
- package/languages/coq.js +1 -1
- package/languages/cos.js +1 -1
- package/languages/cpp.js +90 -65
- package/languages/cql.d.ts +2 -0
- package/languages/cql.js +203 -0
- package/languages/crmsh.js +1 -1
- package/languages/crystal.js +27 -34
- package/languages/csharp.js +4 -4
- package/languages/csp.js +8 -1
- package/languages/css.js +20 -13
- package/languages/d.js +1 -1
- package/languages/dart.js +18 -3
- package/languages/delphi.js +1 -1
- package/languages/diff.js +2 -2
- package/languages/django.js +1 -1
- package/languages/dns.js +71 -43
- package/languages/dockerfile.js +1 -1
- package/languages/dos.js +3 -3
- package/languages/dsconfig.js +1 -1
- package/languages/dts.js +1 -1
- package/languages/dust.js +1 -1
- package/languages/ebnf.js +1 -1
- package/languages/elixir.js +59 -50
- package/languages/elm.js +1 -1
- package/languages/erb.js +1 -1
- package/languages/erlang-repl.js +1 -1
- package/languages/erlang.js +1 -1
- package/languages/excel.js +1 -1
- package/languages/fix.js +1 -1
- package/languages/flix.js +1 -1
- package/languages/flux.d.ts +2 -0
- package/languages/flux.js +272 -0
- package/languages/fortran.js +1 -1
- package/languages/freedesktop.d.ts +2 -0
- package/languages/freedesktop.js +45 -0
- package/languages/fsharp.js +1 -1
- package/languages/gams.js +1 -1
- package/languages/gauss.js +1 -1
- package/languages/gcode.js +1 -1
- package/languages/gherkin.js +36 -38
- package/languages/glsl.js +1 -1
- package/languages/gml.js +1 -1
- package/languages/go.js +10 -3
- package/languages/golo.js +1 -1
- package/languages/gradle.js +1 -1
- package/languages/graphql.js +1 -1
- package/languages/groovy.js +60 -5
- package/languages/haml.js +1 -1
- package/languages/handlebars.js +1 -1
- package/languages/haskell.js +2 -1
- package/languages/haxe.js +1 -1
- package/languages/hsp.js +1 -1
- package/languages/http.js +1 -1
- package/languages/hy.js +1 -1
- package/languages/index.d.ts +8 -0
- package/languages/index.js +4 -0
- package/languages/inform7.js +1 -1
- package/languages/ini.js +1 -1
- package/languages/irpf90.js +1 -1
- package/languages/isbl.js +1 -1
- package/languages/java.js +28 -25
- package/languages/javascript.js +9 -3
- package/languages/jboss-cli.js +1 -1
- package/languages/json.js +12 -9
- package/languages/julia-repl.js +1 -1
- package/languages/julia.js +1 -1
- package/languages/kotlin.js +3 -3
- package/languages/lasso.js +1 -1
- package/languages/latex.js +1 -1
- package/languages/ldif.js +1 -1
- package/languages/leaf.js +7 -2
- package/languages/less.js +60 -45
- package/languages/lisp.js +7 -2
- package/languages/livecodeserver.js +1 -1
- package/languages/livescript.js +1 -1
- package/languages/llvm.js +18 -3
- package/languages/lsl.js +1 -1
- package/languages/lua.js +2 -1
- package/languages/makefile.js +1 -1
- package/languages/markdown.js +8 -4
- package/languages/mathematica.js +1 -1
- package/languages/matlab.js +1 -1
- package/languages/maxima.js +1 -1
- package/languages/mel.js +1 -1
- package/languages/mercury.js +1 -1
- package/languages/mipsasm.js +1 -1
- package/languages/mizar.js +1 -1
- package/languages/mojolicious.js +1 -1
- package/languages/monkey.js +1 -1
- package/languages/moonscript.js +1 -1
- package/languages/n1ql.js +1 -1
- package/languages/nestedtext.js +1 -1
- package/languages/nginx.js +1 -1
- package/languages/nim.js +1 -1
- package/languages/nix.js +1 -1
- package/languages/node-repl.js +1 -1
- package/languages/nsis.js +20 -5
- package/languages/objectivec.js +1 -1
- package/languages/ocaml.js +1 -1
- package/languages/openscad.js +1 -1
- package/languages/oxygene.js +1 -1
- package/languages/parser3.js +1 -1
- package/languages/perl.js +1 -1
- package/languages/pf.js +1 -1
- package/languages/pgsql.js +1 -1
- package/languages/php-template.js +1 -1
- package/languages/php.js +150 -24
- package/languages/plaintext.js +1 -1
- package/languages/pony.js +1 -1
- package/languages/powershell.js +1 -1
- package/languages/processing.js +1 -1
- package/languages/profile.js +1 -1
- package/languages/prolog.js +1 -1
- package/languages/properties.js +1 -1
- package/languages/protobuf.js +1 -1
- package/languages/prql.d.ts +2 -0
- package/languages/prql.js +160 -0
- package/languages/puppet.js +1 -1
- package/languages/purebasic.js +1 -1
- package/languages/python-repl.js +1 -1
- package/languages/python.js +31 -11
- package/languages/q.js +1 -1
- package/languages/qml.js +1 -1
- package/languages/r.js +1 -1
- package/languages/reasonml.js +1 -1
- package/languages/rib.js +1 -1
- package/languages/roboconf.js +1 -1
- package/languages/routeros.js +1 -1
- package/languages/rsl.js +1 -1
- package/languages/ruby.js +2 -2
- package/languages/ruleslanguage.js +1 -1
- package/languages/rust.js +23 -11
- package/languages/sas.js +1 -1
- package/languages/scala.js +1 -1
- package/languages/scheme.js +1 -1
- package/languages/scilab.js +1 -1
- package/languages/scss.js +16 -9
- package/languages/shell.js +2 -2
- package/languages/smali.js +1 -1
- package/languages/smalltalk.js +1 -1
- package/languages/sml.js +1 -1
- package/languages/sqf.js +175 -10
- package/languages/sql.js +1 -1
- package/languages/stan.js +1 -1
- package/languages/stata.js +1 -1
- package/languages/step21.js +1 -1
- package/languages/stylus.js +18 -11
- package/languages/subunit.js +1 -1
- package/languages/swift.js +1 -1
- package/languages/taggerscript.js +1 -1
- package/languages/tap.js +1 -1
- package/languages/tcl.js +1 -1
- package/languages/thrift.js +1 -1
- package/languages/tp.js +1 -1
- package/languages/twig.js +1 -1
- package/languages/typescript.js +9 -3
- package/languages/vala.js +1 -1
- package/languages/vbnet.js +1 -1
- package/languages/vbscript-html.js +1 -1
- package/languages/vbscript.js +1 -1
- package/languages/verilog.js +1 -1
- package/languages/vhdl.js +1 -1
- package/languages/vim.js +1 -1
- package/languages/wasm.js +1 -1
- package/languages/wren.js +1 -1
- package/languages/x86asm.js +1 -1
- package/languages/xl.js +1 -1
- package/languages/xml.js +3 -3
- package/languages/xquery.js +1 -1
- package/languages/yaml.js +1 -1
- package/languages/zephir.js +1 -1
- package/package.json +1 -1
- package/stream-sealed-chunks.js +44 -0
- package/styles/a11y-dark.css +1 -1
- package/styles/a11y-dark.js +1 -1
- package/styles/a11y-light.css +1 -1
- package/styles/a11y-light.js +1 -1
- package/styles/an-old-hope.css +1 -1
- package/styles/an-old-hope.js +1 -1
- package/styles/arduino-light.css +1 -1
- package/styles/arduino-light.js +1 -1
- package/styles/arta.css +1 -1
- package/styles/arta.js +1 -1
- package/styles/brown-paper.css +1 -1
- package/styles/brown-paper.js +1 -1
- package/styles/codepen-embed.css +1 -1
- package/styles/codepen-embed.js +1 -1
- package/styles/cybertopia-cherry.css +10 -9
- package/styles/cybertopia-cherry.js +10 -9
- package/styles/cybertopia-dimmer.css +10 -9
- package/styles/cybertopia-dimmer.js +10 -9
- package/styles/cybertopia-icecap.css +10 -9
- package/styles/cybertopia-icecap.js +10 -9
- package/styles/cybertopia-saturated.css +10 -9
- package/styles/cybertopia-saturated.js +10 -9
- package/styles/dark.css +1 -1
- package/styles/dark.js +1 -1
- package/styles/docco.css +1 -1
- package/styles/docco.js +1 -1
- package/styles/equinox.css +25 -0
- package/styles/equinox.d.ts +1 -0
- package/styles/equinox.js +27 -0
- package/styles/far.css +1 -1
- package/styles/far.js +1 -1
- package/styles/gml.css +1 -1
- package/styles/gml.js +1 -1
- package/styles/googlecode.css +1 -1
- package/styles/googlecode.js +1 -1
- package/styles/hybrid.css +1 -1
- package/styles/hybrid.js +1 -1
- package/styles/index.d.ts +2 -0
- package/styles/index.js +2 -0
- package/styles/intellij-light.css +1 -1
- package/styles/intellij-light.js +1 -1
- package/styles/ir-black.css +1 -1
- package/styles/ir-black.js +1 -1
- package/styles/isbl-editor-dark.css +1 -1
- package/styles/isbl-editor-dark.js +1 -1
- package/styles/isbl-editor-light.css +1 -1
- package/styles/isbl-editor-light.js +1 -1
- package/styles/magula.css +1 -1
- package/styles/magula.js +1 -1
- package/styles/mono-blue.css +1 -1
- package/styles/mono-blue.js +1 -1
- package/styles/monokai-sublime.css +1 -1
- package/styles/monokai-sublime.js +1 -1
- package/styles/monokai.css +1 -1
- package/styles/monokai.js +1 -1
- package/styles/nnfx-dark.css +1 -1
- package/styles/nnfx-dark.js +1 -1
- package/styles/nnfx-light.css +1 -1
- package/styles/nnfx-light.js +1 -1
- package/styles/obsidian.css +1 -1
- package/styles/obsidian.js +1 -1
- package/styles/paraiso-dark.css +1 -1
- package/styles/paraiso-dark.js +1 -1
- package/styles/paraiso-light.css +1 -1
- package/styles/paraiso-light.js +1 -1
- package/styles/pojoaque.css +1 -1
- package/styles/pojoaque.js +1 -1
- package/styles/purebasic.css +1 -1
- package/styles/purebasic.js +1 -1
- package/styles/qtcreator-dark.css +1 -1
- package/styles/qtcreator-dark.js +1 -1
- package/styles/qtcreator-light.css +1 -1
- package/styles/qtcreator-light.js +1 -1
- package/styles/rainbow.css +1 -1
- package/styles/rainbow.js +1 -1
- package/styles/routeros.css +1 -1
- package/styles/routeros.js +1 -1
- package/styles/school-book.css +1 -1
- package/styles/school-book.js +1 -1
- package/styles/shades-of-purple.css +1 -1
- package/styles/shades-of-purple.js +1 -1
- package/styles/srcery.css +1 -1
- package/styles/srcery.js +1 -1
- package/styles/stackoverflow-dark.css +1 -1
- package/styles/stackoverflow-dark.js +1 -1
- package/styles/stackoverflow-light.css +1 -1
- package/styles/stackoverflow-light.js +1 -1
- package/styles/tomorrow-night-blue.css +1 -1
- package/styles/tomorrow-night-blue.js +1 -1
- package/styles/tomorrow-night-bright.css +1 -1
- package/styles/tomorrow-night-bright.js +1 -1
- package/styles/vs-dark.css +21 -0
- package/styles/vs-dark.d.ts +1 -0
- package/styles/vs-dark.js +23 -0
- package/styles/vs.css +1 -1
- package/styles/vs.js +1 -1
- package/styles/xcode.css +1 -1
- package/styles/xcode.js +1 -1
- package/styles/xt256.css +1 -1
- package/styles/xt256.js +1 -1
- package/text-diff.js +10 -2
- package/themes/a11y-dark.css +1 -1
- package/themes/a11y-dark.js +1 -1
- package/themes/a11y-light.css +1 -1
- package/themes/a11y-light.js +1 -1
- package/themes/an-old-hope.css +1 -1
- package/themes/an-old-hope.js +1 -1
- package/themes/arta.css +1 -1
- package/themes/arta.js +1 -1
- package/themes/brown-paper.css +1 -1
- package/themes/brown-paper.js +1 -1
- package/themes/codepen-embed.css +1 -1
- package/themes/codepen-embed.js +1 -1
- package/themes/cybertopia-cherry.css +1 -1
- package/themes/cybertopia-cherry.js +49 -48
- package/themes/cybertopia-dimmer.css +1 -1
- package/themes/cybertopia-dimmer.js +49 -48
- package/themes/cybertopia-icecap.css +1 -1
- package/themes/cybertopia-icecap.js +49 -48
- package/themes/cybertopia-saturated.css +1 -1
- package/themes/cybertopia-saturated.js +49 -48
- package/themes/dark.css +1 -1
- package/themes/dark.js +1 -1
- package/themes/docco.css +1 -1
- package/themes/docco.js +1 -1
- package/themes/equinox.css +1 -0
- package/themes/equinox.d.ts +1 -0
- package/themes/equinox.js +51 -0
- package/themes/far.css +1 -1
- package/themes/far.js +1 -1
- package/themes/googlecode.css +1 -1
- package/themes/googlecode.js +1 -1
- package/themes/index.d.ts +2 -0
- package/themes/index.js +2 -0
- package/themes/ir-black.css +1 -1
- package/themes/ir-black.js +1 -1
- package/themes/paraiso-dark.css +1 -1
- package/themes/paraiso-dark.js +1 -1
- package/themes/paraiso-light.css +1 -1
- package/themes/paraiso-light.js +1 -1
- package/themes/pojoaque.css +1 -1
- package/themes/pojoaque.js +1 -1
- package/themes/rainbow.css +1 -1
- package/themes/rainbow.js +1 -1
- package/themes/school-book.css +1 -1
- package/themes/school-book.js +1 -1
- package/themes/tomorrow-night-blue.css +1 -1
- package/themes/tomorrow-night-blue.js +1 -1
- package/themes/tomorrow-night-bright.css +1 -1
- package/themes/tomorrow-night-bright.js +1 -1
- package/themes/vs-dark.css +1 -0
- package/themes/vs-dark.d.ts +1 -0
- package/themes/vs-dark.js +45 -0
- package/themes/vs.css +1 -1
- package/themes/vs.js +1 -1
- package/typewriter-easing.d.ts +14 -0
- package/typewriter-easing.js +57 -0
- package/typewriter-units.d.ts +6 -0
- package/typewriter-units.js +27 -4
- 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.
|
|
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,
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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:
|
|
288
|
+
starts: 37,
|
|
278
289
|
},
|
|
279
290
|
{
|
|
280
291
|
rules: [
|
|
281
|
-
|
|
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: [
|
|
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: [
|
|
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: [
|
|
329
|
+
rules: [45, 48, 7, 36, 51, 52, 104, 53, 90, 115, 35],
|
|
319
330
|
begin: "\\{",
|
|
320
331
|
end: "\\}",
|
|
321
332
|
},
|
|
322
|
-
{ rules: [
|
|
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: [
|
|
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:
|
|
368
|
+
starts: 37,
|
|
358
369
|
},
|
|
359
370
|
{
|
|
360
|
-
rules: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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: [
|
|
510
|
+
rules: [76, 78],
|
|
500
511
|
scope: "selector-attr",
|
|
501
512
|
begin: "\\[",
|
|
502
513
|
end: "\\]",
|
|
503
514
|
illegal: "$",
|
|
504
515
|
},
|
|
505
|
-
{ rules: [
|
|
516
|
+
{ rules: [77], scope: "string", begin: "'", end: "'", illegal: "\\n" },
|
|
506
517
|
{ relevance: 0, rules: [], begin: "\\\\[\\s\\S]", end: "\\B|\\b" },
|
|
507
|
-
{ rules: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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:
|
|
675
|
+
starts: 108,
|
|
665
676
|
},
|
|
666
677
|
{
|
|
667
678
|
relevance: 0,
|
|
668
|
-
rules: [
|
|
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: [
|
|
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: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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
|
-
|
|
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: [
|
|
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: [
|
|
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.
|
|
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
|
-
{
|
|
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.
|
|
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 =
|
package/languages/livescript.js
CHANGED
package/languages/llvm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Grammar "llvm" derived from highlight.js 11.
|
|
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,
|
|
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: "
|
|
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.
|
|
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.
|
|
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],
|
package/languages/makefile.js
CHANGED
package/languages/markdown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Grammar "markdown" derived from highlight.js 11.
|
|
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,
|
|
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: [
|
|
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]+\\]:",
|
package/languages/mathematica.js
CHANGED
package/languages/matlab.js
CHANGED
package/languages/maxima.js
CHANGED
package/languages/mel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Grammar "mel" derived from highlight.js 11.
|
|
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">} */ ({
|
package/languages/mercury.js
CHANGED
package/languages/mipsasm.js
CHANGED
package/languages/mizar.js
CHANGED
package/languages/mojolicious.js
CHANGED
package/languages/monkey.js
CHANGED
package/languages/moonscript.js
CHANGED
package/languages/n1ql.js
CHANGED