tm-grammars 1.23.3 → 1.23.5
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 +130 -130
- package/grammars/abap.json +1 -1
- package/grammars/actionscript-3.json +2 -2
- package/grammars/ada.json +5 -5
- package/grammars/angular-expression.json +2 -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/gleam.json +3 -3
- 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 +187 -187
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"repository": {
|
|
10
10
|
"alias_statement": {
|
|
11
|
-
"begin": "[ \\t]*+(alias)[ \\t]*+((?:((?<!\\w)-\\w+\\b)[ \\t]*+)*)[ \\t]*+((?<!\\w)[a-zA-Z_0-9
|
|
11
|
+
"begin": "[ \\t]*+(alias)[ \\t]*+((?:((?<!\\w)-\\w+\\b)[ \\t]*+)*)[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*)|(-?\\d+)))(]))?(?:(?:(=)|(\\+=))|(-=))",
|
|
12
12
|
"beginCaptures": {
|
|
13
13
|
"1": {
|
|
14
14
|
"name": "storage.type.alias.shell"
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"match": "(\\[)([^\\[\\]]+)(])"
|
|
203
203
|
},
|
|
204
204
|
"array_value": {
|
|
205
|
-
"begin": "[ \\t]*+((?<!\\w)[a-zA-Z_0-9
|
|
205
|
+
"begin": "[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*)|(-?\\d+)))(]))?(?:(?:(=)|(\\+=))|(-=))[ \\t]*+(\\()",
|
|
206
206
|
"beginCaptures": {
|
|
207
207
|
"1": {
|
|
208
208
|
"name": "variable.other.assignment.shell"
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"name": "keyword.operator.assignment.shell punctuation.definition.assignment.shell"
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
|
-
"match": "((?<!\\w)[a-zA-Z_0-9
|
|
254
|
+
"match": "((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(=)"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
"captures": {
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
"name": "meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"
|
|
534
534
|
}
|
|
535
535
|
},
|
|
536
|
-
"end": "(?<!\\G)(
|
|
536
|
+
"end": "(?<!\\G)(?<=\\2)",
|
|
537
537
|
"endCaptures": {
|
|
538
538
|
},
|
|
539
539
|
"patterns": [
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
"for_statement": {
|
|
730
730
|
"patterns": [
|
|
731
731
|
{
|
|
732
|
-
"begin": "(\\bfor\\b)[ \\t]*+((?<!\\w)[a-zA-Z_0-9
|
|
732
|
+
"begin": "(\\bfor\\b)[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))[ \\t]*+(\\bin\\b)",
|
|
733
733
|
"beginCaptures": {
|
|
734
734
|
"1": {
|
|
735
735
|
"name": "keyword.control.for.shell"
|
|
@@ -887,7 +887,7 @@
|
|
|
887
887
|
}
|
|
888
888
|
},
|
|
889
889
|
"contentName": "string.quoted.heredoc.indent.$3",
|
|
890
|
-
"end": "
|
|
890
|
+
"end": "^\\t*\\3(?=[\\s;\\&]|$)",
|
|
891
891
|
"endCaptures": {
|
|
892
892
|
"0": {
|
|
893
893
|
"name": "punctuation.definition.string.heredoc.$0.shell"
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
}
|
|
924
924
|
},
|
|
925
925
|
"contentName": "string.quoted.heredoc.no-indent.$3",
|
|
926
|
-
"end": "
|
|
926
|
+
"end": "^\\3(?=[\\s;\\&]|$)",
|
|
927
927
|
"endCaptures": {
|
|
928
928
|
"0": {
|
|
929
929
|
"name": "punctuation.definition.string.heredoc.delimiter.shell"
|
|
@@ -953,7 +953,7 @@
|
|
|
953
953
|
}
|
|
954
954
|
},
|
|
955
955
|
"contentName": "string.unquoted.heredoc.indent.$2",
|
|
956
|
-
"end": "
|
|
956
|
+
"end": "^\\t*\\2(?=[\\s;\\&]|$)",
|
|
957
957
|
"endCaptures": {
|
|
958
958
|
"0": {
|
|
959
959
|
"name": "punctuation.definition.string.heredoc.delimiter.shell"
|
|
@@ -992,7 +992,7 @@
|
|
|
992
992
|
}
|
|
993
993
|
},
|
|
994
994
|
"contentName": "string.unquoted.heredoc.no-indent.$2",
|
|
995
|
-
"end": "
|
|
995
|
+
"end": "^\\2(?=[\\s;\\&]|$)",
|
|
996
996
|
"endCaptures": {
|
|
997
997
|
"0": {
|
|
998
998
|
"name": "punctuation.definition.string.heredoc.delimiter.shell"
|
|
@@ -1495,7 +1495,7 @@
|
|
|
1495
1495
|
"include": "#variable"
|
|
1496
1496
|
},
|
|
1497
1497
|
{
|
|
1498
|
-
"match": "\\+{1,2}|-{1,2}|[!~]|\\*{1,2}|[/%]|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|[?:,=]|[
|
|
1498
|
+
"match": "\\+{1,2}|-{1,2}|[!~]|\\*{1,2}|[/%]|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|[?:,=]|[*/%+\\-\\&^|]=|<<=|>>=",
|
|
1499
1499
|
"name": "keyword.operator.arithmetic.shell"
|
|
1500
1500
|
},
|
|
1501
1501
|
{
|
|
@@ -1527,7 +1527,7 @@
|
|
|
1527
1527
|
"math_operators": {
|
|
1528
1528
|
"patterns": [
|
|
1529
1529
|
{
|
|
1530
|
-
"match": "\\+{1,2}|-{1,2}|[!~]|\\*{1,2}|[/%]|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|[?:,=]|[
|
|
1530
|
+
"match": "\\+{1,2}|-{1,2}|[!~]|\\*{1,2}|[/%]|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|[?:,=]|[*/%+\\-\\&^|]=|<<=|>>=",
|
|
1531
1531
|
"name": "keyword.operator.arithmetic.shell"
|
|
1532
1532
|
},
|
|
1533
1533
|
{
|
|
@@ -1645,7 +1645,7 @@
|
|
|
1645
1645
|
"name": "constant.numeric.shell constant.numeric.hex.shell"
|
|
1646
1646
|
}
|
|
1647
1647
|
},
|
|
1648
|
-
"match": "((?<!\\w)[a-zA-Z_0-9
|
|
1648
|
+
"match": "((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*)|(-?\\d+)))(]))?(?:(?:(=)|(\\+=))|(-=))?(?:(?<=[= \\t]|^|[{(\\[])(?:(?:(?:(?:(?:(0[xX]\\h+)|(0\\d+))|(\\d{1,2}#[0-9a-zA-Z@_]+))|(-?\\d+\\.\\d+))|(-?\\d+(?:\\.\\d+)+))|(-?\\d+))(?=[ \\t]|$|[});]))?"
|
|
1649
1649
|
},
|
|
1650
1650
|
{
|
|
1651
1651
|
"include": "#normal_context"
|
|
@@ -1657,7 +1657,7 @@
|
|
|
1657
1657
|
"name": "storage.modifier.$0.shell"
|
|
1658
1658
|
},
|
|
1659
1659
|
"normal_assignment_statement": {
|
|
1660
|
-
"begin": "[ \\t]*+((?<!\\w)[a-zA-Z_0-9
|
|
1660
|
+
"begin": "[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*)|(-?\\d+)))(]))?(?:(?:(=)|(\\+=))|(-=))",
|
|
1661
1661
|
"beginCaptures": {
|
|
1662
1662
|
"1": {
|
|
1663
1663
|
"name": "variable.other.assignment.shell"
|
|
@@ -2055,7 +2055,7 @@
|
|
|
2055
2055
|
"name": "string.unquoted.shell"
|
|
2056
2056
|
},
|
|
2057
2057
|
"special_expansion": {
|
|
2058
|
-
"match": "!|:[
|
|
2058
|
+
"match": "!|:[-=?]?|[*@]|##|#|%%|[%/]",
|
|
2059
2059
|
"name": "keyword.operator.expansion.shell"
|
|
2060
2060
|
},
|
|
2061
2061
|
"start_of_command": {
|
|
@@ -2243,7 +2243,7 @@
|
|
|
2243
2243
|
"name": "variable.language.special.shell"
|
|
2244
2244
|
}
|
|
2245
2245
|
},
|
|
2246
|
-
"match": "(\\$)([
|
|
2246
|
+
"match": "(\\$)([-*#?$!0_](?!\\w))"
|
|
2247
2247
|
},
|
|
2248
2248
|
{
|
|
2249
2249
|
"begin": "(\\$)(\\{)[ \\t]*+(?=\\d)",
|
|
@@ -2274,7 +2274,7 @@
|
|
|
2274
2274
|
"name": "variable.parameter.positional.shell"
|
|
2275
2275
|
},
|
|
2276
2276
|
{
|
|
2277
|
-
"match": "(?<!\\w)[a-zA-Z_0-9
|
|
2277
|
+
"match": "(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",
|
|
2278
2278
|
"name": "variable.other.normal.shell"
|
|
2279
2279
|
},
|
|
2280
2280
|
{
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
"include": "#array_access_inline"
|
|
2311
2311
|
},
|
|
2312
2312
|
{
|
|
2313
|
-
"match": "(?<!\\w)[a-zA-Z_0-9
|
|
2313
|
+
"match": "(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",
|
|
2314
2314
|
"name": "variable.other.normal.shell"
|
|
2315
2315
|
},
|
|
2316
2316
|
{
|
package/grammars/solidity.json
CHANGED
|
@@ -1016,7 +1016,7 @@
|
|
|
1016
1016
|
"name": "constant.numeric.hexadecimal"
|
|
1017
1017
|
},
|
|
1018
1018
|
"number-scientific": {
|
|
1019
|
-
"match": "\\b(?:0\\.(?:0[0-9]|[0-9][0-9_]?)|[0-9][0-9_]*(?:\\.\\d{1,2})?)(?:e[
|
|
1019
|
+
"match": "\\b(?:0\\.(?:0[0-9]|[0-9][0-9_]?)|[0-9][0-9_]*(?:\\.\\d{1,2})?)(?:e[+-]?[0-9_]+)?",
|
|
1020
1020
|
"name": "constant.numeric.scientific"
|
|
1021
1021
|
},
|
|
1022
1022
|
"operator": {
|
package/grammars/sparql.json
CHANGED
package/grammars/sql.json
CHANGED
package/grammars/stata.json
CHANGED
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
"name": "storage.type.orgtype.mata"
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
|
-
"match": "!|\\+\\+|--|[\\&'?\\\\]|::|,|\\.\\.|[|=]|==|>=|<=|[<>]|!=|[
|
|
693
|
+
"match": "!|\\+\\+|--|[\\&'?\\\\]|::|,|\\.\\.|[|=]|==|>=|<=|[<>]|!=|[#+\\-*^/]",
|
|
694
694
|
"name": "keyword.operator.mata"
|
|
695
695
|
},
|
|
696
696
|
{
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
"ascii-regex-character-class": {
|
|
748
748
|
"patterns": [
|
|
749
749
|
{
|
|
750
|
-
"match": "\\\\[
|
|
750
|
+
"match": "\\\\[*+?\\-.^$|\\[\\]()\\\\]",
|
|
751
751
|
"name": "constant.character.escape.backslash.stata"
|
|
752
752
|
},
|
|
753
753
|
{
|
|
@@ -1380,15 +1380,15 @@
|
|
|
1380
1380
|
"include": "#factorvariables"
|
|
1381
1381
|
},
|
|
1382
1382
|
{
|
|
1383
|
-
"match": "\\b(?i:(\\d+\\.\\d*(e[
|
|
1383
|
+
"match": "\\b(?i:(\\d+\\.\\d*(e[-+]?\\d+)?))(?=[^a-zA-Z_])",
|
|
1384
1384
|
"name": "constant.numeric.float.stata"
|
|
1385
1385
|
},
|
|
1386
1386
|
{
|
|
1387
|
-
"match": "(?<=[^0-9a-zA-Z_])(?i:(\\.\\d+(e[
|
|
1387
|
+
"match": "(?<=[^0-9a-zA-Z_])(?i:(\\.\\d+(e[-+]?\\d+)?))",
|
|
1388
1388
|
"name": "constant.numeric.float.stata"
|
|
1389
1389
|
},
|
|
1390
1390
|
{
|
|
1391
|
-
"match": "\\b(?i:(\\d+e[
|
|
1391
|
+
"match": "\\b(?i:(\\d+e[-+]?\\d+))",
|
|
1392
1392
|
"name": "constant.numeric.float.stata"
|
|
1393
1393
|
},
|
|
1394
1394
|
{
|
|
@@ -1898,7 +1898,7 @@
|
|
|
1898
1898
|
"name": "entity.name.type.class.stata"
|
|
1899
1899
|
}
|
|
1900
1900
|
},
|
|
1901
|
-
"match": "\\b(list)\\s+(\\w{1,32})\\s+([
|
|
1901
|
+
"match": "\\b(list)\\s+(\\w{1,32})\\s+([|\\&-]|===|==|in)\\s+(\\w{1,32})"
|
|
1902
1902
|
},
|
|
1903
1903
|
{
|
|
1904
1904
|
"captures": {
|
|
@@ -2316,7 +2316,7 @@
|
|
|
2316
2316
|
"operators": {
|
|
2317
2317
|
"patterns": [
|
|
2318
2318
|
{
|
|
2319
|
-
"match": "\\+\\+|--|[
|
|
2319
|
+
"match": "\\+\\+|--|[+\\-*^]",
|
|
2320
2320
|
"name": "keyword.operator.arithmetic.stata"
|
|
2321
2321
|
},
|
|
2322
2322
|
{
|
package/grammars/stylus.json
CHANGED
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
]
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
"begin": "\\s*((@)keyframes)\\b\\s+([a-zA-Z_
|
|
153
|
+
"begin": "\\s*((@)keyframes)\\b\\s+([a-zA-Z_-][a-zA-Z0-9_-]*)",
|
|
154
154
|
"beginCaptures": {
|
|
155
155
|
"1": {
|
|
156
156
|
"name": "keyword.control.at-rule.keyframes.stylus"
|
|
@@ -189,15 +189,15 @@
|
|
|
189
189
|
"name": "meta.at-rule.media.stylus"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"match": "(?=\\w)(?<![\\w
|
|
192
|
+
"match": "(?=\\w)(?<![\\w-])(width|scan|resolution|orientation|monochrome|min-width|min-resolution|min-monochrome|min-height|min-device-width|min-device-height|min-device-aspect-ratio|min-color-index|min-color|min-aspect-ratio|max-width|max-resolution|max-monochrome|max-height|max-device-width|max-device-height|max-device-aspect-ratio|max-color-index|max-color|max-aspect-ratio|height|grid|device-width|device-height|device-aspect-ratio|color-index|color|aspect-ratio)(?<=\\w)(?![\\w-])",
|
|
193
193
|
"name": "support.type.property-name.media-feature.media.css"
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
"match": "(?=\\w)(?<![\\w
|
|
196
|
+
"match": "(?=\\w)(?<![\\w-])(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)(?<=\\w)(?![\\w-])",
|
|
197
197
|
"name": "support.constant.media-type.media.css"
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
|
-
"match": "(?=\\w)(?<![\\w
|
|
200
|
+
"match": "(?=\\w)(?<![\\w-])(portrait|landscape)(?<=\\w)(?![\\w-])",
|
|
201
201
|
"name": "support.constant.property-value.media-property.media.css"
|
|
202
202
|
}
|
|
203
203
|
]
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"name": "meta.property-list.css",
|
|
315
315
|
"patterns": [
|
|
316
316
|
{
|
|
317
|
-
"match": "(?<![\\w
|
|
317
|
+
"match": "(?<![\\w-])--[-a-zA-Z_[^\\x00-\\x7F]](?:[-a-zA-Z0-9_[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.))*",
|
|
318
318
|
"name": "variable.css"
|
|
319
319
|
},
|
|
320
320
|
{
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"name": "variable.section.css"
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
|
-
"match": "\\G\\s*(counter-(?:reset|increment))(?:(:)|[^\\S\\n])[^\\S\\n]*([a-zA-Z_
|
|
341
|
+
"match": "\\G\\s*(counter-(?:reset|increment))(?:(:)|[^\\S\\n])[^\\S\\n]*([a-zA-Z_-][a-zA-Z0-9_-]*)",
|
|
342
342
|
"name": "meta.property.counter.css"
|
|
343
343
|
},
|
|
344
344
|
{
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
"name": "support.constant.font-name.css"
|
|
379
379
|
},
|
|
380
380
|
"function": {
|
|
381
|
-
"begin": "(?=[a-zA-Z_
|
|
381
|
+
"begin": "(?=[a-zA-Z_-][a-zA-Z0-9_-]*\\()",
|
|
382
382
|
"end": "(\\))",
|
|
383
383
|
"endCaptures": {
|
|
384
384
|
"1": {
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"name": "variable.section.css"
|
|
430
430
|
}
|
|
431
431
|
},
|
|
432
|
-
"match": "(counter)(\\()([a-zA-Z_
|
|
432
|
+
"match": "(counter)(\\()([a-zA-Z_-][a-zA-Z0-9_-]*)(?=\\))",
|
|
433
433
|
"name": "meta.function.misc.counter.css"
|
|
434
434
|
},
|
|
435
435
|
{
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"name": "meta.function.misc.counters.css",
|
|
447
447
|
"patterns": [
|
|
448
448
|
{
|
|
449
|
-
"match": "\\G[a-zA-Z_
|
|
449
|
+
"match": "\\G[a-zA-Z_-][a-zA-Z0-9_-]*",
|
|
450
450
|
"name": "variable.section.css"
|
|
451
451
|
},
|
|
452
452
|
{
|
|
@@ -475,11 +475,11 @@
|
|
|
475
475
|
"name": "meta.function.misc.attr.css",
|
|
476
476
|
"patterns": [
|
|
477
477
|
{
|
|
478
|
-
"match": "\\G[a-zA-Z_
|
|
478
|
+
"match": "\\G[a-zA-Z_-][a-zA-Z0-9_-]*",
|
|
479
479
|
"name": "entity.other.attribute-name.attribute.css"
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
|
-
"match": "(?<=[a-zA-Z0-9_
|
|
482
|
+
"match": "(?<=[a-zA-Z0-9_-])\\s*\\b(string|color|url|integer|number|length|em|ex|px|rem|vw|vh|vmin|vmax|mm|cm|in|pt|pc|angle|deg|grad|rad|time|s|ms|frequency|Hz|kHz|%)\\b",
|
|
483
483
|
"name": "support.type.attr.css"
|
|
484
484
|
},
|
|
485
485
|
{
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
"name": "support.function.transform.css"
|
|
695
695
|
},
|
|
696
696
|
{
|
|
697
|
-
"begin": "([a-zA-Z_
|
|
697
|
+
"begin": "([a-zA-Z_-][a-zA-Z0-9_-]*)(\\()",
|
|
698
698
|
"beginCaptures": {
|
|
699
699
|
"1": {
|
|
700
700
|
"name": "entity.name.function.stylus"
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
"name": "meta.function.stylus",
|
|
708
708
|
"patterns": [
|
|
709
709
|
{
|
|
710
|
-
"match": "--[
|
|
710
|
+
"match": "--[-a-zA-Z_[^\\x00-\\x7F]](?:[-a-zA-Z0-9_[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.))*",
|
|
711
711
|
"name": "variable.argument.stylus"
|
|
712
712
|
},
|
|
713
713
|
{
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
"name": "keyword.other.unit.css"
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
|
-
"match": "(?<![\\w
|
|
788
|
+
"match": "(?<![\\w-])(?:[-+]?[0-9]+(?:\\.[0-9]+)?|\\.[0-9]+)((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|dppx|fr|ms|s|turn|vh|vmax|vmin|vw)\\b|%)?",
|
|
789
789
|
"name": "constant.numeric.css"
|
|
790
790
|
}
|
|
791
791
|
]
|
|
@@ -802,7 +802,7 @@
|
|
|
802
802
|
]
|
|
803
803
|
},
|
|
804
804
|
"property": {
|
|
805
|
-
"begin": "\\G\\s*(?:(-webkit-[
|
|
805
|
+
"begin": "\\G\\s*(?:(-webkit-[-A-Za-z]+|-moz-[-A-Za-z]+|-o-[-A-Za-z]+|-ms-[-A-Za-z]+|-khtml-[-A-Za-z]+|zoom|z-index|[yx]|wrap|word-wrap|word-spacing|word-break|word|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|variant|user-select|up|unicode-bidi|unicode-range|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|mix-blend-mode|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|mask-image|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-height|line-break|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify-content|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|gap|grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-start|grid-row|grid-row-end|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows|row-gap|gap|font-kerning|font-language-override|font-weight|font-variant-caps|font-variant|font-style|font-synthesis|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|fill|filter|family|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|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|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|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-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-blend-mode|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation-fill-mode|animation|alignment-baseline|alignment-adjust|alignment|align-self|align-last|align-items|align-content|align|after|adjust|will-change)|(writing-mode|text-anchor|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|shape-rendering|marker-start|marker-mid|marker-end|lighting-color|kerning|image-rendering|glyph-orientation-vertical|glyph-orientation-horizontal|flood-opacity|flood-color|fill-rule|fill-opacity|fill|enable-background|color-rendering|color-interpolation-filters|color-interpolation|clip-rule|clip-path)|([a-zA-Z_-][a-zA-Z0-9_-]*))(?!([^\\S\\n]*&)|([^\\S\\n]*\\{))(?=:|([^\\S\\n]+\\S))",
|
|
806
806
|
"beginCaptures": {
|
|
807
807
|
"1": {
|
|
808
808
|
"name": "support.type.property-name.css"
|
|
@@ -867,11 +867,11 @@
|
|
|
867
867
|
"include": "#language_constants"
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
|
-
"match": "(?=\\w)(?<![\\w
|
|
870
|
+
"match": "(?=\\w)(?<![\\w-])(wrap-reverse|wrap|whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|unicase|underline|ultra-expanded|ultra-condensed|transparent|transform|top|titling-caps|thin|thick|text-top|text-bottom|text|tb-rl|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table|sw-resize|super|strict|stretch|step-start|step-end|static|square|space-between|space-around|space|solid|soft-light|small-caps|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|saturation|s-resize|running|rtl|row-reverse|row-resize|row|round|right|ridge|reverse|repeat-y|repeat-x|repeat|relative|progressive|progress|pre-wrap|pre-line|pre|pointer|petite-caps|paused|pan-x|pan-left|pan-right|pan-y|pan-up|pan-down|padding-box|overline|overlay|outside|outset|optimizeSpeed|optimizeLegibility|opacity|oblique|nw-resize|nowrap|not-allowed|normal|none|no-repeat|no-drop|newspaper|ne-resize|n-resize|multiply|move|middle|medium|max-height|manipulation|main-size|luminosity|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|local|list-item|linear(?!-)|line-through|line-edge|line|lighter|lighten|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline-block|inline|inherit|infinite|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|hue|horizontal|hidden|help|hard-light|hand|groove|geometricPrecision|forwards|flex-start|flex-end|flex|fixed|extra-expanded|extra-condensed|expanded|exclusion|ellipsis|ease-out|ease-in-out|ease-in|ease|e-resize|double|dotted|distribute-space|distribute-letter|distribute-all-lines|distribute|disc|disabled|difference|default|decimal|dashed|darken|currentColor|crosshair|cover|content-box|contain|condensed|column-reverse|column|color-dodge|color-burn|color|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|border-box|bolder|bold|block|bidi-override|below|baseline|balance|backwards|auto|antialiased|always|alternate-reverse|alternate|all-small-caps|all-scroll|all-petite-caps|all|absolute)(?<=\\w)(?![\\w-])",
|
|
871
871
|
"name": "support.constant.property-value.css"
|
|
872
872
|
},
|
|
873
873
|
{
|
|
874
|
-
"match": "(?=\\w)(?<![\\w
|
|
874
|
+
"match": "(?=\\w)(?<![\\w-])(start|sRGB|square|round|optimizeSpeed|optimizeQuality|nonzero|miter|middle|linearRGB|geometricPrecision |evenodd |end |crispEdges|butt|bevel)(?<=\\w)(?![\\w-])",
|
|
875
875
|
"name": "support.constant.property-value.svg.css"
|
|
876
876
|
},
|
|
877
877
|
{
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
"include": "#variable"
|
|
908
908
|
},
|
|
909
909
|
{
|
|
910
|
-
"match": "(?<!^)(@[a-zA-Z_
|
|
910
|
+
"match": "(?<!^)(@[a-zA-Z_-][a-zA-Z0-9_-]*)",
|
|
911
911
|
"name": "variable.property.stylus"
|
|
912
912
|
}
|
|
913
913
|
]
|
|
@@ -915,11 +915,11 @@
|
|
|
915
915
|
"selector": {
|
|
916
916
|
"patterns": [
|
|
917
917
|
{
|
|
918
|
-
"match": "(?=\\w)(?<![\\w
|
|
918
|
+
"match": "(?=\\w)(?<![\\w-])(a|abbr|acronym|address|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|main|map|mark|math|menu|menuitem|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|rb|rp|rt|rtc|ruby|s|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|svg|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr)(?<=\\w)(?![\\w-])",
|
|
919
919
|
"name": "entity.name.tag.css"
|
|
920
920
|
},
|
|
921
921
|
{
|
|
922
|
-
"match": "(?=\\w)(?<![\\w
|
|
922
|
+
"match": "(?=\\w)(?<![\\w-])(vkern|view|use|tspan|tref|title|textPath|text|symbol|switch|svg|style|stop|set|script|rect|radialGradient|polyline|polygon|pattern|path|mpath|missing-glyph|metadata|mask|marker|linearGradient|line|image|hkern|glyphRef|glyph|g|foreignObject|font-face-uri|font-face-src|font-face-name|font-face-format|font-face|font|filter|feTurbulence|feTile|feSpotLight|feSpecularLighting|fePointLight|feOffset|feMorphology|feMergeNode|feMerge|feImage|feGaussianBlur|feFuncR|feFuncG|feFuncB|feFuncA|feFlood|feDistantLight|feDisplacementMap|feDiffuseLighting|feConvolveMatrix|feComposite|feComponentTransfer|feColorMatrix|feBlend|ellipse|desc|defs|cursor|color-profile|clipPath|circle|animateTransform|animateMotion|animateColor|animate|altGlyphItem|altGlyphDef|altGlyph|a)(?<=\\w)(?![\\w-])",
|
|
923
923
|
"name": "entity.name.tag.svg.css"
|
|
924
924
|
},
|
|
925
925
|
{
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
"name": "entity.other.attribute-name.parent-selector-suffix.stylus"
|
|
937
937
|
}
|
|
938
938
|
},
|
|
939
|
-
"match": "\\s*(&)([a-zA-Z0-9_
|
|
939
|
+
"match": "\\s*(&)([a-zA-Z0-9_-]+)\\s*",
|
|
940
940
|
"name": "meta.selector.stylus"
|
|
941
941
|
},
|
|
942
942
|
{
|
|
@@ -949,7 +949,7 @@
|
|
|
949
949
|
"name": "punctuation.definition.entity.css"
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
|
-
"match": "(\\.)[a-zA-Z0-9_
|
|
952
|
+
"match": "(\\.)[a-zA-Z0-9_-]+",
|
|
953
953
|
"name": "entity.other.attribute-name.class.css"
|
|
954
954
|
},
|
|
955
955
|
{
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
"name": "punctuation.definition.entity.css"
|
|
959
959
|
}
|
|
960
960
|
},
|
|
961
|
-
"match": "(#)[a-zA-Z][a-zA-Z0-9_
|
|
961
|
+
"match": "(#)[a-zA-Z][a-zA-Z0-9_-]*",
|
|
962
962
|
"name": "entity.other.attribute-name.id.css"
|
|
963
963
|
},
|
|
964
964
|
{
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
"name": "punctuation.definition.entity.css"
|
|
1119
1119
|
}
|
|
1120
1120
|
},
|
|
1121
|
-
"match": "(?i)(\\[)\\s*(-?[_a-z\\\\[:^ascii:]][_a-z0-9\\-\\\\[:^ascii:]]*)(?:\\s*([
|
|
1121
|
+
"match": "(?i)(\\[)\\s*(-?[_a-z\\\\[:^ascii:]][_a-z0-9\\-\\\\[:^ascii:]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[:^ascii:]][_a-z0-9\\-\\\\[:^ascii:]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(])",
|
|
1122
1122
|
"name": "meta.attribute-selector.css"
|
|
1123
1123
|
},
|
|
1124
1124
|
{
|
|
@@ -1176,11 +1176,11 @@
|
|
|
1176
1176
|
]
|
|
1177
1177
|
},
|
|
1178
1178
|
"variable": {
|
|
1179
|
-
"match": "(\\$[a-zA-Z_
|
|
1179
|
+
"match": "(\\$[a-zA-Z_-][a-zA-Z0-9_-]*)",
|
|
1180
1180
|
"name": "variable.stylus"
|
|
1181
1181
|
},
|
|
1182
1182
|
"variable_declaration": {
|
|
1183
|
-
"begin": "^[^\\S\\n]*(\\$?[a-zA-Z_
|
|
1183
|
+
"begin": "^[^\\S\\n]*(\\$?[a-zA-Z_-][a-zA-Z0-9_-]*)[^\\S\\n]*(=|\\?=|:=)",
|
|
1184
1184
|
"beginCaptures": {
|
|
1185
1185
|
"1": {
|
|
1186
1186
|
"name": "variable.stylus"
|
package/grammars/svelte.json
CHANGED
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
"name": "entity.name.tag.svelte"
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
|
-
"match": "(svelte)(:)([a-z][\\w
|
|
1088
|
+
"match": "(svelte)(:)([a-z][\\w:-]*)"
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
1091
1091
|
"match": "slot",
|
|
@@ -1112,11 +1112,11 @@
|
|
|
1112
1112
|
"match": "(\\w+(?:\\.\\w+)+)|([A-Z]\\w+)"
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
|
-
"match": "[a-z][\\w0-9:]*-[\\w0-9
|
|
1115
|
+
"match": "[a-z][\\w0-9:]*-[\\w0-9:-]*",
|
|
1116
1116
|
"name": "meta.tag.custom.svelte entity.name.tag.svelte"
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
|
-
"match": "[a-z][\\w0-9
|
|
1119
|
+
"match": "[a-z][\\w0-9:-]*",
|
|
1120
1120
|
"name": "entity.name.tag.svelte"
|
|
1121
1121
|
}
|
|
1122
1122
|
]
|