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,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "HLSL",
|
|
3
|
+
"name": "hlsl",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"begin": "/\\*",
|
|
7
|
+
"end": "\\*/",
|
|
8
|
+
"name": "comment.line.block.hlsl"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"begin": "//",
|
|
12
|
+
"end": "$",
|
|
13
|
+
"name": "comment.line.double-slash.hlsl"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b",
|
|
17
|
+
"name": "constant.numeric.decimal.hlsl"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"match": "(\\.([0-9]+)(F|f)?)\\b",
|
|
21
|
+
"name": "constant.numeric.decimal.hlsl"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"match": "\\b([0-9]+(F|f)?)\\b",
|
|
25
|
+
"name": "constant.numeric.decimal.hlsl"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"match": "\\b(0(x|X)[0-9a-fA-F]+)\\b",
|
|
29
|
+
"name": "constant.numeric.hex.hlsl"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"match": "\\b(false|true)\\b",
|
|
33
|
+
"name": "constant.language.hlsl"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"match": "^\\s*#\\s*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)",
|
|
37
|
+
"name": "keyword.preprocessor.hlsl"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b",
|
|
41
|
+
"name": "keyword.control.hlsl"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"match": "\\b(compile)\\b",
|
|
45
|
+
"name": "keyword.control.fx.hlsl"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"match": "\\b(typedef)\\b",
|
|
49
|
+
"name": "keyword.typealias.hlsl"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"match": "\\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\\b",
|
|
53
|
+
"name": "storage.type.basic.hlsl"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=[\\s]*\\()",
|
|
57
|
+
"name": "support.function.hlsl"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"match": "(?<=\\:\\s|\\:)(?i:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\\b",
|
|
61
|
+
"name": "support.variable.semantic.hlsl"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"match": "(?<=\\:\\s|\\:)(?i:SV_ClipDistance[0-9]*|SV_CullDistance[0-9]*|SV_Coverage|SV_Depth|SV_DepthGreaterEqual[0-9]*|SV_DepthLessEqual[0-9]*|SV_InstanceID|SV_IsFrontFace|SV_Position|SV_RenderTargetArrayIndex|SV_SampleIndex|SV_StencilRef|SV_Target[0-7]?|SV_VertexID|SV_ViewportArrayIndex)\\b",
|
|
65
|
+
"name": "support.variable.semantic.sm4.hlsl"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"match": "(?<=\\:\\s|\\:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b",
|
|
69
|
+
"name": "support.variable.semantic.sm5.hlsl"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"match": "(?<=\\:\\s|\\:)(?i:SV_InnerCoverage|SV_StencilRef)\\b",
|
|
73
|
+
"name": "support.variable.semantic.sm5_1.hlsl"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"match": "\\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\\b",
|
|
77
|
+
"name": "storage.modifier.hlsl"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"match": "\\b(snorm|unorm)\\b",
|
|
81
|
+
"name": "storage.modifier.float.hlsl"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"match": "\\b(packoffset|register)\\b",
|
|
85
|
+
"name": "storage.modifier.postfix.hlsl"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"match": "\\b(centroid|linear|nointerpolation|noperspective|sample)\\b",
|
|
89
|
+
"name": "storage.modifier.interpolation.hlsl"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"match": "\\b(lineadj|line|point|triangle|triangleadj)\\b",
|
|
93
|
+
"name": "storage.modifier.geometryshader.hlsl"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"match": "\\b(string)\\b",
|
|
97
|
+
"name": "support.type.other.hlsl"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"match": "\\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\\b",
|
|
101
|
+
"name": "support.type.object.hlsl"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"match": "\\b(RasterizerOrderedBuffer|RasterizerOrderedByteAddressBuffer|RasterizerOrderedStructuredBuffer|RasterizerOrderedTexture1D|RasterizerOrderedTexture1DArray|RasterizerOrderedTexture2D|RasterizerOrderedTexture2DArray|RasterizerOrderedTexture3D)\\b",
|
|
105
|
+
"name": "support.type.object.rasterizerordered.hlsl"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"match": "\\b(RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture1D|RWTexture1DArray|RWTexture2D|RWTexture2DArray|RWTexture3D)\\b",
|
|
109
|
+
"name": "support.type.object.rw.hlsl"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"match": "\\b(LineStream|PointStream|TriangleStream)\\b",
|
|
113
|
+
"name": "support.type.object.geometryshader.hlsl"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"match": "\\b(sampler|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler_state)\\b",
|
|
117
|
+
"name": "support.type.sampler.legacy.hlsl"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"match": "\\b(SamplerState|SamplerComparisonState)\\b",
|
|
121
|
+
"name": "support.type.sampler.hlsl"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"match": "\\b(texture2D|textureCUBE)\\b",
|
|
125
|
+
"name": "support.type.texture.legacy.hlsl"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"match": "\\b(Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture2DMS|Texture2DMSArray|Texture3D|TextureCube|TextureCubeArray)\\b",
|
|
129
|
+
"name": "support.type.texture.hlsl"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"match": "\\b(cbuffer|class|interface|namespace|struct|tbuffer)\\b",
|
|
133
|
+
"name": "storage.type.structured.hlsl"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"match": "\\b(FALSE|TRUE|NULL)\\b",
|
|
137
|
+
"name": "support.constant.property-value.fx.hlsl"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"match": "\\b(BlendState|DepthStencilState|RasterizerState)\\b",
|
|
141
|
+
"name": "support.type.fx.hlsl"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"match": "\\b(technique|Technique|technique10|technique11|pass)\\b",
|
|
145
|
+
"name": "storage.type.fx.technique.hlsl"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"match": "\\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\\b",
|
|
149
|
+
"name": "meta.object-literal.key.fx.blendstate.hlsl"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"match": "\\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\\b",
|
|
153
|
+
"name": "meta.object-literal.key.fx.depthstencilstate.hlsl"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"match": "\\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\\b",
|
|
157
|
+
"name": "meta.object-literal.key.fx.rasterizerstate.hlsl"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"match": "\\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\\b",
|
|
161
|
+
"name": "meta.object-literal.key.fx.samplerstate.hlsl"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"match": "\\b(?i:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\\b",
|
|
165
|
+
"name": "support.constant.property-value.fx.blend.hlsl"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"match": "\\b(?i:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\\b",
|
|
169
|
+
"name": "support.constant.property-value.fx.blendop.hlsl"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"match": "\\b(?i:ALL)\\b",
|
|
173
|
+
"name": "support.constant.property-value.fx.depthwritemask.hlsl"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"match": "\\b(?i:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\\b",
|
|
177
|
+
"name": "support.constant.property-value.fx.comparisonfunc.hlsl"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"match": "\\b(?i:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\\b",
|
|
181
|
+
"name": "support.constant.property-value.fx.stencilop.hlsl"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"match": "\\b(?i:WIREFRAME|SOLID)\\b",
|
|
185
|
+
"name": "support.constant.property-value.fx.fillmode.hlsl"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"match": "\\b(?i:NONE|FRONT|BACK)\\b",
|
|
189
|
+
"name": "support.constant.property-value.fx.cullmode.hlsl"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"match": "\\b(?i:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\\b",
|
|
193
|
+
"name": "support.constant.property-value.fx.filter.hlsl"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"match": "\\b(?i:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\\b",
|
|
197
|
+
"name": "support.constant.property-value.fx.textureaddressmode.hlsl"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"begin": "\"",
|
|
201
|
+
"end": "\"",
|
|
202
|
+
"name": "string.quoted.double.hlsl",
|
|
203
|
+
"patterns": [
|
|
204
|
+
{
|
|
205
|
+
"match": "\\\\.",
|
|
206
|
+
"name": "constant.character.escape.hlsl"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"scopeName": "source.hlsl"
|
|
212
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "PHP",
|
|
3
|
+
"injections": {
|
|
4
|
+
"L:meta.embedded.php.blade": {
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"include": "text.html.basic"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"include": "text.html.php.blade#blade"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))": {
|
|
15
|
+
"patterns": [
|
|
16
|
+
{
|
|
17
|
+
"include": "#php-tag"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"name": "html",
|
|
23
|
+
"patterns": [
|
|
24
|
+
{
|
|
25
|
+
"begin": "\\A#!",
|
|
26
|
+
"beginCaptures": {
|
|
27
|
+
"0": {
|
|
28
|
+
"name": "punctuation.definition.comment.php"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"end": "$",
|
|
32
|
+
"name": "comment.line.shebang.php"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"include": "text.html.derivative"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"repository": {
|
|
39
|
+
"php-tag": {
|
|
40
|
+
"patterns": [
|
|
41
|
+
{
|
|
42
|
+
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
|
|
43
|
+
"beginCaptures": {
|
|
44
|
+
"0": {
|
|
45
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"contentName": "source.php",
|
|
49
|
+
"end": "(\\?)>",
|
|
50
|
+
"endCaptures": {
|
|
51
|
+
"0": {
|
|
52
|
+
"name": "punctuation.section.embedded.end.php"
|
|
53
|
+
},
|
|
54
|
+
"1": {
|
|
55
|
+
"name": "source.php"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"name": "meta.embedded.block.php",
|
|
59
|
+
"patterns": [
|
|
60
|
+
{
|
|
61
|
+
"include": "source.php"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"begin": "<\\?(?i:php|=)?",
|
|
67
|
+
"beginCaptures": {
|
|
68
|
+
"0": {
|
|
69
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"contentName": "source.php",
|
|
73
|
+
"end": "(\\?)>",
|
|
74
|
+
"endCaptures": {
|
|
75
|
+
"0": {
|
|
76
|
+
"name": "punctuation.section.embedded.end.php"
|
|
77
|
+
},
|
|
78
|
+
"1": {
|
|
79
|
+
"name": "source.php"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"name": "meta.embedded.line.php",
|
|
83
|
+
"patterns": [
|
|
84
|
+
{
|
|
85
|
+
"include": "source.php"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"scopeName": "text.html.php"
|
|
93
|
+
}
|