tm-grammars 1.22.19 → 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 +286 -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 +1003 -283
- package/package.json +1 -1
package/grammars/glimmer-js.json
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"component-tag": {
|
|
71
|
-
"begin": "(
|
|
71
|
+
"begin": "(</?)(@|this.)?([a-zA-Z0-9\\-_$:.]+)\\b",
|
|
72
72
|
"beginCaptures": {
|
|
73
73
|
"1": {
|
|
74
74
|
"name": "punctuation.definition.tag"
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"include": "#glimmer-component-path"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
"match": "(
|
|
96
|
+
"match": "([@:$])",
|
|
97
97
|
"name": "markup.bold"
|
|
98
98
|
}
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
"end": "(
|
|
102
|
+
"end": "(/?)(>)",
|
|
103
103
|
"endCaptures": {
|
|
104
104
|
"1": {
|
|
105
105
|
"name": "punctuation.definition.tag"
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"name": "punctuation.definition.entity.html.ember-handlebars"
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x
|
|
145
|
+
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x\\h+)(;)",
|
|
146
146
|
"name": "constant.character.entity.html.ember-handlebars"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"name": "punctuation.separator.key-value.html.ember-handlebars"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
"match": "\\s(@[a-zA-Z0-9:_
|
|
169
|
+
"match": "\\s(@[a-zA-Z0-9:_.\\-]+)(=)?"
|
|
170
170
|
},
|
|
171
171
|
"glimmer-as-stuff": {
|
|
172
172
|
"patterns": [
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
181
|
"glimmer-block": {
|
|
182
|
-
"begin": "({{~?)(
|
|
182
|
+
"begin": "(\\{\\{~?)([#/])(([@$a-zA-Z0-9_/.\\-]+))",
|
|
183
183
|
"captures": {
|
|
184
184
|
"1": {
|
|
185
185
|
"name": "punctuation.definition.tag"
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"include": "#glimmer-component-path"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
"match": "(
|
|
197
|
+
"match": "(/)+",
|
|
198
198
|
"name": "punctuation.definition.tag"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -233,11 +233,11 @@
|
|
|
233
233
|
"name": "keyword.operator"
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
|
-
"match": "({{~?)(true|false|null|undefined|\\d*(\\.)?\\d+)(~?}})",
|
|
236
|
+
"match": "(\\{\\{~?)(true|false|null|undefined|\\d*(\\.)?\\d+)(~?}})",
|
|
237
237
|
"name": "entity.expression.ember-handlebars"
|
|
238
238
|
},
|
|
239
239
|
"glimmer-comment-block": {
|
|
240
|
-
"begin": "{{!--",
|
|
240
|
+
"begin": "\\{\\{!--",
|
|
241
241
|
"captures": {
|
|
242
242
|
"0": {
|
|
243
243
|
"name": "punctuation.definition.block.comment.glimmer"
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
]
|
|
256
256
|
},
|
|
257
257
|
"glimmer-comment-inline": {
|
|
258
|
-
"begin": "{{!",
|
|
258
|
+
"begin": "\\{\\{!",
|
|
259
259
|
"captures": {
|
|
260
260
|
"0": {
|
|
261
261
|
"name": "punctuation.definition.block.comment.glimmer"
|
|
@@ -278,10 +278,10 @@
|
|
|
278
278
|
"name": "punctuation.definition.tag"
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
|
-
"match": "(::|_
|
|
281
|
+
"match": "(::|[_$.])"
|
|
282
282
|
},
|
|
283
283
|
"glimmer-control-expression": {
|
|
284
|
-
"begin": "({{~?)(([
|
|
284
|
+
"begin": "(\\{\\{~?)(([\\-a-zA-Z_0-9/]+)\\s)",
|
|
285
285
|
"captures": {
|
|
286
286
|
"1": {
|
|
287
287
|
"name": "keyword.operator"
|
|
@@ -345,11 +345,11 @@
|
|
|
345
345
|
"name": "punctuation.definition.tag"
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
|
-
"match": "({{~?)(else
|
|
348
|
+
"match": "(\\{\\{~?)(else(?:\\s[a-z]+\\s|))([()@a-zA-Z0-9.\\s\\x08]+)?(~?}})",
|
|
349
349
|
"name": "entity.expression.ember-handlebars"
|
|
350
350
|
},
|
|
351
351
|
"glimmer-expression": {
|
|
352
|
-
"begin": "({{~?)(([()\\s@a-zA-Z0-9_
|
|
352
|
+
"begin": "(\\{\\{~?)(([()\\s@a-zA-Z0-9_.\\-]+))",
|
|
353
353
|
"captures": {
|
|
354
354
|
"1": {
|
|
355
355
|
"name": "keyword.operator"
|
|
@@ -361,11 +361,11 @@
|
|
|
361
361
|
"name": "support.function",
|
|
362
362
|
"patterns": [
|
|
363
363
|
{
|
|
364
|
-
"match": "
|
|
364
|
+
"match": "\\(+",
|
|
365
365
|
"name": "string.regexp"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
|
-
"match": "
|
|
368
|
+
"match": "\\)+",
|
|
369
369
|
"name": "string.regexp"
|
|
370
370
|
},
|
|
371
371
|
{
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
]
|
|
388
388
|
},
|
|
389
389
|
"glimmer-expression-property": {
|
|
390
|
-
"begin": "({{~?)((@|this.)([a-zA-Z0-9_
|
|
390
|
+
"begin": "(\\{\\{~?)((@|this.)([a-zA-Z0-9_.\\-]+))",
|
|
391
391
|
"captures": {
|
|
392
392
|
"1": {
|
|
393
393
|
"name": "keyword.operator"
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"name": "punctuation.definition.expression.ember-handlebars"
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
|
-
"match": "\\b([a-zA-Z0-9_
|
|
438
|
+
"match": "\\b([a-zA-Z0-9_\\-]+)(\\s?=)",
|
|
439
439
|
"patterns": [
|
|
440
440
|
]
|
|
441
441
|
},
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
]
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
|
-
"match": "\\b([a-zA-Z0-9:_
|
|
454
|
+
"match": "\\b([a-zA-Z0-9:_.\\-]+)\\b(?!=)",
|
|
455
455
|
"patterns": [
|
|
456
456
|
]
|
|
457
457
|
},
|
|
@@ -470,11 +470,11 @@
|
|
|
470
470
|
"name": "keyword.operator"
|
|
471
471
|
}
|
|
472
472
|
},
|
|
473
|
-
"match": "({{~?)(yield|outlet)(~?}})",
|
|
473
|
+
"match": "(\\{\\{~?)(yield|outlet)(~?}})",
|
|
474
474
|
"name": "entity.expression.ember-handlebars"
|
|
475
475
|
},
|
|
476
476
|
"glimmer-subexp": {
|
|
477
|
-
"begin": "(\\()([@a-zA-Z0-9
|
|
477
|
+
"begin": "(\\()([@a-zA-Z0-9.\\-]+)",
|
|
478
478
|
"captures": {
|
|
479
479
|
"1": {
|
|
480
480
|
"name": "keyword.other"
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
]
|
|
521
521
|
},
|
|
522
522
|
"glimmer-unescaped-expression": {
|
|
523
|
-
"begin": "{{{",
|
|
523
|
+
"begin": "\\{\\{\\{",
|
|
524
524
|
"captures": {
|
|
525
525
|
"0": {
|
|
526
526
|
"name": "keyword.operator"
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
"name": "punctuation.separator.key-value.html.ember-handlebars"
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
-
"match": "\\s([a-zA-Z0-9:_
|
|
561
|
+
"match": "\\s([a-zA-Z0-9:_.\\-]+)(=)?"
|
|
562
562
|
},
|
|
563
563
|
"html-comment": {
|
|
564
564
|
"begin": "<!--",
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
]
|
|
581
581
|
},
|
|
582
582
|
"html-tag": {
|
|
583
|
-
"begin": "(
|
|
583
|
+
"begin": "(</?)([a-z0-9\\-]+)(?![.:])\\b",
|
|
584
584
|
"beginCaptures": {
|
|
585
585
|
"1": {
|
|
586
586
|
"name": "punctuation.definition.tag"
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
"name": "entity.name.tag.html.ember-handlebars"
|
|
590
590
|
}
|
|
591
591
|
},
|
|
592
|
-
"end": "(
|
|
592
|
+
"end": "(/?)(>)",
|
|
593
593
|
"endCaptures": {
|
|
594
594
|
"1": {
|
|
595
595
|
"name": "punctuation.definition.tag"
|
|
@@ -709,8 +709,8 @@
|
|
|
709
709
|
"name": "meta.js.embeddedTemplateWithArgs",
|
|
710
710
|
"patterns": [
|
|
711
711
|
{
|
|
712
|
-
"begin": "(
|
|
713
|
-
"end": "(
|
|
712
|
+
"begin": "(?<=<template)",
|
|
713
|
+
"end": "(?=>)",
|
|
714
714
|
"patterns": [
|
|
715
715
|
{
|
|
716
716
|
"include": "#tag-like-content"
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
]
|
|
781
781
|
},
|
|
782
782
|
{
|
|
783
|
-
"begin": "(\\b(?:\\w+\\.)*(?:
|
|
783
|
+
"begin": "(\\b(?:\\w+\\.)*h(?:bs|tml)\\s*)(`)",
|
|
784
784
|
"beginCaptures": {
|
|
785
785
|
"1": {
|
|
786
786
|
"name": "entity.name.function.tagged-template.js"
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
},
|
|
876
876
|
"patterns": [
|
|
877
877
|
{
|
|
878
|
-
"begin": "((
|
|
878
|
+
"begin": "(([`'\"]))",
|
|
879
879
|
"beginCaptures": {
|
|
880
880
|
"1": {
|
|
881
881
|
"name": "string.template.ts"
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
"name": "punctuation.definition.string.template.begin.ts"
|
|
885
885
|
}
|
|
886
886
|
},
|
|
887
|
-
"end": "((
|
|
887
|
+
"end": "(([`'\"]))",
|
|
888
888
|
"endCaptures": {
|
|
889
889
|
"1": {
|
|
890
890
|
"name": "string.template.ts"
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
},
|
|
968
968
|
"patterns": [
|
|
969
969
|
{
|
|
970
|
-
"begin": "((
|
|
970
|
+
"begin": "(([`'\"]))",
|
|
971
971
|
"beginCaptures": {
|
|
972
972
|
"1": {
|
|
973
973
|
"name": "string.template.ts"
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
}
|
|
978
978
|
},
|
|
979
979
|
"contentName": "meta.embedded.block.html",
|
|
980
|
-
"end": "((
|
|
980
|
+
"end": "(([`'\"]))",
|
|
981
981
|
"endCaptures": {
|
|
982
982
|
"1": {
|
|
983
983
|
"name": "string.template.ts"
|
|
@@ -1072,7 +1072,7 @@
|
|
|
1072
1072
|
]
|
|
1073
1073
|
}
|
|
1074
1074
|
},
|
|
1075
|
-
"match": "(@|this.)([a-zA-Z0-9_
|
|
1075
|
+
"match": "(@|this.)([a-zA-Z0-9_.\\-]+)",
|
|
1076
1076
|
"patterns": [
|
|
1077
1077
|
]
|
|
1078
1078
|
},
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
]
|
|
1192
1192
|
},
|
|
1193
1193
|
{
|
|
1194
|
-
"begin": "(?
|
|
1194
|
+
"begin": "(?i:(?=type\\s*=\\s*(['\"]|)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\s\"'>]))",
|
|
1195
1195
|
"end": "((<))(?=/(?i:script))",
|
|
1196
1196
|
"endCaptures": {
|
|
1197
1197
|
"0": {
|
|
@@ -1490,7 +1490,7 @@
|
|
|
1490
1490
|
]
|
|
1491
1491
|
},
|
|
1492
1492
|
"variable": {
|
|
1493
|
-
"match": "\\b([a-zA-Z0-9
|
|
1493
|
+
"match": "\\b([a-zA-Z0-9\\-_]+)\\b",
|
|
1494
1494
|
"name": "support.function",
|
|
1495
1495
|
"patterns": [
|
|
1496
1496
|
]
|
package/grammars/glimmer-ts.json
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"component-tag": {
|
|
71
|
-
"begin": "(
|
|
71
|
+
"begin": "(</?)(@|this.)?([a-zA-Z0-9\\-_$:.]+)\\b",
|
|
72
72
|
"beginCaptures": {
|
|
73
73
|
"1": {
|
|
74
74
|
"name": "punctuation.definition.tag"
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"include": "#glimmer-component-path"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
"match": "(
|
|
96
|
+
"match": "([@:$])",
|
|
97
97
|
"name": "markup.bold"
|
|
98
98
|
}
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
"end": "(
|
|
102
|
+
"end": "(/?)(>)",
|
|
103
103
|
"endCaptures": {
|
|
104
104
|
"1": {
|
|
105
105
|
"name": "punctuation.definition.tag"
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"name": "punctuation.definition.entity.html.ember-handlebars"
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x
|
|
145
|
+
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x\\h+)(;)",
|
|
146
146
|
"name": "constant.character.entity.html.ember-handlebars"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"name": "punctuation.separator.key-value.html.ember-handlebars"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
"match": "\\s(@[a-zA-Z0-9:_
|
|
169
|
+
"match": "\\s(@[a-zA-Z0-9:_.\\-]+)(=)?"
|
|
170
170
|
},
|
|
171
171
|
"glimmer-as-stuff": {
|
|
172
172
|
"patterns": [
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
181
|
"glimmer-block": {
|
|
182
|
-
"begin": "({{~?)(
|
|
182
|
+
"begin": "(\\{\\{~?)([#/])(([@$a-zA-Z0-9_/.\\-]+))",
|
|
183
183
|
"captures": {
|
|
184
184
|
"1": {
|
|
185
185
|
"name": "punctuation.definition.tag"
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"include": "#glimmer-component-path"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
"match": "(
|
|
197
|
+
"match": "(/)+",
|
|
198
198
|
"name": "punctuation.definition.tag"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -233,11 +233,11 @@
|
|
|
233
233
|
"name": "keyword.operator"
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
|
-
"match": "({{~?)(true|false|null|undefined|\\d*(\\.)?\\d+)(~?}})",
|
|
236
|
+
"match": "(\\{\\{~?)(true|false|null|undefined|\\d*(\\.)?\\d+)(~?}})",
|
|
237
237
|
"name": "entity.expression.ember-handlebars"
|
|
238
238
|
},
|
|
239
239
|
"glimmer-comment-block": {
|
|
240
|
-
"begin": "{{!--",
|
|
240
|
+
"begin": "\\{\\{!--",
|
|
241
241
|
"captures": {
|
|
242
242
|
"0": {
|
|
243
243
|
"name": "punctuation.definition.block.comment.glimmer"
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
]
|
|
256
256
|
},
|
|
257
257
|
"glimmer-comment-inline": {
|
|
258
|
-
"begin": "{{!",
|
|
258
|
+
"begin": "\\{\\{!",
|
|
259
259
|
"captures": {
|
|
260
260
|
"0": {
|
|
261
261
|
"name": "punctuation.definition.block.comment.glimmer"
|
|
@@ -278,10 +278,10 @@
|
|
|
278
278
|
"name": "punctuation.definition.tag"
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
|
-
"match": "(::|_
|
|
281
|
+
"match": "(::|[_$.])"
|
|
282
282
|
},
|
|
283
283
|
"glimmer-control-expression": {
|
|
284
|
-
"begin": "({{~?)(([
|
|
284
|
+
"begin": "(\\{\\{~?)(([\\-a-zA-Z_0-9/]+)\\s)",
|
|
285
285
|
"captures": {
|
|
286
286
|
"1": {
|
|
287
287
|
"name": "keyword.operator"
|
|
@@ -345,11 +345,11 @@
|
|
|
345
345
|
"name": "punctuation.definition.tag"
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
|
-
"match": "({{~?)(else
|
|
348
|
+
"match": "(\\{\\{~?)(else(?:\\s[a-z]+\\s|))([()@a-zA-Z0-9.\\s\\x08]+)?(~?}})",
|
|
349
349
|
"name": "entity.expression.ember-handlebars"
|
|
350
350
|
},
|
|
351
351
|
"glimmer-expression": {
|
|
352
|
-
"begin": "({{~?)(([()\\s@a-zA-Z0-9_
|
|
352
|
+
"begin": "(\\{\\{~?)(([()\\s@a-zA-Z0-9_.\\-]+))",
|
|
353
353
|
"captures": {
|
|
354
354
|
"1": {
|
|
355
355
|
"name": "keyword.operator"
|
|
@@ -361,11 +361,11 @@
|
|
|
361
361
|
"name": "support.function",
|
|
362
362
|
"patterns": [
|
|
363
363
|
{
|
|
364
|
-
"match": "
|
|
364
|
+
"match": "\\(+",
|
|
365
365
|
"name": "string.regexp"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
|
-
"match": "
|
|
368
|
+
"match": "\\)+",
|
|
369
369
|
"name": "string.regexp"
|
|
370
370
|
},
|
|
371
371
|
{
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
]
|
|
388
388
|
},
|
|
389
389
|
"glimmer-expression-property": {
|
|
390
|
-
"begin": "({{~?)((@|this.)([a-zA-Z0-9_
|
|
390
|
+
"begin": "(\\{\\{~?)((@|this.)([a-zA-Z0-9_.\\-]+))",
|
|
391
391
|
"captures": {
|
|
392
392
|
"1": {
|
|
393
393
|
"name": "keyword.operator"
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"name": "punctuation.definition.expression.ember-handlebars"
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
|
-
"match": "\\b([a-zA-Z0-9_
|
|
438
|
+
"match": "\\b([a-zA-Z0-9_\\-]+)(\\s?=)",
|
|
439
439
|
"patterns": [
|
|
440
440
|
]
|
|
441
441
|
},
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
]
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
|
-
"match": "\\b([a-zA-Z0-9:_
|
|
454
|
+
"match": "\\b([a-zA-Z0-9:_.\\-]+)\\b(?!=)",
|
|
455
455
|
"patterns": [
|
|
456
456
|
]
|
|
457
457
|
},
|
|
@@ -470,11 +470,11 @@
|
|
|
470
470
|
"name": "keyword.operator"
|
|
471
471
|
}
|
|
472
472
|
},
|
|
473
|
-
"match": "({{~?)(yield|outlet)(~?}})",
|
|
473
|
+
"match": "(\\{\\{~?)(yield|outlet)(~?}})",
|
|
474
474
|
"name": "entity.expression.ember-handlebars"
|
|
475
475
|
},
|
|
476
476
|
"glimmer-subexp": {
|
|
477
|
-
"begin": "(\\()([@a-zA-Z0-9
|
|
477
|
+
"begin": "(\\()([@a-zA-Z0-9.\\-]+)",
|
|
478
478
|
"captures": {
|
|
479
479
|
"1": {
|
|
480
480
|
"name": "keyword.other"
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
]
|
|
521
521
|
},
|
|
522
522
|
"glimmer-unescaped-expression": {
|
|
523
|
-
"begin": "{{{",
|
|
523
|
+
"begin": "\\{\\{\\{",
|
|
524
524
|
"captures": {
|
|
525
525
|
"0": {
|
|
526
526
|
"name": "keyword.operator"
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
"name": "punctuation.separator.key-value.html.ember-handlebars"
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
-
"match": "\\s([a-zA-Z0-9:_
|
|
561
|
+
"match": "\\s([a-zA-Z0-9:_.\\-]+)(=)?"
|
|
562
562
|
},
|
|
563
563
|
"html-comment": {
|
|
564
564
|
"begin": "<!--",
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
]
|
|
581
581
|
},
|
|
582
582
|
"html-tag": {
|
|
583
|
-
"begin": "(
|
|
583
|
+
"begin": "(</?)([a-z0-9\\-]+)(?![.:])\\b",
|
|
584
584
|
"beginCaptures": {
|
|
585
585
|
"1": {
|
|
586
586
|
"name": "punctuation.definition.tag"
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
"name": "entity.name.tag.html.ember-handlebars"
|
|
590
590
|
}
|
|
591
591
|
},
|
|
592
|
-
"end": "(
|
|
592
|
+
"end": "(/?)(>)",
|
|
593
593
|
"endCaptures": {
|
|
594
594
|
"1": {
|
|
595
595
|
"name": "punctuation.definition.tag"
|
|
@@ -709,8 +709,8 @@
|
|
|
709
709
|
"name": "meta.js.embeddedTemplateWithArgs",
|
|
710
710
|
"patterns": [
|
|
711
711
|
{
|
|
712
|
-
"begin": "(
|
|
713
|
-
"end": "(
|
|
712
|
+
"begin": "(?<=<template)",
|
|
713
|
+
"end": "(?=>)",
|
|
714
714
|
"patterns": [
|
|
715
715
|
{
|
|
716
716
|
"include": "#tag-like-content"
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
]
|
|
781
781
|
},
|
|
782
782
|
{
|
|
783
|
-
"begin": "(\\b(?:\\w+\\.)*(?:
|
|
783
|
+
"begin": "(\\b(?:\\w+\\.)*h(?:bs|tml)\\s*)(`)",
|
|
784
784
|
"beginCaptures": {
|
|
785
785
|
"1": {
|
|
786
786
|
"name": "entity.name.function.tagged-template.js"
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
},
|
|
876
876
|
"patterns": [
|
|
877
877
|
{
|
|
878
|
-
"begin": "((
|
|
878
|
+
"begin": "(([`'\"]))",
|
|
879
879
|
"beginCaptures": {
|
|
880
880
|
"1": {
|
|
881
881
|
"name": "string.template.ts"
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
"name": "punctuation.definition.string.template.begin.ts"
|
|
885
885
|
}
|
|
886
886
|
},
|
|
887
|
-
"end": "((
|
|
887
|
+
"end": "(([`'\"]))",
|
|
888
888
|
"endCaptures": {
|
|
889
889
|
"1": {
|
|
890
890
|
"name": "string.template.ts"
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
},
|
|
968
968
|
"patterns": [
|
|
969
969
|
{
|
|
970
|
-
"begin": "((
|
|
970
|
+
"begin": "(([`'\"]))",
|
|
971
971
|
"beginCaptures": {
|
|
972
972
|
"1": {
|
|
973
973
|
"name": "string.template.ts"
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
}
|
|
978
978
|
},
|
|
979
979
|
"contentName": "meta.embedded.block.html",
|
|
980
|
-
"end": "((
|
|
980
|
+
"end": "(([`'\"]))",
|
|
981
981
|
"endCaptures": {
|
|
982
982
|
"1": {
|
|
983
983
|
"name": "string.template.ts"
|
|
@@ -1072,7 +1072,7 @@
|
|
|
1072
1072
|
]
|
|
1073
1073
|
}
|
|
1074
1074
|
},
|
|
1075
|
-
"match": "(@|this.)([a-zA-Z0-9_
|
|
1075
|
+
"match": "(@|this.)([a-zA-Z0-9_.\\-]+)",
|
|
1076
1076
|
"patterns": [
|
|
1077
1077
|
]
|
|
1078
1078
|
},
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
]
|
|
1192
1192
|
},
|
|
1193
1193
|
{
|
|
1194
|
-
"begin": "(?
|
|
1194
|
+
"begin": "(?i:(?=type\\s*=\\s*(['\"]|)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\s\"'>]))",
|
|
1195
1195
|
"end": "((<))(?=/(?i:script))",
|
|
1196
1196
|
"endCaptures": {
|
|
1197
1197
|
"0": {
|
|
@@ -1490,7 +1490,7 @@
|
|
|
1490
1490
|
]
|
|
1491
1491
|
},
|
|
1492
1492
|
"variable": {
|
|
1493
|
-
"match": "\\b([a-zA-Z0-9
|
|
1493
|
+
"match": "\\b([a-zA-Z0-9\\-_]+)\\b",
|
|
1494
1494
|
"name": "support.function",
|
|
1495
1495
|
"patterns": [
|
|
1496
1496
|
]
|
package/grammars/glsl.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"g.glsl"
|
|
19
19
|
],
|
|
20
20
|
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
|
21
|
-
"foldingStopMarker": "\\*\\*/|^\\s
|
|
21
|
+
"foldingStopMarker": "\\*\\*/|^\\s*}",
|
|
22
22
|
"name": "glsl",
|
|
23
23
|
"patterns": [
|
|
24
24
|
{
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"name": "keyword.control.glsl"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"match": "\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec2|ivec3|uvec2|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[1|
|
|
29
|
+
"match": "\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec2|ivec3|uvec2|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[1|23]D|samplerCube|sampler2DRect|sampler[1|2]DShadow|sampler2DRectShadow|sampler[1|2]DArray|sampler[1|2]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[1|23]D|isamplerCube|isampler2DRect|isampler[1|2]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[1|23]D|usamplerCube|usampler2DRect|usampler[1|2]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\\b",
|
|
30
30
|
"name": "storage.type.glsl"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"name": "storage.modifier.glsl"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"match": "\\b(
|
|
37
|
+
"match": "\\b(gl_(?:BackColor|BackLightModelProduct|BackLightProduct|BackMaterial|BackSecondaryColor|ClipDistance|ClipPlane|ClipVertex|Color|DepthRange|DepthRangeParameters|EyePlaneQ|EyePlaneR|EyePlaneS|EyePlaneT|Fog|FogCoord|FogFragCoord|FogParameters|FragColor|FragCoord|FragDat|FragDept|FrontColor|FrontFacing|FrontLightModelProduct|FrontLightProduct|FrontMaterial|FrontSecondaryColor|InstanceID|Layer|LightModel|LightModelParameters|LightModelProducts|LightProducts|LightSource|LightSourceParameters|MaterialParameters|ModelViewMatrix|ModelViewMatrixInverse|ModelViewMatrixInverseTranspose|ModelViewMatrixTranspose|ModelViewProjectionMatrix|ModelViewProjectionMatrixInverse|ModelViewProjectionMatrixInverseTranspose|ModelViewProjectionMatrixTranspose|MultiTexCoord[0-7]|Normal|NormalMatrix|NormalScale|ObjectPlaneQ|ObjectPlaneR|ObjectPlaneS|ObjectPlaneT|Point|PointCoord|PointParameters|PointSize|Position|PrimitiveIDIn|ProjectionMatrix|ProjectionMatrixInverse|ProjectionMatrixInverseTranspose|ProjectionMatrixTranspose|SecondaryColor|TexCoord|TextureEnvColor|TextureMatrix|TextureMatrixInverse|TextureMatrixInverseTranspose|TextureMatrixTranspose|Vertex|VertexIDh))\\b",
|
|
38
38
|
"name": "support.variable.glsl"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
"match": "\\b(
|
|
41
|
+
"match": "\\b(gl_Max(?:ClipPlanes|CombinedTextureImageUnits|DrawBuffers|FragmentUniformComponents|Lights|TextureCoords|TextureImageUnits|TextureUnits|VaryingFloats|VertexAttribs|VertexTextureImageUnits|VertexUniformComponents))\\b",
|
|
42
42
|
"name": "support.constant.glsl"
|
|
43
43
|
},
|
|
44
44
|
{
|