tm-grammars 0.0.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/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Glimmer JS",
|
|
3
|
+
"injections": {
|
|
4
|
+
"L:source.gjs -comment -string": {
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"begin": "\\s*(<)(template)\\s*(>)",
|
|
8
|
+
"beginCaptures": {
|
|
9
|
+
"1": {
|
|
10
|
+
"name": "punctuation.definition.tag.html"
|
|
11
|
+
},
|
|
12
|
+
"2": {
|
|
13
|
+
"name": "entity.name.tag.other.html"
|
|
14
|
+
},
|
|
15
|
+
"3": {
|
|
16
|
+
"name": "punctuation.definition.tag.html"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"end": "(</)(template)(>)",
|
|
20
|
+
"endCaptures": {
|
|
21
|
+
"1": {
|
|
22
|
+
"name": "punctuation.definition.tag.html"
|
|
23
|
+
},
|
|
24
|
+
"2": {
|
|
25
|
+
"name": "entity.name.tag.other.html"
|
|
26
|
+
},
|
|
27
|
+
"3": {
|
|
28
|
+
"name": "punctuation.definition.tag.html"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"name": "meta.js.embeddedTemplateWithoutArgs",
|
|
32
|
+
"patterns": [
|
|
33
|
+
{
|
|
34
|
+
"include": "text.html.handlebars"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"begin": "(<)(template)",
|
|
40
|
+
"beginCaptures": {
|
|
41
|
+
"1": {
|
|
42
|
+
"name": "punctuation.definition.tag.html"
|
|
43
|
+
},
|
|
44
|
+
"2": {
|
|
45
|
+
"name": "entity.name.tag.other.html"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"end": "(</)(template)(>)",
|
|
49
|
+
"endCaptures": {
|
|
50
|
+
"1": {
|
|
51
|
+
"name": "punctuation.definition.tag.html"
|
|
52
|
+
},
|
|
53
|
+
"2": {
|
|
54
|
+
"name": "entity.name.tag.other.html"
|
|
55
|
+
},
|
|
56
|
+
"3": {
|
|
57
|
+
"name": "punctuation.definition.tag.html"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"name": "meta.js.embeddedTemplateWithArgs",
|
|
61
|
+
"patterns": [
|
|
62
|
+
{
|
|
63
|
+
"begin": "(?<=\\<template)",
|
|
64
|
+
"end": "(?=\\>)",
|
|
65
|
+
"patterns": [
|
|
66
|
+
{
|
|
67
|
+
"include": "text.html.handlebars#tag-stuff"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"begin": "(>)",
|
|
73
|
+
"beginCaptures": {
|
|
74
|
+
"1": {
|
|
75
|
+
"name": "punctuation.definition.tag.end.js"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"contentName": "meta.html.embedded.block",
|
|
79
|
+
"end": "(?=</template>)",
|
|
80
|
+
"patterns": [
|
|
81
|
+
{
|
|
82
|
+
"include": "text.html.handlebars"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"name": "glimmer-js",
|
|
92
|
+
"patterns": [
|
|
93
|
+
{
|
|
94
|
+
"include": "source.js"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"scopeName": "source.gjs"
|
|
98
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Glimmer TS",
|
|
3
|
+
"injections": {
|
|
4
|
+
"L:source.gts -comment -string": {
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"begin": "\\s*(<)(template)\\s*(>)",
|
|
8
|
+
"beginCaptures": {
|
|
9
|
+
"1": {
|
|
10
|
+
"name": "punctuation.definition.tag.html"
|
|
11
|
+
},
|
|
12
|
+
"2": {
|
|
13
|
+
"name": "entity.name.tag.other.html"
|
|
14
|
+
},
|
|
15
|
+
"3": {
|
|
16
|
+
"name": "punctuation.definition.tag.html"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"end": "(</)(template)(>)",
|
|
20
|
+
"endCaptures": {
|
|
21
|
+
"1": {
|
|
22
|
+
"name": "punctuation.definition.tag.html"
|
|
23
|
+
},
|
|
24
|
+
"2": {
|
|
25
|
+
"name": "entity.name.tag.other.html"
|
|
26
|
+
},
|
|
27
|
+
"3": {
|
|
28
|
+
"name": "punctuation.definition.tag.html"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"name": "meta.js.embeddedTemplateWithoutArgs",
|
|
32
|
+
"patterns": [
|
|
33
|
+
{
|
|
34
|
+
"include": "text.html.handlebars"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"begin": "(<)(template)",
|
|
40
|
+
"beginCaptures": {
|
|
41
|
+
"1": {
|
|
42
|
+
"name": "punctuation.definition.tag.html"
|
|
43
|
+
},
|
|
44
|
+
"2": {
|
|
45
|
+
"name": "entity.name.tag.other.html"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"end": "(</)(template)(>)",
|
|
49
|
+
"endCaptures": {
|
|
50
|
+
"1": {
|
|
51
|
+
"name": "punctuation.definition.tag.html"
|
|
52
|
+
},
|
|
53
|
+
"2": {
|
|
54
|
+
"name": "entity.name.tag.other.html"
|
|
55
|
+
},
|
|
56
|
+
"3": {
|
|
57
|
+
"name": "punctuation.definition.tag.html"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"name": "meta.js.embeddedTemplateWithArgs",
|
|
61
|
+
"patterns": [
|
|
62
|
+
{
|
|
63
|
+
"begin": "(?<=\\<template)",
|
|
64
|
+
"end": "(?=\\>)",
|
|
65
|
+
"patterns": [
|
|
66
|
+
{
|
|
67
|
+
"include": "text.html.handlebars#tag-stuff"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"begin": "(>)",
|
|
73
|
+
"beginCaptures": {
|
|
74
|
+
"1": {
|
|
75
|
+
"name": "punctuation.definition.tag.end.js"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"contentName": "meta.html.embedded.block",
|
|
79
|
+
"end": "(?=</template>)",
|
|
80
|
+
"patterns": [
|
|
81
|
+
{
|
|
82
|
+
"include": "text.html.handlebars"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"name": "glimmer-ts",
|
|
92
|
+
"patterns": [
|
|
93
|
+
{
|
|
94
|
+
"include": "source.ts"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"scopeName": "source.gts"
|
|
98
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "GLSL",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"vs",
|
|
5
|
+
"fs",
|
|
6
|
+
"gs",
|
|
7
|
+
"vsh",
|
|
8
|
+
"fsh",
|
|
9
|
+
"gsh",
|
|
10
|
+
"vshader",
|
|
11
|
+
"fshader",
|
|
12
|
+
"gshader",
|
|
13
|
+
"vert",
|
|
14
|
+
"frag",
|
|
15
|
+
"geom",
|
|
16
|
+
"f.glsl",
|
|
17
|
+
"v.glsl",
|
|
18
|
+
"g.glsl"
|
|
19
|
+
],
|
|
20
|
+
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
|
21
|
+
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
|
22
|
+
"name": "glsl",
|
|
23
|
+
"patterns": [
|
|
24
|
+
{
|
|
25
|
+
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b",
|
|
26
|
+
"name": "keyword.control.glsl"
|
|
27
|
+
},
|
|
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|2|3]D|samplerCube|sampler2DRect|sampler[1|2]DShadow|sampler2DRectShadow|sampler[1|2]DArray|sampler[1|2]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[1|2|3]D|isamplerCube|isampler2DRect|isampler[1|2]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[1|2|3]D|usamplerCube|usampler2DRect|usampler[1|2]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\\b",
|
|
30
|
+
"name": "storage.type.glsl"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"match": "\\b(attribute|centroid|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying)\\b",
|
|
34
|
+
"name": "storage.modifier.glsl"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"match": "\\b(gl_BackColor|gl_BackLightModelProduct|gl_BackLightProduct|gl_BackMaterial|gl_BackSecondaryColor|gl_ClipDistance|gl_ClipPlane|gl_ClipVertex|gl_Color|gl_DepthRange|gl_DepthRangeParameters|gl_EyePlaneQ|gl_EyePlaneR|gl_EyePlaneS|gl_EyePlaneT|gl_Fog|gl_FogCoord|gl_FogFragCoord|gl_FogParameters|gl_FragColor|gl_FragCoord|gl_FragDat|gl_FragDept|gl_FrontColor|gl_FrontFacing|gl_FrontLightModelProduct|gl_FrontLightProduct|gl_FrontMaterial|gl_FrontSecondaryColor|gl_InstanceID|gl_Layer|gl_LightModel|gl_LightModelParameters|gl_LightModelProducts|gl_LightProducts|gl_LightSource|gl_LightSourceParameters|gl_MaterialParameters|gl_ModelViewMatrix|gl_ModelViewMatrixInverse|gl_ModelViewMatrixInverseTranspose|gl_ModelViewMatrixTranspose|gl_ModelViewProjectionMatrix|gl_ModelViewProjectionMatrixInverse|gl_ModelViewProjectionMatrixInverseTranspose|gl_ModelViewProjectionMatrixTranspose|gl_MultiTexCoord[0-7]|gl_Normal|gl_NormalMatrix|gl_NormalScale|gl_ObjectPlaneQ|gl_ObjectPlaneR|gl_ObjectPlaneS|gl_ObjectPlaneT|gl_Point|gl_PointCoord|gl_PointParameters|gl_PointSize|gl_Position|gl_PrimitiveIDIn|gl_ProjectionMatrix|gl_ProjectionMatrixInverse|gl_ProjectionMatrixInverseTranspose|gl_ProjectionMatrixTranspose|gl_SecondaryColor|gl_TexCoord|gl_TextureEnvColor|gl_TextureMatrix|gl_TextureMatrixInverse|gl_TextureMatrixInverseTranspose|gl_TextureMatrixTranspose|gl_Vertex|gl_VertexIDh)\\b",
|
|
38
|
+
"name": "support.variable.glsl"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"match": "\\b(gl_MaxClipPlanes|gl_MaxCombinedTextureImageUnits|gl_MaxDrawBuffers|gl_MaxFragmentUniformComponents|gl_MaxLights|gl_MaxTextureCoords|gl_MaxTextureImageUnits|gl_MaxTextureUnits|gl_MaxVaryingFloats|gl_MaxVertexAttribs|gl_MaxVertexTextureImageUnits|gl_MaxVertexUniformComponents)\\b",
|
|
42
|
+
"name": "support.constant.glsl"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"match": "\\b(abs|acos|all|any|asin|atan|ceil|clamp|cos|cross|degrees|dFdx|dFdy|distance|dot|equal|exp|exp2|faceforward|floor|fract|ftransform|fwidth|greaterThan|greaterThanEqual|inversesqrt|length|lessThan|lessThanEqual|log|log2|matrixCompMult|max|min|mix|mod|noise[1-4]|normalize|not|notEqual|outerProduct|pow|radians|reflect|refract|shadow1D|shadow1DLod|shadow1DProj|shadow1DProjLod|shadow2D|shadow2DLod|shadow2DProj|shadow2DProjLod|sign|sin|smoothstep|sqrt|step|tan|texture1D|texture1DLod|texture1DProj|texture1DProjLod|texture2D|texture2DLod|texture2DProj|texture2DProjLod|texture3D|texture3DLod|texture3DProj|texture3DProjLod|textureCube|textureCubeLod|transpose)\\b",
|
|
46
|
+
"name": "support.function.glsl"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"match": "\\b(asm|double|enum|extern|goto|inline|long|short|sizeof|static|typedef|union|unsigned|volatile)\\b",
|
|
50
|
+
"name": "invalid.illegal.glsl"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"include": "source.c"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"scopeName": "source.glsl"
|
|
57
|
+
}
|