tm-grammars 1.22.18 → 1.23.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/NOTICE +287 -1
- package/README.md +241 -239
- package/grammars/abap.json +36 -36
- package/grammars/actionscript-3.json +29 -29
- package/grammars/ada.json +78 -78
- package/grammars/angular-expression.json +62 -62
- package/grammars/angular-html.json +0 -1
- package/grammars/angular-inline-style.json +3 -3
- package/grammars/angular-inline-template.json +2 -2
- package/grammars/angular-template-blocks.json +3 -3
- package/grammars/angular-template.json +1 -1
- package/grammars/angular-ts.json +251 -251
- package/grammars/apache.json +31 -31
- package/grammars/apex.json +108 -108
- package/grammars/apl.json +18 -18
- package/grammars/applescript.json +11 -11
- package/grammars/ara.json +13 -13
- package/grammars/asciidoc.json +234 -234
- package/grammars/asm.json +90 -90
- package/grammars/astro.json +25 -25
- package/grammars/awk.json +8 -8
- package/grammars/ballerina.json +150 -150
- package/grammars/bat.json +28 -28
- package/grammars/beancount.json +33 -33
- package/grammars/berry.json +11 -11
- package/grammars/bibtex.json +12 -12
- package/grammars/bicep.json +12 -12
- package/grammars/blade.json +183 -183
- package/grammars/bsl.json +58 -58
- package/grammars/c.json +162 -162
- package/grammars/cadence.json +20 -20
- package/grammars/cairo.json +10 -10
- package/grammars/clarity.json +20 -20
- package/grammars/clojure.json +25 -25
- package/grammars/cmake.json +3 -3
- package/grammars/cobol.json +91 -91
- package/grammars/codeql.json +154 -154
- package/grammars/coffee.json +45 -45
- package/grammars/common-lisp.json +50 -50
- package/grammars/coq.json +10 -10
- package/grammars/cpp-macro.json +410 -410
- package/grammars/cpp.json +641 -641
- package/grammars/crystal.json +68 -68
- package/grammars/csharp.json +196 -196
- package/grammars/css.json +83 -83
- package/grammars/csv.json +1 -1
- package/grammars/cue.json +55 -55
- package/grammars/cypher.json +11 -11
- package/grammars/d.json +127 -32
- package/grammars/dart.json +18 -18
- package/grammars/dax.json +9 -9
- package/grammars/desktop.json +9 -9
- package/grammars/diff.json +3 -3
- package/grammars/dotenv.json +3 -3
- package/grammars/dream-maker.json +20 -20
- package/grammars/edge.json +8 -8
- package/grammars/elixir.json +44 -44
- package/grammars/elm.json +23 -23
- package/grammars/emacs-lisp.json +76 -76
- package/grammars/erb.json +2 -2
- package/grammars/erlang.json +29 -29
- package/grammars/es-tag-css.json +3 -3
- package/grammars/es-tag-glsl.json +3 -3
- package/grammars/es-tag-html.json +3 -3
- package/grammars/es-tag-sql.json +2 -2
- package/grammars/es-tag-xml.json +2 -2
- package/grammars/fennel.json +8 -8
- package/grammars/fish.json +10 -10
- package/grammars/fluent.json +10 -10
- package/grammars/fortran-fixed-form.json +1 -1
- package/grammars/fortran-free-form.json +106 -106
- package/grammars/fsharp.json +70 -70
- package/grammars/gdresource.json +15 -15
- package/grammars/gdscript.json +31 -27
- package/grammars/gdshader.json +18 -18
- package/grammars/genie.json +6 -6
- package/grammars/gherkin.json +1 -1
- package/grammars/git-commit.json +1 -1
- package/grammars/git-rebase.json +1 -1
- package/grammars/gleam.json +11 -11
- package/grammars/glimmer-js.json +35 -35
- package/grammars/glimmer-ts.json +35 -35
- package/grammars/glsl.json +4 -4
- package/grammars/gnuplot.json +41 -41
- package/grammars/go.json +155 -155
- package/grammars/graphql.json +20 -20
- package/grammars/groovy.json +44 -44
- package/grammars/hack.json +74 -74
- package/grammars/haml.json +24 -24
- package/grammars/handlebars.json +25 -25
- package/grammars/haskell.json +99 -99
- package/grammars/haxe.json +51 -51
- package/grammars/hcl.json +43 -43
- package/grammars/hjson.json +29 -29
- package/grammars/hlsl.json +15 -15
- package/grammars/html-derivative.json +0 -1
- package/grammars/html.json +28 -29
- package/grammars/http.json +17 -17
- package/grammars/hxml.json +3 -3
- package/grammars/hy.json +10 -10
- package/grammars/imba.json +168 -173
- package/grammars/ini.json +2 -2
- package/grammars/java.json +54 -54
- package/grammars/javascript.json +262 -262
- package/grammars/jinja-html.json +3 -3
- package/grammars/jinja.json +15 -15
- package/grammars/jison.json +18 -18
- package/grammars/json.json +6 -6
- package/grammars/json5.json +12 -12
- package/grammars/jsonc.json +6 -6
- package/grammars/jsonl.json +6 -6
- package/grammars/jsonnet.json +15 -15
- package/grammars/jssm.json +4 -4
- package/grammars/jsx.json +262 -262
- package/grammars/julia.json +45 -45
- package/grammars/kotlin.json +15 -15
- package/grammars/kusto.json +13 -13
- package/grammars/latex.json +260 -260
- package/grammars/lean.json +12 -12
- package/grammars/less.json +91 -91
- package/grammars/liquid.json +96 -62
- package/grammars/llvm.json +122 -0
- package/grammars/log.json +22 -22
- package/grammars/logo.json +2 -2
- package/grammars/lua.json +34 -34
- package/grammars/luau.json +20 -20
- package/grammars/make.json +22 -22
- package/grammars/markdown-vue.json +1 -1
- package/grammars/markdown.json +83 -83
- package/grammars/marko.json +19 -19
- package/grammars/matlab.json +29 -29
- package/grammars/mdc.json +17 -17
- package/grammars/mdx.json +278 -278
- package/grammars/mermaid.json +97 -97
- package/grammars/mipsasm.json +2 -2
- package/grammars/mojo.json +122 -122
- package/grammars/move.json +35 -35
- package/grammars/narrat.json +10 -10
- package/grammars/nextflow.json +11 -11
- package/grammars/nginx.json +45 -45
- package/grammars/nim.json +44 -44
- package/grammars/nix.json +71 -71
- package/grammars/nushell.json +36 -36
- package/grammars/objective-c.json +129 -129
- package/grammars/objective-cpp.json +245 -245
- package/grammars/ocaml.json +229 -229
- package/grammars/pascal.json +4 -4
- package/grammars/perl.json +64 -64
- package/grammars/php.json +199 -199
- package/grammars/plsql.json +10 -10
- package/grammars/po.json +4 -4
- package/grammars/polar.json +13 -13
- package/grammars/postcss.json +31 -31
- package/grammars/powerquery.json +10 -10
- package/grammars/powershell.json +54 -54
- package/grammars/prisma.json +13 -13
- package/grammars/prolog.json +3 -3
- package/grammars/proto.json +11 -11
- package/grammars/pug.json +30 -30
- package/grammars/puppet.json +35 -35
- package/grammars/purescript.json +843 -467
- package/grammars/python.json +126 -126
- package/grammars/qml.json +18 -18
- package/grammars/qss.json +7 -7
- package/grammars/r.json +17 -17
- package/grammars/racket.json +58 -58
- package/grammars/raku.json +15 -15
- package/grammars/razor.json +30 -30
- package/grammars/reg.json +3 -3
- package/grammars/regexp.json +15 -15
- package/grammars/rel.json +4 -4
- package/grammars/riscv.json +15 -15
- package/grammars/rst.json +26 -26
- package/grammars/ruby.json +103 -106
- package/grammars/rust.json +13 -13
- package/grammars/sas.json +9 -9
- package/grammars/sass.json +35 -35
- package/grammars/scala.json +75 -75
- package/grammars/scheme.json +16 -16
- package/grammars/scss.json +68 -68
- package/grammars/sdbl.json +18 -18
- package/grammars/shaderlab.json +8 -8
- package/grammars/shellscript.json +111 -111
- package/grammars/shellsession.json +1 -1
- package/grammars/smalltalk.json +5 -5
- package/grammars/solidity.json +20 -20
- package/grammars/soy.json +30 -30
- package/grammars/sparql.json +1 -1
- package/grammars/splunk.json +6 -6
- package/grammars/sql.json +8 -8
- package/grammars/ssh-config.json +2 -2
- package/grammars/stata.json +90 -90
- package/grammars/stylus.json +48 -48
- package/grammars/svelte.json +35 -25
- package/grammars/swift.json +114 -114
- package/grammars/system-verilog.json +25 -25
- package/grammars/systemd.json +16 -16
- package/grammars/talonscript.json +12 -12
- package/grammars/tasl.json +10 -10
- package/grammars/tcl.json +11 -11
- package/grammars/templ.json +34 -34
- package/grammars/terraform.json +42 -42
- package/grammars/tex.json +14 -14
- package/grammars/toml.json +15 -15
- package/grammars/tsx.json +262 -262
- package/grammars/turtle.json +2 -2
- package/grammars/twig.json +37 -37
- package/grammars/typescript.json +251 -251
- package/grammars/typespec.json +54 -273
- package/grammars/typst.json +34 -34
- package/grammars/v.json +32 -32
- package/grammars/vala.json +6 -6
- package/grammars/vb.json +7 -7
- package/grammars/verilog.json +4 -4
- package/grammars/vhdl.json +10 -10
- package/grammars/viml.json +22 -22
- package/grammars/vue-html.json +10 -10
- package/grammars/vue-sfc-style-variable-injection.json +1 -1
- package/grammars/vue.json +65 -65
- package/grammars/vyper.json +126 -126
- package/grammars/wasm.json +26 -26
- package/grammars/wenyan.json +7 -7
- package/grammars/wgsl.json +9 -9
- package/grammars/wikitext.json +66 -66
- package/grammars/wit.json +1409 -0
- package/grammars/wolfram.json +446 -446
- package/grammars/xml.json +11 -11
- package/grammars/xsl.json +1 -1
- package/grammars/yaml.json +24 -24
- package/grammars/zenscript.json +8 -8
- package/grammars/zig.json +11 -11
- package/index.d.ts +7 -0
- package/index.js +1226 -506
- package/package.json +1 -1
package/grammars/plsql.json
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"name": "comment.line.double-dash.oracle"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"match": "(?i)
|
|
28
|
+
"match": "(?i)^\\s*rem\\s+.*$",
|
|
29
29
|
"name": "comment.line.sqlplus.oracle"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"match": "(?i)
|
|
32
|
+
"match": "(?i)^\\s*prompt\\s+.*$",
|
|
33
33
|
"name": "comment.line.sqlplus-prompt.oracle"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"name": "entity.name.function.oracle"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"match": "(?i)^\\s*(function|procedure)\\s+\"?([
|
|
83
|
+
"match": "(?i)^\\s*(function|procedure)\\s+\"?([\\-a-z0-9_]+)\"?",
|
|
84
84
|
"name": "meta.procedure.oracle"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
"match": "[!<>:]
|
|
87
|
+
"match": "[!<>:]?=|<>|[<>+]|(?<!\\.)\\*|-|(?<!^)/|\\|\\|",
|
|
88
88
|
"name": "keyword.operator.oracle"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"name": "support.function.oracle"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
"match": "(?i)\\b(sql
|
|
111
|
+
"match": "(?i)\\b(sql(?:|code))\\b",
|
|
112
112
|
"name": "variable.language.oracle"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
@@ -152,11 +152,11 @@
|
|
|
152
152
|
"name": "keyword.other.pragma.oracle"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
"match": "(?i)\\b(p(
|
|
155
|
+
"match": "(?i)\\b(p([io]|io)_[\\-a-z0-9_]+)\\b",
|
|
156
156
|
"name": "variable.parameter.oracle"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
"match": "(?i)\\b(l_[
|
|
159
|
+
"match": "(?i)\\b(l_[\\-a-z0-9_]+)\\b",
|
|
160
160
|
"name": "variable.other.oracle"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"name": "keyword.other.ddl.oracle"
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
"match": "(?i)\\b(with|select|from|where|order\\s+(siblings\\s+)?by|group\\s+by|rollup|cube|((left|right|cross|natural)\\s+(outer\\s+)?)?join|on|asc|desc|update|set|insert|into|values|delete|distinct|union|minus|intersect|having|limit|table|between|like|of|row|(
|
|
183
|
+
"match": "(?i)\\b(with|select|from|where|order\\s+(siblings\\s+)?by|group\\s+by|rollup|cube|((left|right|cross|natural)\\s+(outer\\s+)?)?join|on|asc|desc|update|set|insert|into|values|delete|distinct|union|minus|intersect|having|limit|table|between|like|of|row|(r(?:ange|ows))\\s+between|nulls\\s+first|nulls\\s+last|before|after|all|any|exists|rownum|cursor|returning|over|partition\\s+by|merge|using|matched|pivot|unpivot)\\b",
|
|
184
184
|
"name": "keyword.other.sql.oracle"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"name": "support.class.oracle"
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
|
-
"match": "(?i)\\b((
|
|
209
|
+
"match": "(?i)\\b((ht[fp])\\.(\\w+))\\b",
|
|
210
210
|
"name": "support.function.oracle"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"name": "support.function.user-defined.oracle"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
"match": "(?i)\\b(raise
|
|
222
|
+
"match": "(?i)\\b(raise(?:|_application_error))\\b",
|
|
223
223
|
"name": "support.function.oracle"
|
|
224
224
|
},
|
|
225
225
|
{
|
package/grammars/po.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "po",
|
|
9
9
|
"patterns": [
|
|
10
10
|
{
|
|
11
|
-
"begin": "^(?=(
|
|
11
|
+
"begin": "^(?:(?=(msg(?:id(_plural)?|ctxt))\\s*\"[^\"])|\\s*$)",
|
|
12
12
|
"end": "\\z",
|
|
13
13
|
"patterns": [
|
|
14
14
|
{
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"begin": "^(msgstr)(?:(\\[)(\\d+)(
|
|
69
|
+
"begin": "^(msgstr)(?:(\\[)(\\d+)(]))?\\s+",
|
|
70
70
|
"beginCaptures": {
|
|
71
71
|
"1": {
|
|
72
72
|
"name": "keyword.control.msgstr.po"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
"begin": "^(msgctxt)(?:(\\[)(\\d+)(
|
|
101
|
+
"begin": "^(msgctxt)(?:(\\[)(\\d+)(]))?\\s+",
|
|
102
102
|
"beginCaptures": {
|
|
103
103
|
"1": {
|
|
104
104
|
"name": "keyword.control.msgctxt.po"
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"name": "entity.name.type.flag.po"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
|
-
"match": "(?:\\G|,\\s*)(
|
|
172
|
+
"match": "(?:\\G|,\\s*)(fuzzy|(?:no-)?(?:c|objc|sh|lisp|elisp|librep|scheme|smalltalk|java|csharp|awk|object-pascal|ycp|tcl|perl|perl-brace|php|gcc-internal|qt|boost)-format)"
|
|
173
173
|
}
|
|
174
174
|
]
|
|
175
175
|
},
|
package/grammars/polar.json
CHANGED
|
@@ -81,15 +81,15 @@
|
|
|
81
81
|
"number": {
|
|
82
82
|
"patterns": [
|
|
83
83
|
{
|
|
84
|
-
"match": "\\b[
|
|
84
|
+
"match": "\\b[+\\-]?\\d+(?:(\\.)\\d+(?:e[+\\-]?\\d+)?|e[+\\-]?\\d+)\\b",
|
|
85
85
|
"name": "constant.numeric.float"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"match": "\\b(
|
|
88
|
+
"match": "\\b([+\\-])\\d+\\b",
|
|
89
89
|
"name": "constant.numeric.integer"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
"match": "\\b
|
|
92
|
+
"match": "\\b\\d+\\b",
|
|
93
93
|
"name": "constant.numeric.natural"
|
|
94
94
|
}
|
|
95
95
|
]
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"name": "entity.name.type.resource"
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
"end": "
|
|
104
|
+
"end": "}",
|
|
105
105
|
"name": "constant.other.object-literal",
|
|
106
106
|
"patterns": [
|
|
107
107
|
{
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
"name": "keyword.control"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
"match": "(
|
|
124
|
+
"match": "([+\\-*/<>=!])"
|
|
125
125
|
},
|
|
126
126
|
"resource-block": {
|
|
127
|
-
"begin": "(?<resourceType>[a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*){0}((
|
|
127
|
+
"begin": "(?<resourceType>[a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*){0}((resource|actor)\\s+(\\g<resourceType>)(?:\\s+(extends)\\s+(\\g<resourceType>(?:\\s*,\\s*\\g<resourceType>)*)\\s*,?\\s*)?|(global))\\s*\\{",
|
|
128
128
|
"beginCaptures": {
|
|
129
129
|
"3": {
|
|
130
130
|
"name": "keyword.control"
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"name": "keyword.control"
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
|
-
"end": "
|
|
150
|
+
"end": "}",
|
|
151
151
|
"name": "meta.resource-block",
|
|
152
152
|
"patterns": [
|
|
153
153
|
{
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"begin": "\\{",
|
|
159
|
-
"end": "
|
|
159
|
+
"end": "}",
|
|
160
160
|
"name": "meta.relation-declaration",
|
|
161
161
|
"patterns": [
|
|
162
162
|
{
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"begin": "\\[",
|
|
284
|
-
"end": "
|
|
284
|
+
"end": "]",
|
|
285
285
|
"name": "meta.bracket.list",
|
|
286
286
|
"patterns": [
|
|
287
287
|
{
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
"begin": "\\{",
|
|
298
|
-
"end": "
|
|
298
|
+
"end": "}",
|
|
299
299
|
"name": "meta.bracket.dict",
|
|
300
300
|
"patterns": [
|
|
301
301
|
{
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"name": "string.quoted.double"
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
|
-
"end": "
|
|
332
|
+
"end": "}",
|
|
333
333
|
"name": "meta.test-block",
|
|
334
334
|
"patterns": [
|
|
335
335
|
{
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"name": "keyword.control"
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
|
-
"end": "
|
|
342
|
+
"end": "}",
|
|
343
343
|
"name": "meta.test-setup",
|
|
344
344
|
"patterns": [
|
|
345
345
|
{
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"include": "#rule"
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
|
-
"match": "\\b(assert
|
|
360
|
+
"match": "\\b(assert(?:|_not))\\b",
|
|
361
361
|
"name": "keyword.other"
|
|
362
362
|
},
|
|
363
363
|
{
|
package/grammars/postcss.json
CHANGED
|
@@ -58,37 +58,37 @@
|
|
|
58
58
|
"name": "keyword.control.at-rule.css.postcss"
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
"end": "(
|
|
61
|
+
"end": "(?=[\\n({;])",
|
|
62
62
|
"name": "support.function.name.postcss.library"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
"begin": "@mixin
|
|
65
|
+
"begin": "@(?:mixin|function)",
|
|
66
66
|
"captures": {
|
|
67
67
|
"0": {
|
|
68
68
|
"name": "keyword.control.at-rule.css.postcss"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
"end": "$\\n?|(
|
|
71
|
+
"end": "$\\n?|(?=[({])",
|
|
72
72
|
"name": "support.function.name.postcss.no-completions",
|
|
73
73
|
"patterns": [
|
|
74
74
|
{
|
|
75
|
-
"match": "[\\w
|
|
75
|
+
"match": "[\\w\\-]+",
|
|
76
76
|
"name": "entity.name.function"
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
"match": "(?<=@import)\\s[\\w
|
|
81
|
+
"match": "(?<=@import)\\s[\\w/.*\\-]+",
|
|
82
82
|
"name": "string.quoted.double.css.postcss"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"begin": "@",
|
|
86
|
-
"end": "$\\n?|\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\\s
|
|
86
|
+
"end": "$\\n?|\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)([\\s,]))|(?=;)",
|
|
87
87
|
"name": "keyword.control.at-rule.css.postcss"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"begin": "#",
|
|
91
|
-
"end": "$\\n?|(
|
|
91
|
+
"end": "$\\n?|(?=[\\s,;().\\[{>])",
|
|
92
92
|
"name": "entity.other.attribute-name.id.css.postcss",
|
|
93
93
|
"patterns": [
|
|
94
94
|
{
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
"begin": "\\.|(?<=&)(
|
|
104
|
-
"end": "$\\n?|(
|
|
103
|
+
"begin": "\\.|(?<=&)([\\-_])",
|
|
104
|
+
"end": "$\\n?|(?=[\\s,;()\\[{>])",
|
|
105
105
|
"name": "entity.other.attribute-name.class.css.postcss",
|
|
106
106
|
"patterns": [
|
|
107
107
|
{
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"begin": "\\[",
|
|
117
|
-
"end": "
|
|
117
|
+
"end": "]",
|
|
118
118
|
"name": "entity.other.attribute-selector.postcss",
|
|
119
119
|
"patterns": [
|
|
120
120
|
{
|
|
@@ -124,18 +124,18 @@
|
|
|
124
124
|
"include": "#single-quoted"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"match": "
|
|
127
|
+
"match": "[\\^$*~]",
|
|
128
128
|
"name": "keyword.other.regex.postcss"
|
|
129
129
|
}
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
"match": "(
|
|
133
|
+
"match": "(?<=[\\])]|not\\(|[*>]|>\\s):[a-z:\\-]+|(:[:\\-])[a-z:\\-]+",
|
|
134
134
|
"name": "entity.other.attribute-name.pseudo-class.css.postcss"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"begin": ":",
|
|
138
|
-
"end": "$\\n?|(?=;|\\s\\(|and\\(|{
|
|
138
|
+
"end": "$\\n?|(?=;|\\s\\(|and\\(|[{}]|\\),)",
|
|
139
139
|
"name": "meta.property-list.css.postcss",
|
|
140
140
|
"patterns": [
|
|
141
141
|
{
|
|
@@ -195,8 +195,8 @@
|
|
|
195
195
|
"include": "#function-content"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"begin": "(
|
|
199
|
-
"end": "(
|
|
198
|
+
"begin": "(?<![\\-(])\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|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|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|[ux])\\b(?![\\-)]|:\\s)|&",
|
|
199
|
+
"end": "(?=[\\s,;().\\[{>\\-_])",
|
|
200
200
|
"name": "entity.name.tag.css.postcss.symbol",
|
|
201
201
|
"patterns": [
|
|
202
202
|
{
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"include": "#operator"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
"match": "[a-z
|
|
214
|
+
"match": "[a-z\\-]+((?=:|#\\{))",
|
|
215
215
|
"name": "support.type.property-name.css.postcss"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
@@ -223,12 +223,12 @@
|
|
|
223
223
|
],
|
|
224
224
|
"repository": {
|
|
225
225
|
"comment-tag": {
|
|
226
|
-
"begin": "{{",
|
|
226
|
+
"begin": "\\{\\{",
|
|
227
227
|
"end": "}}",
|
|
228
228
|
"name": "comment.tags.postcss",
|
|
229
229
|
"patterns": [
|
|
230
230
|
{
|
|
231
|
-
"match": "[\\w
|
|
231
|
+
"match": "[\\w\\-]+",
|
|
232
232
|
"name": "comment.tag.postcss"
|
|
233
233
|
}
|
|
234
234
|
]
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
"name": "keyword.other.important.css.postcss"
|
|
263
263
|
},
|
|
264
264
|
"function": {
|
|
265
|
-
"match": "(?<=[\\s
|
|
265
|
+
"match": "(?<=[\\s|(,:])(?!url|format|attr)[\\w\\-][\\w\\-]*(?=\\()",
|
|
266
266
|
"name": "support.function.name.postcss"
|
|
267
267
|
},
|
|
268
268
|
"function-content": {
|
|
@@ -270,11 +270,11 @@
|
|
|
270
270
|
"name": "string.quoted.double.css.postcss"
|
|
271
271
|
},
|
|
272
272
|
"function-content-var": {
|
|
273
|
-
"match": "(?<=var\\()[\\w
|
|
273
|
+
"match": "(?<=var\\()[\\w\\-]+(?=\\))",
|
|
274
274
|
"name": "variable.parameter.postcss"
|
|
275
275
|
},
|
|
276
276
|
"interpolation": {
|
|
277
|
-
"begin": "
|
|
277
|
+
"begin": "#\\{",
|
|
278
278
|
"end": "}",
|
|
279
279
|
"name": "support.function.interpolation.postcss",
|
|
280
280
|
"patterns": [
|
|
@@ -299,11 +299,11 @@
|
|
|
299
299
|
]
|
|
300
300
|
},
|
|
301
301
|
"numeric": {
|
|
302
|
-
"match": "(
|
|
302
|
+
"match": "([\\-.])?[0-9]+(\\.[0-9]+)?",
|
|
303
303
|
"name": "constant.numeric.css.postcss"
|
|
304
304
|
},
|
|
305
305
|
"operator": {
|
|
306
|
-
"match": "\\+|\\s-\\s|\\s-(?=\\$)|(?<=\\()-(?=\\$)|\\s-(?=\\()
|
|
306
|
+
"match": "\\+|\\s-\\s|\\s-(?=\\$)|(?<=\\()-(?=\\$)|\\s-(?=\\()|[*/%=!<>~]",
|
|
307
307
|
"name": "keyword.operator.postcss"
|
|
308
308
|
},
|
|
309
309
|
"parent-selector": {
|
|
@@ -312,19 +312,19 @@
|
|
|
312
312
|
},
|
|
313
313
|
"placeholder-selector": {
|
|
314
314
|
"begin": "(?<!\\d)%(?!\\d)",
|
|
315
|
-
"end": "$\\n?|\\s|(
|
|
315
|
+
"end": "$\\n?|\\s|(?=[;{])",
|
|
316
316
|
"name": "entity.other.attribute-name.placeholder-selector.postcss"
|
|
317
317
|
},
|
|
318
318
|
"property-value": {
|
|
319
|
-
"match": "[\\w
|
|
319
|
+
"match": "[\\w\\-]+",
|
|
320
320
|
"name": "meta.property-value.css.postcss, support.constant.property-value.css.postcss"
|
|
321
321
|
},
|
|
322
322
|
"pseudo-class": {
|
|
323
|
-
"match": ":[a-z
|
|
323
|
+
"match": ":[a-z:\\-]+",
|
|
324
324
|
"name": "entity.other.attribute-name.pseudo-class.css.postcss"
|
|
325
325
|
},
|
|
326
326
|
"quoted-interpolation": {
|
|
327
|
-
"begin": "
|
|
327
|
+
"begin": "#\\{",
|
|
328
328
|
"end": "}",
|
|
329
329
|
"name": "support.function.interpolation.postcss",
|
|
330
330
|
"patterns": [
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
"name": "support.type.property-name.css.postcss"
|
|
348
348
|
},
|
|
349
349
|
"rgb-value": {
|
|
350
|
-
"match": "(#)(
|
|
350
|
+
"match": "(#)(\\h{3}|\\h{6})\\b",
|
|
351
351
|
"name": "constant.other.color.rgb-value.css.postcss"
|
|
352
352
|
},
|
|
353
353
|
"single-quoted": {
|
|
@@ -361,15 +361,15 @@
|
|
|
361
361
|
]
|
|
362
362
|
},
|
|
363
363
|
"unit": {
|
|
364
|
-
"match": "(?<=[\\d]
|
|
364
|
+
"match": "(?<=[\\d}])(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|%)",
|
|
365
365
|
"name": "keyword.other.unit.css.postcss"
|
|
366
366
|
},
|
|
367
367
|
"variable": {
|
|
368
|
-
"match": "\\$[\\w
|
|
368
|
+
"match": "\\$[\\w\\-]+",
|
|
369
369
|
"name": "variable.parameter.postcss"
|
|
370
370
|
},
|
|
371
371
|
"variable-root-css": {
|
|
372
|
-
"match": "(?<!&)--[\\w
|
|
372
|
+
"match": "(?<!&)--[\\w\\-]+",
|
|
373
373
|
"name": "variable.parameter.postcss"
|
|
374
374
|
}
|
|
375
375
|
},
|
package/grammars/powerquery.json
CHANGED
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"match": "(#|\\h{4}|\\h{8}|cr|lf|tab)(?:,(#|\\h{4}|\\h{8}|cr|lf|tab))*"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"match": "[
|
|
86
|
+
"match": "[^)]",
|
|
87
87
|
"name": "invalid.illegal.escapesequence.powerquery"
|
|
88
88
|
}
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
"FloatNumber": {
|
|
92
|
-
"match": "(\\d*\\.)?\\d+(
|
|
92
|
+
"match": "(\\d*\\.)?\\d+([eE])([+\\-])?\\d+",
|
|
93
93
|
"name": "constant.numeric.float.powerquery"
|
|
94
94
|
},
|
|
95
95
|
"HexNumber": {
|
|
96
|
-
"match": "0(
|
|
96
|
+
"match": "0([xX])\\h+",
|
|
97
97
|
"name": "constant.numeric.integer.hexadecimal.powerquery"
|
|
98
98
|
},
|
|
99
99
|
"Identifier": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"name": "entity.name.powerquery"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"match": "(
|
|
108
|
+
"match": "(?<![._\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\d\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}])(@?)([_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}][_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\d\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}]*(?:\\.[_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}][_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\d\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}])*)\\b"
|
|
109
109
|
},
|
|
110
110
|
"ImplicitVariable": {
|
|
111
111
|
"match": "\\b_\\b",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"name": "constant.language.intrinsicvariable.powerquery"
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
-
"match": "(?<![\\d\\w])(#
|
|
136
|
+
"match": "(?<![\\d\\w])(#s(?:ections|hared))\\b"
|
|
137
137
|
},
|
|
138
138
|
"Keywords": {
|
|
139
139
|
"captures": {
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"name": "keyword.powerquery"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
"match": "\\b(?:(and|or|not)|(if|then|else)|(try|otherwise)|(as|each|in|is|let|meta|type|error)|(
|
|
156
|
+
"match": "\\b(?:(and|or|not)|(if|then|else)|(try|otherwise)|(as|each|in|is|let|meta|type|error)|(s(?:ection|hared)))\\b"
|
|
157
157
|
},
|
|
158
158
|
"LineComment": {
|
|
159
159
|
"match": "//.*",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"name": "constant.language.numeric.float.powerquery"
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
-
"match": "(?<![\\d\\w])(#infinity
|
|
217
|
+
"match": "(?<![\\d\\w])(#(?:infinity|nan))\\b"
|
|
218
218
|
},
|
|
219
219
|
"Operators": {
|
|
220
220
|
"captures": {
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"name": "keyword.operator.optional.powerquery"
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
|
-
"match": "(=>)|(=)|(
|
|
243
|
+
"match": "(=>)|(=)|(<>|[<>]|<=|>=)|(&)|([+\\-*/])|(!)|(\\?)"
|
|
244
244
|
},
|
|
245
245
|
"Punctuation": {
|
|
246
246
|
"captures": {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"name": "punctuation.section.braces.end.powerquery"
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
"match": "(,)|(\\()|(\\))|({)|(})"
|
|
263
|
+
"match": "(,)|(\\()|(\\))|(\\{)|(})"
|
|
264
264
|
},
|
|
265
265
|
"QuotedIdentifier": {
|
|
266
266
|
"begin": "#\"",
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
"contentName": "meta.recordexpression.powerquery",
|
|
297
|
-
"end": "
|
|
297
|
+
"end": "]",
|
|
298
298
|
"endCaptures": {
|
|
299
299
|
"0": {
|
|
300
300
|
"name": "punctuation.section.brackets.end.powerquery"
|