Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/extensions/hlsl/syntaxes/hlsl.tmLanguage.json
T

1 line
7.5 KiB
JSON
Raw Normal View History

2025-05-09 16:55:09 +08:00
{"information_for_contributors":["This file has been converted from https://github.com/tgjones/shaders-tmLanguage/blob/master/grammars/hlsl.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/tgjones/shaders-tmLanguage/commit/87c0dca3a39170dbd7ee7e277db4f915fb2de14a","name":"HLSL","scopeName":"source.hlsl","patterns":[{"name":"comment.line.block.hlsl","begin":"/\\*","end":"\\*/"},{"name":"comment.line.double-slash.hlsl","begin":"//","end":"$"},{"name":"constant.numeric.decimal.hlsl","match":"\\b[0-9]+\\.[0-9]*(F|f)?\\b"},{"name":"constant.numeric.decimal.hlsl","match":"(\\.([0-9]+)(F|f)?)\\b"},{"name":"constant.numeric.decimal.hlsl","match":"\\b([0-9]+(F|f)?)\\b"},{"name":"constant.numeric.hex.hlsl","match":"\\b(0(x|X)[0-9a-fA-F]+)\\b"},{"name":"constant.language.hlsl","match":"\\b(false|true)\\b"},{"name":"keyword.preprocessor.hlsl","match":"^\\s*#\\s*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)"},{"name":"keyword.control.hlsl","match":"\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b"},{"name":"keyword.control.fx.hlsl","match":"\\b(compile)\\b"},{"name":"keyword.typealias.hlsl","match":"\\b(typedef)\\b"},{"name":"storage.type.basic.hlsl","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"},{"name":"support.function.hlsl","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=[\\s]*\\()"},{"name":"support.variable.semantic.hlsl","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"},{"name":"support.variable.semantic.sm4.hlsl","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"},{"name":"support.variable.semantic.sm5.hlsl","match":"(?<=\\:\\s|\\:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b"},{"name":"support.variable.semantic.sm5_1.hlsl","match":"(?<=\\:\\s|\\:)(?i:SV_InnerCoverage|SV_StencilRef)\\b"},{"name":"storage.modifier.hlsl","match":"\\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\\b"},{"name":"storage.modifier.float.hlsl","match":"\\b(snorm|unorm)\\b"},{"name":"storage.modifier.postfix.hlsl","match":"\\b(packoffset|register)\\b"},{"name":"storage.modifier.interpolation.hlsl","match":"\\b(centroid|linear|nointerpolation|noperspective|sample)\\b"},{"name":"storage.modifier.geometryshader.hlsl","match":"\\b(lineadj|line|point|triangle|triangleadj)\\b"},{"name":"support.type.other.hlsl","match":"\\b(string)\\b"},{"name":"support.type.object.hlsl","match":"\\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\\b"},{"name":"support.type.object.rasterizerordered.hlsl","match":"\\b(RasterizerOrderedBuffer|RasterizerOrderedByteAddressBuffer|RasterizerOrderedStructuredBuffer|RasterizerOrderedTexture1D|RasterizerOrderedTexture1DArray|RasterizerOrderedTexture2D|RasterizerOrderedTexture2DArray|RasterizerOrderedTexture3D)\\b"},{"name":"support.type.object.rw.hlsl","match":"\\b(RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture1D|RWTexture1DArray|RWTexture2D|RWTexture2DArray|RWTexture3D)\\b"},{"name":"support.type.object.geometryshader.hlsl","match":"\\b(LineStream|PointStream|TriangleStream)\\b"},{