tm-grammars 1.23.2 → 1.23.4
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/README.md +129 -129
- package/grammars/abap.json +1 -1
- package/grammars/actionscript-3.json +2 -2
- package/grammars/ada.json +5 -5
- package/grammars/angular-expression.json +137 -2
- package/grammars/angular-ts.json +17 -17
- package/grammars/apex.json +5 -5
- package/grammars/apl.json +2 -2
- package/grammars/applescript.json +1 -1
- package/grammars/ara.json +1 -1
- package/grammars/asciidoc.json +5 -5
- package/grammars/asm.json +10 -10
- package/grammars/astro.json +3 -3
- package/grammars/awk.json +4 -4
- package/grammars/ballerina.json +5 -5
- package/grammars/bat.json +6 -6
- package/grammars/beancount.json +12 -12
- package/grammars/berry.json +2 -2
- package/grammars/bibtex.json +7 -7
- package/grammars/blade.json +11 -11
- package/grammars/c.json +9 -9
- package/grammars/cadence.json +1 -1
- package/grammars/cairo.json +2 -2
- package/grammars/clarity.json +17 -17
- package/grammars/clojure.json +9 -9
- package/grammars/cmake.json +2 -2
- package/grammars/cobol.json +67 -67
- package/grammars/coffee.json +14 -14
- package/grammars/common-lisp.json +14 -14
- package/grammars/cpp-macro.json +3 -3
- package/grammars/cpp.json +7 -7
- package/grammars/crystal.json +8 -8
- package/grammars/csharp.json +23 -23
- package/grammars/css.json +55 -55
- package/grammars/cue.json +4 -4
- package/grammars/cypher.json +1 -1
- package/grammars/d.json +3 -3
- package/grammars/dart.json +4 -4
- package/grammars/dax.json +1 -1
- package/grammars/desktop.json +1 -1
- package/grammars/dream-maker.json +3 -3
- package/grammars/elixir.json +3 -3
- package/grammars/elm.json +5 -5
- package/grammars/emacs-lisp.json +16 -16
- package/grammars/erb.json +2 -2
- package/grammars/erlang.json +2 -2
- package/grammars/fennel.json +1 -1
- package/grammars/fish.json +2 -2
- package/grammars/fluent.json +7 -7
- package/grammars/fortran-free-form.json +4 -4
- package/grammars/fsharp.json +43 -43
- package/grammars/gdresource.json +8 -8
- package/grammars/gdscript.json +9 -9
- package/grammars/gdshader.json +2 -2
- package/grammars/genie.json +1 -1
- package/grammars/gherkin.json +1 -1
- package/grammars/glimmer-js.json +11 -11
- package/grammars/glimmer-ts.json +11 -11
- package/grammars/gnuplot.json +3 -3
- package/grammars/go.json +4 -4
- package/grammars/graphql.json +1 -1
- package/grammars/groovy.json +2 -2
- package/grammars/hack.json +10 -10
- package/grammars/haml.json +4 -4
- package/grammars/handlebars.json +11 -11
- package/grammars/haskell.json +19 -19
- package/grammars/haxe.json +4 -4
- package/grammars/hcl.json +12 -12
- package/grammars/hjson.json +3 -3
- package/grammars/html.json +9 -9
- package/grammars/http.json +1 -1
- package/grammars/hy.json +7 -7
- package/grammars/imba.json +42 -42
- package/grammars/ini.json +1 -1
- package/grammars/java.json +10 -10
- package/grammars/javascript.json +26 -26
- package/grammars/jinja.json +1 -1
- package/grammars/jison.json +11 -11
- package/grammars/json.json +1 -1
- package/grammars/json5.json +2 -2
- package/grammars/jsonc.json +1 -1
- package/grammars/jsonl.json +1 -1
- package/grammars/jsonnet.json +4 -4
- package/grammars/jsx.json +26 -26
- package/grammars/julia.json +2 -2
- package/grammars/kotlin.json +2 -2
- package/grammars/kusto.json +4 -4
- package/grammars/latex.json +28 -28
- package/grammars/lean.json +1 -1
- package/grammars/less.json +43 -43
- package/grammars/liquid.json +4 -4
- package/grammars/llvm.json +6 -6
- package/grammars/log.json +4 -4
- package/grammars/logo.json +2 -2
- package/grammars/lua.json +16 -16
- package/grammars/luau.json +6 -6
- package/grammars/make.json +1 -1
- package/grammars/markdown.json +8 -8
- package/grammars/marko.json +5 -5
- package/grammars/matlab.json +10 -10
- package/grammars/mdc.json +4 -4
- package/grammars/mdx.json +14 -14
- package/grammars/mermaid.json +67 -67
- package/grammars/mojo.json +11 -11
- package/grammars/move.json +1 -1
- package/grammars/narrat.json +1 -1
- package/grammars/nim.json +2 -2
- package/grammars/nix.json +16 -16
- package/grammars/nushell.json +18 -18
- package/grammars/objective-c.json +17 -17
- package/grammars/objective-cpp.json +25 -25
- package/grammars/ocaml.json +97 -97
- package/grammars/pascal.json +1 -1
- package/grammars/perl.json +4 -4
- package/grammars/php.json +28 -28
- package/grammars/plsql.json +3 -3
- package/grammars/polar.json +2 -2
- package/grammars/postcss.json +14 -14
- package/grammars/powerquery.json +1 -1
- package/grammars/powershell.json +14 -14
- package/grammars/prisma.json +1 -1
- package/grammars/prolog.json +1 -1
- package/grammars/proto.json +1 -1
- package/grammars/pug.json +9 -9
- package/grammars/puppet.json +6 -6
- package/grammars/purescript.json +3 -3
- package/grammars/python.json +11 -11
- package/grammars/qss.json +1 -1
- package/grammars/r.json +10 -10
- package/grammars/racket.json +4 -4
- package/grammars/raku.json +2 -2
- package/grammars/rel.json +1 -1
- package/grammars/rst.json +23 -23
- package/grammars/ruby.json +39 -39
- package/grammars/rust.json +1 -1
- package/grammars/sas.json +3 -3
- package/grammars/sass.json +17 -17
- package/grammars/scala.json +40 -40
- package/grammars/scheme.json +5 -5
- package/grammars/scss.json +28 -28
- package/grammars/shellscript.json +17 -17
- package/grammars/solidity.json +1 -1
- package/grammars/sparql.json +1 -1
- package/grammars/sql.json +1 -1
- package/grammars/stata.json +7 -7
- package/grammars/stylus.json +26 -26
- package/grammars/svelte.json +3 -3
- package/grammars/swift.json +37 -37
- package/grammars/system-verilog.json +6 -6
- package/grammars/systemd.json +2 -2
- package/grammars/talonscript.json +2 -2
- package/grammars/tcl.json +2 -2
- package/grammars/templ.json +3 -3
- package/grammars/terraform.json +10 -10
- package/grammars/tex.json +1 -1
- package/grammars/toml.json +7 -7
- package/grammars/tsx.json +26 -26
- package/grammars/turtle.json +2 -2
- package/grammars/twig.json +1 -1
- package/grammars/typescript.json +17 -17
- package/grammars/typespec.json +1 -1
- package/grammars/typst.json +16 -16
- package/grammars/v.json +3 -3
- package/grammars/vala.json +1 -1
- package/grammars/vb.json +1 -1
- package/grammars/vhdl.json +5 -5
- package/grammars/vue-html.json +5 -5
- package/grammars/vue.json +28 -28
- package/grammars/vyper.json +11 -11
- package/grammars/wasm.json +10 -10
- package/grammars/wgsl.json +2 -2
- package/grammars/wikitext.json +6 -6
- package/grammars/wit.json +25 -25
- package/grammars/wolfram.json +32 -32
- package/grammars/xml.json +10 -10
- package/grammars/xsl.json +1 -1
- package/grammars/yaml.json +11 -11
- package/grammars/zenscript.json +1 -1
- package/grammars/zig.json +4 -4
- package/index.js +186 -186
- package/package.json +1 -1
package/grammars/hcl.json
CHANGED
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"name": "keyword.operator.accessor.hcl"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"end": "\\p{alpha}[\\w
|
|
29
|
+
"end": "\\p{alpha}[\\w-]*|\\d*",
|
|
30
30
|
"endCaptures": {
|
|
31
31
|
"0": {
|
|
32
32
|
"patterns": [
|
|
33
33
|
{
|
|
34
|
-
"match": "(?!null|false|true)\\p{alpha}[\\w
|
|
34
|
+
"match": "(?!null|false|true)\\p{alpha}[\\w-]*",
|
|
35
35
|
"name": "variable.other.member.hcl"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"name": "keyword.operator.assignment.hcl"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"match": "(\\()?(\\b(?!null\\b|false\\b|true\\b)\\p{alpha}[[:alnum:]_
|
|
60
|
+
"match": "(\\()?(\\b(?!null\\b|false\\b|true\\b)\\p{alpha}[[:alnum:]_-]*)(\\))?\\s*(=(?![=>]))\\s*",
|
|
61
61
|
"name": "variable.declaration.hcl"
|
|
62
62
|
},
|
|
63
63
|
"attribute_splat": {
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"block": {
|
|
78
|
-
"begin": "(\\w[
|
|
78
|
+
"begin": "(\\w[-\\w]*)(([^\\S\\r\\n]+(\\w[-_\\w]*|\"[^\"\\r\\n]*\"))*)[^\\S\\r\\n]*(\\{)",
|
|
79
79
|
"beginCaptures": {
|
|
80
80
|
"1": {
|
|
81
81
|
"patterns": [
|
|
82
82
|
{
|
|
83
|
-
"match": "\\b(?!null|false|true)\\p{alpha}[[:alnum:]_
|
|
83
|
+
"match": "\\b(?!null|false|true)\\p{alpha}[[:alnum:]_-]*\\b",
|
|
84
84
|
"name": "entity.name.type.hcl"
|
|
85
85
|
}
|
|
86
86
|
]
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"name": "variable.other.enummember.hcl"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
"match": "\\p{alpha}[[:alnum:]_
|
|
95
|
+
"match": "\\p{alpha}[[:alnum:]_-]*",
|
|
96
96
|
"name": "variable.other.enummember.hcl"
|
|
97
97
|
}
|
|
98
98
|
]
|
|
@@ -270,11 +270,11 @@
|
|
|
270
270
|
"1": {
|
|
271
271
|
"patterns": [
|
|
272
272
|
{
|
|
273
|
-
"match": "\\b\\p{alpha}[\\w_
|
|
273
|
+
"match": "\\b\\p{alpha}[\\w_-]*::(\\p{alpha}[\\w_-]*::)?\\p{alpha}[\\w_-]*\\b",
|
|
274
274
|
"name": "support.function.namespaced.hcl"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
"match": "\\b\\p{alpha}[\\w_
|
|
277
|
+
"match": "\\b\\p{alpha}[\\w_-]*\\b",
|
|
278
278
|
"name": "support.function.builtin.hcl"
|
|
279
279
|
}
|
|
280
280
|
]
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
]
|
|
406
406
|
},
|
|
407
407
|
"local_identifiers": {
|
|
408
|
-
"match": "\\b(?!null|false|true)\\p{alpha}[[:alnum:]_
|
|
408
|
+
"match": "\\b(?!null|false|true)\\p{alpha}[[:alnum:]_-]*\\b",
|
|
409
409
|
"name": "variable.other.readwrite.hcl"
|
|
410
410
|
},
|
|
411
411
|
"numeric_literals": {
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
"name": "punctuation.separator.exponent.hcl"
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
|
-
"match": "\\b\\d+([Ee][
|
|
419
|
+
"match": "\\b\\d+([Ee][+-]?)\\d+\\b",
|
|
420
420
|
"name": "constant.numeric.float.hcl"
|
|
421
421
|
},
|
|
422
422
|
{
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
"name": "punctuation.separator.exponent.hcl"
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
|
-
"match": "\\b\\d+(\\.)\\d+(?:([Ee][
|
|
431
|
+
"match": "\\b\\d+(\\.)\\d+(?:([Ee][+-]?)\\d+)?\\b",
|
|
432
432
|
"name": "constant.numeric.float.hcl"
|
|
433
433
|
},
|
|
434
434
|
{
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
"name": "keyword.operator.assignment.hcl"
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
|
-
"match": "\\b((?!null|false|true)\\p{alpha}[[:alnum:]_
|
|
527
|
+
"match": "\\b((?!null|false|true)\\p{alpha}[[:alnum:]_-]*)\\s*(=(?!=))\\s*"
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
530
|
"captures": {
|
package/grammars/hjson.json
CHANGED
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"name": "punctuation.separator.array.after-num.hjson"
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
-
"match": "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][
|
|
193
|
+
"match": "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)(?:[\\t ]*(?=,)|[\\t ]*(?:(,)[\\t ]*)?(?=$|#|/\\*|//|]))"
|
|
194
194
|
},
|
|
195
195
|
"arrayObject": {
|
|
196
196
|
"begin": "\\{",
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
"name": "constant.numeric.hjson"
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
|
-
"match": "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][
|
|
554
|
+
"match": "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)[\\t ]*(?=$|#|/\\*|//|])"
|
|
555
555
|
},
|
|
556
556
|
"object": {
|
|
557
557
|
"begin": "\\{",
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
"name": "punctuation.separator.dictionary.pair.after-num.hjson"
|
|
724
724
|
}
|
|
725
725
|
},
|
|
726
|
-
"match": "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][
|
|
726
|
+
"match": "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)(?:[\\t ]*(?=,)|[\\t ]*(?:(,)[\\t ]*)?(?=$|#|/\\*|//|}))"
|
|
727
727
|
},
|
|
728
728
|
"objectObject": {
|
|
729
729
|
"begin": "\\{",
|
package/grammars/html.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"attribute": {
|
|
39
39
|
"patterns": [
|
|
40
40
|
{
|
|
41
|
-
"begin": "(s(hape|cope|t(ep|art)|ize(s)?|p(ellcheck|an)|elected|lot|andbox|rc(set|doc|lang)?)|h(ttp-equiv|i(dden|gh)|e(ight|aders)|ref(lang)?)|n(o(nce|validate|module)|ame)|c(h(ecked|arset)|ite|o(nt(ent(editable)?|rols)|ords|l(s(pan)?|or))|lass|rossorigin)|t(ype(mustmatch)?|itle|a(rget|bindex)|ranslate)|i(s(map)?|n(tegrity|putmode)|tem(scope|type|id|prop|ref)|d)|op(timum|en)|d(i(sabled|r(name)?)|ownload|e(coding|f(er|ault))|at(etime|a)|raggable)|usemap|p(ing|oster|la(ysinline|ceholder)|attern|reload)|enctype|value|kind|for(m(novalidate|target|enctype|action|method)?)?|w(idth|rap)|l(ist|o(op|w)|a(ng|bel))|a(s(ync)?|c(ce(sskey|pt(-charset)?)|tion)|uto(c(omplete|apitalize)|play|focus)|l(t|low(usermedia|paymentrequest|fullscreen))|bbr)|r(ows(pan)?|e(versed|quired|ferrerpolicy|l|adonly))|m(in(length)?|u(ted|ltiple)|e(thod|dia)|a(nifest|x(length)?)))(?![\\w
|
|
41
|
+
"begin": "(s(hape|cope|t(ep|art)|ize(s)?|p(ellcheck|an)|elected|lot|andbox|rc(set|doc|lang)?)|h(ttp-equiv|i(dden|gh)|e(ight|aders)|ref(lang)?)|n(o(nce|validate|module)|ame)|c(h(ecked|arset)|ite|o(nt(ent(editable)?|rols)|ords|l(s(pan)?|or))|lass|rossorigin)|t(ype(mustmatch)?|itle|a(rget|bindex)|ranslate)|i(s(map)?|n(tegrity|putmode)|tem(scope|type|id|prop|ref)|d)|op(timum|en)|d(i(sabled|r(name)?)|ownload|e(coding|f(er|ault))|at(etime|a)|raggable)|usemap|p(ing|oster|la(ysinline|ceholder)|attern|reload)|enctype|value|kind|for(m(novalidate|target|enctype|action|method)?)?|w(idth|rap)|l(ist|o(op|w)|a(ng|bel))|a(s(ync)?|c(ce(sskey|pt(-charset)?)|tion)|uto(c(omplete|apitalize)|play|focus)|l(t|low(usermedia|paymentrequest|fullscreen))|bbr)|r(ows(pan)?|e(versed|quired|ferrerpolicy|l|adonly))|m(in(length)?|u(ted|ltiple)|e(thod|dia)|a(nifest|x(length)?)))(?![\\w:-])",
|
|
42
42
|
"beginCaptures": {
|
|
43
43
|
"0": {
|
|
44
44
|
"name": "entity.other.attribute-name.html"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
"begin": "style(?![\\w
|
|
56
|
+
"begin": "style(?![\\w:-])",
|
|
57
57
|
"beginCaptures": {
|
|
58
58
|
"0": {
|
|
59
59
|
"name": "entity.other.attribute-name.html"
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
"begin": "on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur))(?![\\w
|
|
147
|
+
"begin": "on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur))(?![\\w:-])",
|
|
148
148
|
"beginCaptures": {
|
|
149
149
|
"0": {
|
|
150
150
|
"name": "entity.other.attribute-name.html"
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
]
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
|
-
"begin": "(data-[a-z
|
|
313
|
+
"begin": "(data-[a-z-]+)(?![\\w:-])",
|
|
314
314
|
"beginCaptures": {
|
|
315
315
|
"0": {
|
|
316
316
|
"name": "entity.other.attribute-name.html"
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
]
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
|
-
"begin": "(align|bgcolor|border)(?![\\w
|
|
328
|
+
"begin": "(align|bgcolor|border)(?![\\w:-])",
|
|
329
329
|
"beginCaptures": {
|
|
330
330
|
"0": {
|
|
331
331
|
"name": "invalid.deprecated.entity.other.attribute-name.html"
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
"attribute": {
|
|
627
627
|
"patterns": [
|
|
628
628
|
{
|
|
629
|
-
"begin": "(s(hift|ymmetric|cript(sizemultiplier|level|minsize)|t(ackalign|retchy)|ide|u(pscriptshift|bscriptshift)|e(parator(s)?|lection)|rc)|h(eight|ref)|n(otation|umalign)|c(haralign|olumn(spa(n|cing)|width|lines|align)|lose|rossout)|i(n(dent(shift(first|last)?|target|align(first|last)?)|fixlinebreakstyle)|d)|o(pen|verflow)|d(i(splay(style)?|r)|e(nomalign|cimalpoint|pth))|position|e(dge|qual(columns|rows))|voffset|f(orm|ence|rame(spacing)?)|width|l(space|ine(thickness|leading|break(style|multchar)?)|o(ngdivstyle|cation)|ength|quote|argeop)|a(c(cent(under)?|tiontype)|l(t(text|img(-(height|valign|width))?)|ign(mentscope)?))|r(space|ow(spa(n|cing)|lines|align)|quote)|groupalign|x(link:href|mlns)|m(in(size|labelspacing)|ovablelimits|a(th(size|color|variant|background)|xsize))|bevelled)(?![\\w
|
|
629
|
+
"begin": "(s(hift|ymmetric|cript(sizemultiplier|level|minsize)|t(ackalign|retchy)|ide|u(pscriptshift|bscriptshift)|e(parator(s)?|lection)|rc)|h(eight|ref)|n(otation|umalign)|c(haralign|olumn(spa(n|cing)|width|lines|align)|lose|rossout)|i(n(dent(shift(first|last)?|target|align(first|last)?)|fixlinebreakstyle)|d)|o(pen|verflow)|d(i(splay(style)?|r)|e(nomalign|cimalpoint|pth))|position|e(dge|qual(columns|rows))|voffset|f(orm|ence|rame(spacing)?)|width|l(space|ine(thickness|leading|break(style|multchar)?)|o(ngdivstyle|cation)|ength|quote|argeop)|a(c(cent(under)?|tiontype)|l(t(text|img(-(height|valign|width))?)|ign(mentscope)?))|r(space|ow(spa(n|cing)|lines|align)|quote)|groupalign|x(link:href|mlns)|m(in(size|labelspacing)|ovablelimits|a(th(size|color|variant|background)|xsize))|bevelled)(?![\\w:-])",
|
|
630
630
|
"beginCaptures": {
|
|
631
631
|
"0": {
|
|
632
632
|
"name": "entity.other.attribute-name.html"
|
|
@@ -1104,7 +1104,7 @@
|
|
|
1104
1104
|
"attribute": {
|
|
1105
1105
|
"patterns": [
|
|
1106
1106
|
{
|
|
1107
|
-
"begin": "(s(hape-rendering|ystemLanguage|cale|t(yle|itchTiles|op-(color|opacity)|dDeviation|em([hv])|artOffset|r(i(ng|kethrough-(thickness|position))|oke(-(opacity|dash(offset|array)|width|line(cap|join)|miterlimit))?))|urfaceScale|p(e(cular(Constant|Exponent)|ed)|acing|readMethod)|eed|lope)|h(oriz-(origin-x|adv-x)|eight|anging|ref(lang)?)|y([12]|ChannelSelector)?|n(umOctaves|ame)|c(y|o(ntentS(criptType|tyleType)|lor(-(interpolation(-filters)?|profile|rendering))?)|ursor|l(ip(-(path|rule)|PathUnits)?|ass)|a(p-height|lcMode)|x)|t(ype|o|ext(-(decoration|anchor|rendering)|Length)|a(rget([XY])?|b(index|leValues))|ransform)|i(n(tercept|2)?|d(eographic)?|mage-rendering)|z(oomAndPan)?|o(p(erator|acity)|ver(flow|line-(thickness|position))|ffset|r(i(ent(ation)?|gin)|der))|d(y|i(splay|visor|ffuseConstant|rection)|ominant-baseline|ur|e(scent|celerate)|x)?|u(1|n(i(code(-(range|bidi))?|ts-per-em)|derline-(thickness|position))|2)|p(ing|oint(s(At([XYZ]))?|er-events)|a(nose-1|t(h(Length)?|tern(ContentUnits|Transform|Units))|int-order)|r(imitiveUnits|eserveA(spectRatio|lpha)))|e(n(d|able-background)|dgeMode|levation|x(ternalResourcesRequired|ponent))|v(i(sibility|ew(Box|Target))|-(hanging|ideographic|alphabetic|mathematical)|e(ctor-effect|r(sion|t-(origin-([yx])|adv-y)))|alues)|k([123]|e(y(Splines|Times|Points)|rn(ing|el(Matrix|UnitLength)))|4)?|f(y|il(ter(Res|Units)?|l(-(opacity|rule))?)|o(nt-(s(t(yle|retch)|ize(-adjust)?)|variant|family|weight)|rmat)|lood-(color|opacity)|r(om)?|x)|w(idth(s)?|ord-spacing|riting-mode)|l(i(ghting-color|mitingConeAngle)|ocal|e(ngthAdjust|tter-spacing)|ang)|a(scent|cc(umulate|ent-height)|ttribute(Name|Type)|zimuth|dditive|utoReverse|l(ignment-baseline|phabetic|lowReorder)|rabic-form|mplitude)|r(y|otate|e(s(tart|ult)|ndering-intent|peat(Count|Dur)|quired(Extensions|Features)|f([XY]|errerPolicy)|l)|adius|x)?|g([12]|lyph(Ref|-(name|orientation-(horizontal|vertical)))|radient(Transform|Units))|x([12]|ChannelSelector|-height|link:(show|href|t(ype|itle)|a(ctuate|rcrole)|role)|ml:(space|lang|base))?|m(in|ode|e(thod|dia)|a(sk(ContentUnits|Units)?|thematical|rker(Height|-(start|end|mid)|Units|Width)|x))|b(y|ias|egin|ase(Profile|line-shift|Frequency)|box))(?![\\w
|
|
1107
|
+
"begin": "(s(hape-rendering|ystemLanguage|cale|t(yle|itchTiles|op-(color|opacity)|dDeviation|em([hv])|artOffset|r(i(ng|kethrough-(thickness|position))|oke(-(opacity|dash(offset|array)|width|line(cap|join)|miterlimit))?))|urfaceScale|p(e(cular(Constant|Exponent)|ed)|acing|readMethod)|eed|lope)|h(oriz-(origin-x|adv-x)|eight|anging|ref(lang)?)|y([12]|ChannelSelector)?|n(umOctaves|ame)|c(y|o(ntentS(criptType|tyleType)|lor(-(interpolation(-filters)?|profile|rendering))?)|ursor|l(ip(-(path|rule)|PathUnits)?|ass)|a(p-height|lcMode)|x)|t(ype|o|ext(-(decoration|anchor|rendering)|Length)|a(rget([XY])?|b(index|leValues))|ransform)|i(n(tercept|2)?|d(eographic)?|mage-rendering)|z(oomAndPan)?|o(p(erator|acity)|ver(flow|line-(thickness|position))|ffset|r(i(ent(ation)?|gin)|der))|d(y|i(splay|visor|ffuseConstant|rection)|ominant-baseline|ur|e(scent|celerate)|x)?|u(1|n(i(code(-(range|bidi))?|ts-per-em)|derline-(thickness|position))|2)|p(ing|oint(s(At([XYZ]))?|er-events)|a(nose-1|t(h(Length)?|tern(ContentUnits|Transform|Units))|int-order)|r(imitiveUnits|eserveA(spectRatio|lpha)))|e(n(d|able-background)|dgeMode|levation|x(ternalResourcesRequired|ponent))|v(i(sibility|ew(Box|Target))|-(hanging|ideographic|alphabetic|mathematical)|e(ctor-effect|r(sion|t-(origin-([yx])|adv-y)))|alues)|k([123]|e(y(Splines|Times|Points)|rn(ing|el(Matrix|UnitLength)))|4)?|f(y|il(ter(Res|Units)?|l(-(opacity|rule))?)|o(nt-(s(t(yle|retch)|ize(-adjust)?)|variant|family|weight)|rmat)|lood-(color|opacity)|r(om)?|x)|w(idth(s)?|ord-spacing|riting-mode)|l(i(ghting-color|mitingConeAngle)|ocal|e(ngthAdjust|tter-spacing)|ang)|a(scent|cc(umulate|ent-height)|ttribute(Name|Type)|zimuth|dditive|utoReverse|l(ignment-baseline|phabetic|lowReorder)|rabic-form|mplitude)|r(y|otate|e(s(tart|ult)|ndering-intent|peat(Count|Dur)|quired(Extensions|Features)|f([XY]|errerPolicy)|l)|adius|x)?|g([12]|lyph(Ref|-(name|orientation-(horizontal|vertical)))|radient(Transform|Units))|x([12]|ChannelSelector|-height|link:(show|href|t(ype|itle)|a(ctuate|rcrole)|role)|ml:(space|lang|base))?|m(in|ode|e(thod|dia)|a(sk(ContentUnits|Units)?|thematical|rker(Height|-(start|end|mid)|Units|Width)|x))|b(y|ias|egin|ase(Profile|line-shift|Frequency)|box))(?![\\w:-])",
|
|
1108
1108
|
"beginCaptures": {
|
|
1109
1109
|
"0": {
|
|
1110
1110
|
"name": "entity.other.attribute-name.html"
|
|
@@ -2557,7 +2557,7 @@
|
|
|
2557
2557
|
"include": "#svg"
|
|
2558
2558
|
},
|
|
2559
2559
|
{
|
|
2560
|
-
"begin": "(<)([a-zA-Z][.0-9_a-zA-Z·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\x{EFFFF}]*-[
|
|
2560
|
+
"begin": "(<)([a-zA-Z][.0-9_a-zA-Z·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\x{EFFFF}]*-[-.0-9_a-zA-Z·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\x{EFFFF}]*)(?=\\s|/?>)",
|
|
2561
2561
|
"beginCaptures": {
|
|
2562
2562
|
"1": {
|
|
2563
2563
|
"name": "punctuation.definition.tag.begin.html"
|
|
@@ -2580,7 +2580,7 @@
|
|
|
2580
2580
|
]
|
|
2581
2581
|
},
|
|
2582
2582
|
{
|
|
2583
|
-
"begin": "(</)([a-zA-Z][.0-9_a-zA-Z·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\x{EFFFF}]*-[
|
|
2583
|
+
"begin": "(</)([a-zA-Z][.0-9_a-zA-Z·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\x{EFFFF}]*-[-.0-9_a-zA-Z·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\x{EFFFF}]*)(?=\\s|/?>)",
|
|
2584
2584
|
"beginCaptures": {
|
|
2585
2585
|
"1": {
|
|
2586
2586
|
"name": "punctuation.definition.tag.begin.html"
|
package/grammars/http.json
CHANGED
package/grammars/hy.json
CHANGED
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"builtin": {
|
|
39
39
|
"patterns": [
|
|
40
40
|
{
|
|
41
|
-
"match": "(?<![.:\\w_
|
|
41
|
+
"match": "(?<![.:\\w_\\-=!@$%^\\&?/<>*])(abs|all|any|ascii|bin|breakpoint|callable|chr|compile|delattr|dir|divmod|eval|exec|format|getattr|globals|hasattr|hash|hex|id|input|isinstance|issubclass|iter|aiter|len|locals|max|min|next|anext|oct|ord|pow|print|repr|round|setattr|sorted|sum|vars|False|None|True|NotImplemented|bool|memoryview|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|property|int|list|map|object|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip|open|quit|exit|copyright|credits|help)(?![.:\\w_\\-=!@$%^\\&?/<>*])",
|
|
42
42
|
"name": "storage.builtin.hy"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"match": "(?<=\\(\\s*)\\.\\.\\.(?![.:\\w_
|
|
45
|
+
"match": "(?<=\\(\\s*)\\.\\.\\.(?![.:\\w_\\-=!@$%^\\&?/<>*])",
|
|
46
46
|
"name": "storage.builtin.dots.hy"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
@@ -64,17 +64,17 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"keysym": {
|
|
67
|
-
"match": "(?<![.:\\w_
|
|
67
|
+
"match": "(?<![.:\\w_\\-=!@$%^\\&?/<>*]):[.:\\w_\\-=!@$%^\\&?/<>*]*",
|
|
68
68
|
"name": "variable.other.constant"
|
|
69
69
|
},
|
|
70
70
|
"keywords": {
|
|
71
71
|
"patterns": [
|
|
72
72
|
{
|
|
73
|
-
"match": "(?<![.:\\w_
|
|
73
|
+
"match": "(?<![.:\\w_\\-=!@$%^\\&?/<>*])(and|await|match|let|annotate|assert|break|chainc|cond|continue|deftype|do|except\\*?|finally|else|defreader|([dgls])?for|set[vx]|defclass|defmacro|del|export|eval-and-compile|eval-when-compile|get|global|if|import|(de)?fn|nonlocal|not-in|or|(quasi)?quote|require|return|cut|raise|try|unpack-iterable|unpack-mapping|unquote|unquote-splice|when|while|with|yield|local-macros|in|is|py(s)?|pragma|nonlocal|(is-)?not)(?![.:\\w_\\-=!@$%^\\&?/<>*])",
|
|
74
74
|
"name": "keyword.control.hy"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
"match": "(?<=\\(\\s*)\\.(?![.:\\w_
|
|
77
|
+
"match": "(?<=\\(\\s*)\\.(?![.:\\w_\\-=!@$%^\\&?/<>*])",
|
|
78
78
|
"name": "keyword.control.dot.hy"
|
|
79
79
|
}
|
|
80
80
|
]
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"operators": {
|
|
83
83
|
"patterns": [
|
|
84
84
|
{
|
|
85
|
-
"match": "(?<![.:\\w_
|
|
85
|
+
"match": "(?<![.:\\w_\\-=!@$%^\\&?/<>*])(\\+=?|//?=?|\\*\\*?=?|--?=?|[!<>]?=|@=?|%=?|<<?=?|>>?=?|&=?|\\|=?|\\^|~@|~=?|#\\*\\*?)(?![.:\\w_\\-=!@$%^\\&?/<>*])",
|
|
86
86
|
"name": "keyword.control.hy"
|
|
87
87
|
}
|
|
88
88
|
]
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
101
|
"symbol": {
|
|
102
|
-
"match": "(?<![.:\\w_
|
|
102
|
+
"match": "(?<![.:\\w_\\-=!@$%^\\&?/<>*#])[.a-zA-ZΑ-Ωα-ω_\\-=!@$%^<?/>*#][.:\\w_\\-=!@$%^\\&?/<>*#]*",
|
|
103
103
|
"name": "variable.other.hy"
|
|
104
104
|
}
|
|
105
105
|
},
|
package/grammars/imba.json
CHANGED
|
@@ -221,15 +221,15 @@
|
|
|
221
221
|
"css-color-keywords": {
|
|
222
222
|
"patterns": [
|
|
223
223
|
{
|
|
224
|
-
"match": "(?i)(?<![\\w
|
|
224
|
+
"match": "(?i)(?<![\\w-])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![\\w-])",
|
|
225
225
|
"name": "support.constant.color.w3c-standard-color-name.css"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
"match": "(?i)(?<![\\w
|
|
228
|
+
"match": "(?i)(?<![\\w-])(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)(?![\\w-])",
|
|
229
229
|
"name": "support.constant.color.w3c-extended-color-name.css"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
"match": "(?i)(?<![\\w
|
|
232
|
+
"match": "(?i)(?<![\\w-])currentColor(?![\\w-])",
|
|
233
233
|
"name": "support.constant.color.current.css"
|
|
234
234
|
}
|
|
235
235
|
]
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"css-functions": {
|
|
283
283
|
"patterns": [
|
|
284
284
|
{
|
|
285
|
-
"begin": "(?i)(?<![\\w
|
|
285
|
+
"begin": "(?i)(?<![\\w-])(calc)(\\()",
|
|
286
286
|
"beginCaptures": {
|
|
287
287
|
"1": {
|
|
288
288
|
"name": "support.function.calc.css"
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"name": "meta.function.calc.css",
|
|
301
301
|
"patterns": [
|
|
302
302
|
{
|
|
303
|
-
"match": "[*/]|(?<=\\s|^)[
|
|
303
|
+
"match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
|
|
304
304
|
"name": "keyword.operator.arithmetic.css"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
]
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
|
-
"begin": "(?i)(?<![\\w
|
|
312
|
+
"begin": "(?i)(?<![\\w-])(rgba?|hsla?)(\\()",
|
|
313
313
|
"beginCaptures": {
|
|
314
314
|
"1": {
|
|
315
315
|
"name": "support.function.misc.css"
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
]
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
|
-
"begin": "(?i)(?<![\\w
|
|
335
|
+
"begin": "(?i)(?<![\\w-])((?:-(?:webkit-|moz-|o-))?(?:repeating-)?(?:linear|radial|conic)-gradient)(\\()",
|
|
336
336
|
"beginCaptures": {
|
|
337
337
|
"1": {
|
|
338
338
|
"name": "support.function.gradient.css"
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"name": "meta.function.gradient.css",
|
|
351
351
|
"patterns": [
|
|
352
352
|
{
|
|
353
|
-
"match": "(?i)(?<![\\w
|
|
353
|
+
"match": "(?i)(?<![\\w-])(from|to|at)(?![\\w-])",
|
|
354
354
|
"name": "keyword.operator.gradient.css"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
]
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
"begin": "(?i)(?<![\\w
|
|
362
|
+
"begin": "(?i)(?<![\\w-])(-webkit-gradient)(\\()",
|
|
363
363
|
"beginCaptures": {
|
|
364
364
|
"1": {
|
|
365
365
|
"name": "invalid.deprecated.gradient.function.css"
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"name": "meta.function.gradient.invalid.deprecated.gradient.css",
|
|
378
378
|
"patterns": [
|
|
379
379
|
{
|
|
380
|
-
"begin": "(?i)(?<![\\w
|
|
380
|
+
"begin": "(?i)(?<![\\w-])(from|to|color-stop)(\\()",
|
|
381
381
|
"beginCaptures": {
|
|
382
382
|
"1": {
|
|
383
383
|
"name": "invalid.deprecated.function.css"
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
]
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
|
-
"begin": "(?i)(?<![\\w
|
|
407
|
+
"begin": "(?i)(?<![\\w-])(annotation|attr|blur|brightness|character-variant|contrast|counters?|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate|image-set|invert|local|minmax|opacity|ornaments|repeat|saturate|sepia|styleset|stylistic|swash|symbols)(\\()",
|
|
408
408
|
"beginCaptures": {
|
|
409
409
|
"1": {
|
|
410
410
|
"name": "support.function.misc.css"
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
]
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
|
-
"begin": "(?i)(?<![\\w
|
|
438
|
+
"begin": "(?i)(?<![\\w-])(circle|ellipse|inset|polygon|rect)(\\()",
|
|
439
439
|
"beginCaptures": {
|
|
440
440
|
"1": {
|
|
441
441
|
"name": "support.function.shape.css"
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
]
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
|
-
"begin": "(?i)(?<![\\w
|
|
465
|
+
"begin": "(?i)(?<![\\w-])(cubic-bezier|steps)(\\()",
|
|
466
466
|
"beginCaptures": {
|
|
467
467
|
"1": {
|
|
468
468
|
"name": "support.function.timing-function.css"
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"name": "meta.function.timing-function.css",
|
|
481
481
|
"patterns": [
|
|
482
482
|
{
|
|
483
|
-
"match": "(?i)(?<![\\w
|
|
483
|
+
"match": "(?i)(?<![\\w-])(start|end)(?=\\s*\\)|$)",
|
|
484
484
|
"name": "support.constant.step-direction.css"
|
|
485
485
|
},
|
|
486
486
|
{
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
]
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
|
-
"begin": "(?i)(?<![\\w
|
|
492
|
+
"begin": "(?i)(?<![\\w-])((?:translate|scale|rotate)(?:[XYZ]|3D)?|matrix(?:3D)?|skew[XY]?|perspective)(\\()",
|
|
493
493
|
"beginCaptures": {
|
|
494
494
|
"1": {
|
|
495
495
|
"name": "support.function.transform.css"
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
"name": "keyword.other.unit.${2:/downcase}.css"
|
|
533
533
|
}
|
|
534
534
|
},
|
|
535
|
-
"match": "(?i)(?<![\\w
|
|
535
|
+
"match": "(?i)(?<![\\w-])[-+]?(?:[0-9]+(?:\\.[0-9]+)?|\\.[0-9]+)(?:(?<=[0-9])E[-+]?[0-9]+)?(?:(%)|(deg|grad|rad|turn|Hz|kHz|ch|cm|em|ex|fr|in|mm|mozmm|pc|pt|px|q|rem|vh|vmax|vmin|vw|dpi|dpcm|dppx|s|ms)\\b)?",
|
|
536
536
|
"name": "constant.numeric.css"
|
|
537
537
|
}
|
|
538
538
|
]
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
"include": "#string"
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
|
-
"match": "!\\s*important(?![\\w
|
|
564
|
+
"match": "!\\s*important(?![\\w-])",
|
|
565
565
|
"name": "keyword.other.important.css"
|
|
566
566
|
}
|
|
567
567
|
]
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
"name": "invalid.illegal.colon.css"
|
|
576
576
|
}
|
|
577
577
|
},
|
|
578
|
-
"match": "(?i)(:)(:*)(?:active|any-link|checked|default|defined|disabled|empty|enabled|first|(?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover|in-range|indeterminate|invalid|left|link|optional|out-of-range|placeholder-shown|read-only|read-write|required|right|root|scope|target|unresolved|valid|visited)(?![\\w
|
|
578
|
+
"match": "(?i)(:)(:*)(?:active|any-link|checked|default|defined|disabled|empty|enabled|first|(?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover|in-range|indeterminate|invalid|left|link|optional|out-of-range|placeholder-shown|read-only|read-write|required|right|root|scope|target|unresolved|valid|visited)(?![\\w-]|\\s*[;}])",
|
|
579
579
|
"name": "entity.other.attribute-name.pseudo-class.css"
|
|
580
580
|
},
|
|
581
581
|
"css-pseudo-elements": {
|
|
@@ -587,12 +587,12 @@
|
|
|
587
587
|
"name": "punctuation.definition.entity.css"
|
|
588
588
|
}
|
|
589
589
|
},
|
|
590
|
-
"match": "(?i)(?:(::?)(?:after|before|first-letter|first-line|(?:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-z
|
|
590
|
+
"match": "(?i)(?:(::?)(?:after|before|first-letter|first-line|(?:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-z-]+)|(::)(?:backdrop|content|grammar-error|marker|placeholder|selection|shadow|spelling-error))(?![\\w-]|\\s*[;}])",
|
|
591
591
|
"name": "entity.other.attribute-name.pseudo-element.css"
|
|
592
592
|
},
|
|
593
593
|
"css-selector": {
|
|
594
|
-
"begin": "(?<=css\\s)(?![\\^@.%\\w
|
|
595
|
-
"end": "(\\s*(?=[\\^@.%\\w
|
|
594
|
+
"begin": "(?<=css\\s)(?![\\^@.%\\w$!-]+\\s*[:=][^:])",
|
|
595
|
+
"end": "(\\s*(?=[\\^@.%\\w$!-]+\\s*[:=][^:])|\\s*$|(?=\\s+#\\s))",
|
|
596
596
|
"endCaptures": {
|
|
597
597
|
"0": {
|
|
598
598
|
"name": "punctuation.separator.sel-properties.css"
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"include": "#css-combinators"
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
"match": "(%[\\w
|
|
620
|
+
"match": "(%[\\w-]+)",
|
|
621
621
|
"name": "entity.other.attribute-name.mixin.css"
|
|
622
622
|
},
|
|
623
623
|
{
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
"include": "#css-escapes"
|
|
663
663
|
},
|
|
664
664
|
{
|
|
665
|
-
"match": "[
|
|
665
|
+
"match": "[~|^$*]?=",
|
|
666
666
|
"name": "keyword.operator.pattern.css"
|
|
667
667
|
},
|
|
668
668
|
{
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
"name": "entity.other.attribute-name.css"
|
|
684
684
|
}
|
|
685
685
|
},
|
|
686
|
-
"match": "(-?(?!\\d)(?>[\\w\\-[^\\\\x00-\\\\7F]]|\\\\(?:\\h{1,6}|.))+)\\s*(?=[
|
|
686
|
+
"match": "(-?(?!\\d)(?>[\\w\\-[^\\\\x00-\\\\7F]]|\\\\(?:\\h{1,6}|.))+)\\s*(?=[~|^\\]$*=]|/\\*)"
|
|
687
687
|
}
|
|
688
688
|
]
|
|
689
689
|
},
|
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
"css-size-keywords": {
|
|
702
702
|
"patterns": [
|
|
703
703
|
{
|
|
704
|
-
"match": "(x+s|sm-|md-|lg-|sm|md|lg|x+l|hg|x+h)(?![\\w
|
|
704
|
+
"match": "(x+s|sm-|md-|lg-|sm|md|lg|x+l|hg|x+h)(?![\\w-])",
|
|
705
705
|
"name": "support.constant.size.property-value.css"
|
|
706
706
|
}
|
|
707
707
|
]
|
|
@@ -1341,8 +1341,8 @@
|
|
|
1341
1341
|
]
|
|
1342
1342
|
},
|
|
1343
1343
|
"inline-css-selector": {
|
|
1344
|
-
"begin": "(^\\t+)(?![\\^@.%\\w
|
|
1345
|
-
"end": "(\\s*(?=[\\^@.%\\w
|
|
1344
|
+
"begin": "(^\\t+)(?![\\^@.%\\w$!-]+\\s*[:=])",
|
|
1345
|
+
"end": "(\\s*(?=[\\^@.%\\w$!-]+\\s*[:=]|[)\\]])|\\s*$)",
|
|
1346
1346
|
"endCaptures": {
|
|
1347
1347
|
"0": {
|
|
1348
1348
|
"name": "punctuation.separator.sel-properties.css"
|
|
@@ -1583,13 +1583,13 @@
|
|
|
1583
1583
|
]
|
|
1584
1584
|
},
|
|
1585
1585
|
"mixin-css-selector": {
|
|
1586
|
-
"begin": "(%[\\w
|
|
1586
|
+
"begin": "(%[\\w-]+)",
|
|
1587
1587
|
"beginCaptures": {
|
|
1588
1588
|
"1": {
|
|
1589
1589
|
"name": "entity.other.attribute-name.mixin.css"
|
|
1590
1590
|
}
|
|
1591
1591
|
},
|
|
1592
|
-
"end": "(\\s*(?=[\\^@.%\\w
|
|
1592
|
+
"end": "(\\s*(?=[\\^@.%\\w$!-]+\\s*[:=][^:])|\\s*$|(?=\\s+#\\s))",
|
|
1593
1593
|
"endCaptures": {
|
|
1594
1594
|
"0": {
|
|
1595
1595
|
"name": "punctuation.separator.sel-properties.css"
|
|
@@ -1603,8 +1603,8 @@
|
|
|
1603
1603
|
]
|
|
1604
1604
|
},
|
|
1605
1605
|
"mixin-css-selector-after": {
|
|
1606
|
-
"begin": "(?<=%[\\w
|
|
1607
|
-
"end": "(\\s*(?=[\\^@.%\\w
|
|
1606
|
+
"begin": "(?<=%[\\w-]+)(?![\\^@.%\\w$!-]+\\s*[:=][^:])",
|
|
1607
|
+
"end": "(\\s*(?=[\\^@.%\\w$!-]+\\s*[:=][^:])|\\s*$|(?=\\s+#\\s))",
|
|
1608
1608
|
"endCaptures": {
|
|
1609
1609
|
"0": {
|
|
1610
1610
|
"name": "punctuation.separator.sel-properties.css"
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
]
|
|
1619
1619
|
},
|
|
1620
1620
|
"mixin-declaration": {
|
|
1621
|
-
"begin": "^(\\t*)(%[\\w
|
|
1621
|
+
"begin": "^(\\t*)(%[\\w-]+)",
|
|
1622
1622
|
"beginCaptures": {
|
|
1623
1623
|
"2": {
|
|
1624
1624
|
"name": "entity.other.attribute-name.mixin.css"
|
|
@@ -1642,8 +1642,8 @@
|
|
|
1642
1642
|
]
|
|
1643
1643
|
},
|
|
1644
1644
|
"nested-css-selector": {
|
|
1645
|
-
"begin": "(^\\t+)(?![\\^@.%\\w
|
|
1646
|
-
"end": "(\\s*(?=[\\^@.%\\w
|
|
1645
|
+
"begin": "(^\\t+)(?![\\^@.%\\w$!-]+\\s*[:=][^:])",
|
|
1646
|
+
"end": "(\\s*(?=[\\^@.%\\w$!-]+\\s*[:=][^:])|\\s*$|(?=\\s+#\\s))",
|
|
1647
1647
|
"endCaptures": {
|
|
1648
1648
|
"0": {
|
|
1649
1649
|
"name": "punctuation.separator.sel-properties.css"
|
|
@@ -1657,7 +1657,7 @@
|
|
|
1657
1657
|
]
|
|
1658
1658
|
},
|
|
1659
1659
|
"nested-style-declaration": {
|
|
1660
|
-
"begin": "^(\\t+)(?=[\\n
|
|
1660
|
+
"begin": "^(\\t+)(?=[\\n^]*&)",
|
|
1661
1661
|
"end": "^(?!(\\1\\t|\\s*$))",
|
|
1662
1662
|
"name": "meta.style.imba",
|
|
1663
1663
|
"patterns": [
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
"name": "keyword.other.unit.imba"
|
|
1696
1696
|
}
|
|
1697
1697
|
},
|
|
1698
|
-
"match": "([0-9]*\\.[0-9]+(?:[eE][
|
|
1698
|
+
"match": "([0-9]*\\.[0-9]+(?:[eE][-+]?[0-9]+)?)([a-z]+|%)"
|
|
1699
1699
|
}
|
|
1700
1700
|
]
|
|
1701
1701
|
},
|
|
@@ -1776,7 +1776,7 @@
|
|
|
1776
1776
|
"name": "storage.type.numeric.bigint.imba"
|
|
1777
1777
|
}
|
|
1778
1778
|
},
|
|
1779
|
-
"match": "(?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][
|
|
1779
|
+
"match": "(?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b)(?!\\$)"
|
|
1780
1780
|
}
|
|
1781
1781
|
]
|
|
1782
1782
|
},
|
|
@@ -1846,7 +1846,7 @@
|
|
|
1846
1846
|
"name": "keyword.operator.bitwise.imba"
|
|
1847
1847
|
},
|
|
1848
1848
|
{
|
|
1849
|
-
"match": "[
|
|
1849
|
+
"match": "[\\&~^|]",
|
|
1850
1850
|
"name": "keyword.operator.ternary.imba"
|
|
1851
1851
|
},
|
|
1852
1852
|
{
|
|
@@ -2372,7 +2372,7 @@
|
|
|
2372
2372
|
"name": "support.constant.property-value.var.css"
|
|
2373
2373
|
},
|
|
2374
2374
|
{
|
|
2375
|
-
"match": "(x+s|sm-|md-|lg-|sm|md|lg|x+l|hg|x+h)(?![\\w
|
|
2375
|
+
"match": "(x+s|sm-|md-|lg-|sm|md|lg|x+l|hg|x+h)(?![\\w-])",
|
|
2376
2376
|
"name": "support.constant.property-value.size.css"
|
|
2377
2377
|
},
|
|
2378
2378
|
{
|
|
@@ -2399,7 +2399,7 @@
|
|
|
2399
2399
|
"style-property": {
|
|
2400
2400
|
"patterns": [
|
|
2401
2401
|
{
|
|
2402
|
-
"begin": "(?=[\\^@.%\\w
|
|
2402
|
+
"begin": "(?=[\\^@.%\\w$!-]+\\s*[:=])",
|
|
2403
2403
|
"beginCaptures": {
|
|
2404
2404
|
"1": {
|
|
2405
2405
|
"name": "support.function.calc.css"
|
|
@@ -2669,7 +2669,7 @@
|
|
|
2669
2669
|
]
|
|
2670
2670
|
},
|
|
2671
2671
|
"tag-mixin-name": {
|
|
2672
|
-
"match": "(%[\\w
|
|
2672
|
+
"match": "(%[\\w-]+)",
|
|
2673
2673
|
"name": "entity.other.tag-mixin.imba"
|
|
2674
2674
|
},
|
|
2675
2675
|
"tag-name": {
|
|
@@ -2681,7 +2681,7 @@
|
|
|
2681
2681
|
]
|
|
2682
2682
|
},
|
|
2683
2683
|
"tag-ref": {
|
|
2684
|
-
"match": "(\\$[\\w
|
|
2684
|
+
"match": "(\\$[\\w-]+)",
|
|
2685
2685
|
"name": "entity.other.tag-ref.imba"
|
|
2686
2686
|
},
|
|
2687
2687
|
"template": {
|