1fd4e5da5Sopenharmony_ci{
2fd4e5da5Sopenharmony_ci	"scopeName": "source.spirv",
3fd4e5da5Sopenharmony_ci	"name": "SPIR-V",
4fd4e5da5Sopenharmony_ci	"comment": "Generated by gen-grammar.go --template=./spirv.json.tmpl --out=./spirv.json. Do not modify this file directly.",
5fd4e5da5Sopenharmony_ci	"patterns": [
6fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_ImageOperands" },
7fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_FPFastMathMode" },
8fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_SelectionControl" },
9fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_LoopControl" },
10fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_FunctionControl" },
11fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_MemorySemantics" },
12fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_MemoryAccess" },
13fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_KernelProfilingInfo" },
14fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_RayFlags" },
15fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_SourceLanguage" },
16fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_ExecutionModel" },
17fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_AddressingModel" },
18fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_MemoryModel" },
19fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_ExecutionMode" },
20fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_StorageClass" },
21fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_Dim" },
22fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_SamplerAddressingMode" },
23fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_SamplerFilterMode" },
24fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_ImageFormat" },
25fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_ImageChannelOrder" },
26fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_ImageChannelDataType" },
27fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_FPRoundingMode" },
28fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_LinkageType" },
29fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_AccessQualifier" },
30fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_FunctionParameterAttribute" },
31fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_Decoration" },
32fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_BuiltIn" },
33fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_Scope" },
34fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_GroupOperation" },
35fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_KernelEnqueueFlags" },
36fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_Capability" },
37fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_RayQueryIntersection" },
38fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_RayQueryCommittedIntersectionType" },
39fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_RayQueryCandidateIntersectionType" },
40fd4e5da5Sopenharmony_ci		{ "include": "#BitEnum_DebugInfoFlags" },
41fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_DebugBaseTypeAttributeEncoding" },
42fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_DebugCompositeType" },
43fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_DebugTypeQualifier" },
44fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_DebugOperation" },
45fd4e5da5Sopenharmony_ci		{ "include": "#ValueEnum_DebugImportedEntity" },
46fd4e5da5Sopenharmony_ci		{ "include": "#opcode" },
47fd4e5da5Sopenharmony_ci		{ "include": "#extopcode" },
48fd4e5da5Sopenharmony_ci		{ "include": "#identifier" },
49fd4e5da5Sopenharmony_ci		{ "include": "#number" },
50fd4e5da5Sopenharmony_ci		{ "include": "#string" },
51fd4e5da5Sopenharmony_ci		{ "include": "#comment" },
52fd4e5da5Sopenharmony_ci		{ "include": "#operator" }
53fd4e5da5Sopenharmony_ci	],
54fd4e5da5Sopenharmony_ci	"repository": { 
55fd4e5da5Sopenharmony_ci		"BitEnum_ImageOperands": {
56fd4e5da5Sopenharmony_ci			"match": "\\b(None|Bias|Lod|Grad|ConstOffset|Offset|ConstOffsets|Sample|MinLod|MakeTexelAvailable|MakeTexelAvailableKHR|MakeTexelVisible|MakeTexelVisibleKHR|NonPrivateTexel|NonPrivateTexelKHR|VolatileTexel|VolatileTexelKHR|SignExtend|ZeroExtend)\\b",
57fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
58fd4e5da5Sopenharmony_ci		},
59fd4e5da5Sopenharmony_ci		"BitEnum_FPFastMathMode": {
60fd4e5da5Sopenharmony_ci			"match": "\\b(None|NotNaN|NotInf|NSZ|AllowRecip|Fast)\\b",
61fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
62fd4e5da5Sopenharmony_ci		},
63fd4e5da5Sopenharmony_ci		"BitEnum_SelectionControl": {
64fd4e5da5Sopenharmony_ci			"match": "\\b(None|Flatten|DontFlatten)\\b",
65fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
66fd4e5da5Sopenharmony_ci		},
67fd4e5da5Sopenharmony_ci		"BitEnum_LoopControl": {
68fd4e5da5Sopenharmony_ci			"match": "\\b(None|Unroll|DontUnroll|DependencyInfinite|DependencyLength|MinIterations|MaxIterations|IterationMultiple|PeelCount|PartialCount)\\b",
69fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
70fd4e5da5Sopenharmony_ci		},
71fd4e5da5Sopenharmony_ci		"BitEnum_FunctionControl": {
72fd4e5da5Sopenharmony_ci			"match": "\\b(None|Inline|DontInline|Pure|Const)\\b",
73fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
74fd4e5da5Sopenharmony_ci		},
75fd4e5da5Sopenharmony_ci		"BitEnum_MemorySemantics": {
76fd4e5da5Sopenharmony_ci			"match": "\\b(Relaxed|None|Acquire|Release|AcquireRelease|SequentiallyConsistent|UniformMemory|SubgroupMemory|WorkgroupMemory|CrossWorkgroupMemory|AtomicCounterMemory|ImageMemory|OutputMemory|OutputMemoryKHR|MakeAvailable|MakeAvailableKHR|MakeVisible|MakeVisibleKHR|Volatile)\\b",
77fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
78fd4e5da5Sopenharmony_ci		},
79fd4e5da5Sopenharmony_ci		"BitEnum_MemoryAccess": {
80fd4e5da5Sopenharmony_ci			"match": "\\b(None|Volatile|Aligned|Nontemporal|MakePointerAvailable|MakePointerAvailableKHR|MakePointerVisible|MakePointerVisibleKHR|NonPrivatePointer|NonPrivatePointerKHR)\\b",
81fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
82fd4e5da5Sopenharmony_ci		},
83fd4e5da5Sopenharmony_ci		"BitEnum_KernelProfilingInfo": {
84fd4e5da5Sopenharmony_ci			"match": "\\b(None|CmdExecTime)\\b",
85fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
86fd4e5da5Sopenharmony_ci		},
87fd4e5da5Sopenharmony_ci		"BitEnum_RayFlags": {
88fd4e5da5Sopenharmony_ci			"match": "\\b(NoneKHR|OpaqueKHR|NoOpaqueKHR|TerminateOnFirstHitKHR|SkipClosestHitShaderKHR|CullBackFacingTrianglesKHR|CullFrontFacingTrianglesKHR|CullOpaqueKHR|CullNoOpaqueKHR|SkipTrianglesKHR|SkipAABBsKHR)\\b",
89fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
90fd4e5da5Sopenharmony_ci		},
91fd4e5da5Sopenharmony_ci		"ValueEnum_SourceLanguage": {
92fd4e5da5Sopenharmony_ci			"match": "\\b(Unknown|ESSL|GLSL|OpenCL_C|OpenCL_CPP|HLSL)\\b",
93fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
94fd4e5da5Sopenharmony_ci		},
95fd4e5da5Sopenharmony_ci		"ValueEnum_ExecutionModel": {
96fd4e5da5Sopenharmony_ci			"match": "\\b(Vertex|TessellationControl|TessellationEvaluation|Geometry|Fragment|GLCompute|Kernel|TaskNV|MeshNV|RayGenerationNV|RayGenerationKHR|IntersectionNV|IntersectionKHR|AnyHitNV|AnyHitKHR|ClosestHitNV|ClosestHitKHR|MissNV|MissKHR|CallableNV|CallableKHR)\\b",
97fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
98fd4e5da5Sopenharmony_ci		},
99fd4e5da5Sopenharmony_ci		"ValueEnum_AddressingModel": {
100fd4e5da5Sopenharmony_ci			"match": "\\b(Logical|Physical32|Physical64|PhysicalStorageBuffer64|PhysicalStorageBuffer64EXT)\\b",
101fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
102fd4e5da5Sopenharmony_ci		},
103fd4e5da5Sopenharmony_ci		"ValueEnum_MemoryModel": {
104fd4e5da5Sopenharmony_ci			"match": "\\b(Simple|GLSL450|OpenCL|Vulkan|VulkanKHR)\\b",
105fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
106fd4e5da5Sopenharmony_ci		},
107fd4e5da5Sopenharmony_ci		"ValueEnum_ExecutionMode": {
108fd4e5da5Sopenharmony_ci			"match": "\\b(Invocations|SpacingEqual|SpacingFractionalEven|SpacingFractionalOdd|VertexOrderCw|VertexOrderCcw|PixelCenterInteger|OriginUpperLeft|OriginLowerLeft|EarlyFragmentTests|PointMode|Xfb|DepthReplacing|DepthGreater|DepthLess|DepthUnchanged|LocalSize|LocalSizeHint|InputPoints|InputLines|InputLinesAdjacency|Triangles|InputTrianglesAdjacency|Quads|Isolines|OutputVertices|OutputPoints|OutputLineStrip|OutputTriangleStrip|VecTypeHint|ContractionOff|Initializer|Finalizer|SubgroupSize|SubgroupsPerWorkgroup|SubgroupsPerWorkgroupId|LocalSizeId|LocalSizeHintId|PostDepthCoverage|DenormPreserve|DenormFlushToZero|SignedZeroInfNanPreserve|RoundingModeRTE|RoundingModeRTZ|StencilRefReplacingEXT|OutputLinesNV|OutputPrimitivesNV|DerivativeGroupQuadsNV|DerivativeGroupLinearNV|OutputTrianglesNV|PixelInterlockOrderedEXT|PixelInterlockUnorderedEXT|SampleInterlockOrderedEXT|SampleInterlockUnorderedEXT|ShadingRateInterlockOrderedEXT|ShadingRateInterlockUnorderedEXT)\\b",
109fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
110fd4e5da5Sopenharmony_ci		},
111fd4e5da5Sopenharmony_ci		"ValueEnum_StorageClass": {
112fd4e5da5Sopenharmony_ci			"match": "\\b(UniformConstant|Input|Uniform|Output|Workgroup|CrossWorkgroup|Private|Function|Generic|PushConstant|AtomicCounter|Image|StorageBuffer|CallableDataNV|CallableDataKHR|IncomingCallableDataNV|IncomingCallableDataKHR|RayPayloadNV|RayPayloadKHR|HitAttributeNV|HitAttributeKHR|IncomingRayPayloadNV|IncomingRayPayloadKHR|ShaderRecordBufferNV|ShaderRecordBufferKHR|PhysicalStorageBuffer|PhysicalStorageBufferEXT)\\b",
113fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
114fd4e5da5Sopenharmony_ci		},
115fd4e5da5Sopenharmony_ci		"ValueEnum_Dim": {
116fd4e5da5Sopenharmony_ci			"match": "\\b(1D|2D|3D|Cube|Rect|Buffer|SubpassData)\\b",
117fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
118fd4e5da5Sopenharmony_ci		},
119fd4e5da5Sopenharmony_ci		"ValueEnum_SamplerAddressingMode": {
120fd4e5da5Sopenharmony_ci			"match": "\\b(None|ClampToEdge|Clamp|Repeat|RepeatMirrored)\\b",
121fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
122fd4e5da5Sopenharmony_ci		},
123fd4e5da5Sopenharmony_ci		"ValueEnum_SamplerFilterMode": {
124fd4e5da5Sopenharmony_ci			"match": "\\b(Nearest|Linear)\\b",
125fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
126fd4e5da5Sopenharmony_ci		},
127fd4e5da5Sopenharmony_ci		"ValueEnum_ImageFormat": {
128fd4e5da5Sopenharmony_ci			"match": "\\b(Unknown|Rgba32f|Rgba16f|R32f|Rgba8|Rgba8Snorm|Rg32f|Rg16f|R11fG11fB10f|R16f|Rgba16|Rgb10A2|Rg16|Rg8|R16|R8|Rgba16Snorm|Rg16Snorm|Rg8Snorm|R16Snorm|R8Snorm|Rgba32i|Rgba16i|Rgba8i|R32i|Rg32i|Rg16i|Rg8i|R16i|R8i|Rgba32ui|Rgba16ui|Rgba8ui|R32ui|Rgb10a2ui|Rg32ui|Rg16ui|Rg8ui|R16ui|R8ui)\\b",
129fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
130fd4e5da5Sopenharmony_ci		},
131fd4e5da5Sopenharmony_ci		"ValueEnum_ImageChannelOrder": {
132fd4e5da5Sopenharmony_ci			"match": "\\b(R|A|RG|RA|RGB|RGBA|BGRA|ARGB|Intensity|Luminance|Rx|RGx|RGBx|Depth|DepthStencil|sRGB|sRGBx|sRGBA|sBGRA|ABGR)\\b",
133fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
134fd4e5da5Sopenharmony_ci		},
135fd4e5da5Sopenharmony_ci		"ValueEnum_ImageChannelDataType": {
136fd4e5da5Sopenharmony_ci			"match": "\\b(SnormInt8|SnormInt16|UnormInt8|UnormInt16|UnormShort565|UnormShort555|UnormInt101010|SignedInt8|SignedInt16|SignedInt32|UnsignedInt8|UnsignedInt16|UnsignedInt32|HalfFloat|Float|UnormInt24|UnormInt101010_2)\\b",
137fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
138fd4e5da5Sopenharmony_ci		},
139fd4e5da5Sopenharmony_ci		"ValueEnum_FPRoundingMode": {
140fd4e5da5Sopenharmony_ci			"match": "\\b(RTE|RTZ|RTP|RTN)\\b",
141fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
142fd4e5da5Sopenharmony_ci		},
143fd4e5da5Sopenharmony_ci		"ValueEnum_LinkageType": {
144fd4e5da5Sopenharmony_ci			"match": "\\b(Export|Import)\\b",
145fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
146fd4e5da5Sopenharmony_ci		},
147fd4e5da5Sopenharmony_ci		"ValueEnum_AccessQualifier": {
148fd4e5da5Sopenharmony_ci			"match": "\\b(ReadOnly|WriteOnly|ReadWrite)\\b",
149fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
150fd4e5da5Sopenharmony_ci		},
151fd4e5da5Sopenharmony_ci		"ValueEnum_FunctionParameterAttribute": {
152fd4e5da5Sopenharmony_ci			"match": "\\b(Zext|Sext|ByVal|Sret|NoAlias|NoCapture|NoWrite|NoReadWrite)\\b",
153fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
154fd4e5da5Sopenharmony_ci		},
155fd4e5da5Sopenharmony_ci		"ValueEnum_Decoration": {
156fd4e5da5Sopenharmony_ci			"match": "\\b(RelaxedPrecision|SpecId|Block|BufferBlock|RowMajor|ColMajor|ArrayStride|MatrixStride|GLSLShared|GLSLPacked|CPacked|BuiltIn|NoPerspective|Flat|Patch|Centroid|Sample|Invariant|Restrict|Aliased|Volatile|Constant|Coherent|NonWritable|NonReadable|Uniform|UniformId|SaturatedConversion|Stream|Location|Component|Index|Binding|DescriptorSet|Offset|XfbBuffer|XfbStride|FuncParamAttr|FPRoundingMode|FPFastMathMode|LinkageAttributes|NoContraction|InputAttachmentIndex|Alignment|MaxByteOffset|AlignmentId|MaxByteOffsetId|NoSignedWrap|NoUnsignedWrap|ExplicitInterpAMD|OverrideCoverageNV|PassthroughNV|ViewportRelativeNV|SecondaryViewportRelativeNV|PerPrimitiveNV|PerViewNV|PerTaskNV|PerVertexNV|NonUniform|NonUniformEXT|RestrictPointer|RestrictPointerEXT|AliasedPointer|AliasedPointerEXT|CounterBuffer|HlslCounterBufferGOOGLE|UserSemantic|HlslSemanticGOOGLE|UserTypeGOOGLE)\\b",
157fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
158fd4e5da5Sopenharmony_ci		},
159fd4e5da5Sopenharmony_ci		"ValueEnum_BuiltIn": {
160fd4e5da5Sopenharmony_ci			"match": "\\b(Position|PointSize|ClipDistance|CullDistance|VertexId|InstanceId|PrimitiveId|InvocationId|Layer|ViewportIndex|TessLevelOuter|TessLevelInner|TessCoord|PatchVertices|FragCoord|PointCoord|FrontFacing|SampleId|SamplePosition|SampleMask|FragDepth|HelperInvocation|NumWorkgroups|WorkgroupSize|WorkgroupId|LocalInvocationId|GlobalInvocationId|LocalInvocationIndex|WorkDim|GlobalSize|EnqueuedWorkgroupSize|GlobalOffset|GlobalLinearId|SubgroupSize|SubgroupMaxSize|NumSubgroups|NumEnqueuedSubgroups|SubgroupId|SubgroupLocalInvocationId|VertexIndex|InstanceIndex|SubgroupEqMask|SubgroupGeMask|SubgroupGtMask|SubgroupLeMask|SubgroupLtMask|SubgroupEqMaskKHR|SubgroupGeMaskKHR|SubgroupGtMaskKHR|SubgroupLeMaskKHR|SubgroupLtMaskKHR|BaseVertex|BaseInstance|DrawIndex|DeviceIndex|ViewIndex|BaryCoordNoPerspAMD|BaryCoordNoPerspCentroidAMD|BaryCoordNoPerspSampleAMD|BaryCoordSmoothAMD|BaryCoordSmoothCentroidAMD|BaryCoordSmoothSampleAMD|BaryCoordPullModelAMD|FragStencilRefEXT|ViewportMaskNV|SecondaryPositionNV|SecondaryViewportMaskNV|PositionPerViewNV|ViewportMaskPerViewNV|FullyCoveredEXT|TaskCountNV|PrimitiveCountNV|PrimitiveIndicesNV|ClipDistancePerViewNV|CullDistancePerViewNV|LayerPerViewNV|MeshViewCountNV|MeshViewIndicesNV|BaryCoordNV|BaryCoordNoPerspNV|FragSizeEXT|FragmentSizeNV|FragInvocationCountEXT|InvocationsPerPixelNV|LaunchIdNV|LaunchIdKHR|LaunchSizeNV|LaunchSizeKHR|WorldRayOriginNV|WorldRayOriginKHR|WorldRayDirectionNV|WorldRayDirectionKHR|ObjectRayOriginNV|ObjectRayOriginKHR|ObjectRayDirectionNV|ObjectRayDirectionKHR|RayTminNV|RayTminKHR|RayTmaxNV|RayTmaxKHR|InstanceCustomIndexNV|InstanceCustomIndexKHR|ObjectToWorldNV|ObjectToWorldKHR|WorldToObjectNV|WorldToObjectKHR|HitTNV|HitTKHR|HitKindNV|HitKindKHR|IncomingRayFlagsNV|IncomingRayFlagsKHR|RayGeometryIndexKHR|WarpsPerSMNV|SMCountNV|WarpIDNV|SMIDNV)\\b",
161fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
162fd4e5da5Sopenharmony_ci		},
163fd4e5da5Sopenharmony_ci		"ValueEnum_Scope": {
164fd4e5da5Sopenharmony_ci			"match": "\\b(CrossDevice|Device|Workgroup|Subgroup|Invocation|QueueFamily|QueueFamilyKHR|ShaderCallKHR)\\b",
165fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
166fd4e5da5Sopenharmony_ci		},
167fd4e5da5Sopenharmony_ci		"ValueEnum_GroupOperation": {
168fd4e5da5Sopenharmony_ci			"match": "\\b(Reduce|InclusiveScan|ExclusiveScan|ClusteredReduce|PartitionedReduceNV|PartitionedInclusiveScanNV|PartitionedExclusiveScanNV)\\b",
169fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
170fd4e5da5Sopenharmony_ci		},
171fd4e5da5Sopenharmony_ci		"ValueEnum_KernelEnqueueFlags": {
172fd4e5da5Sopenharmony_ci			"match": "\\b(NoWait|WaitKernel|WaitWorkGroup)\\b",
173fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
174fd4e5da5Sopenharmony_ci		},
175fd4e5da5Sopenharmony_ci		"ValueEnum_Capability": {
176fd4e5da5Sopenharmony_ci			"match": "\\b(Matrix|Shader|Geometry|Tessellation|Addresses|Linkage|Kernel|Vector16|Float16Buffer|Float16|Float64|Int64|Int64Atomics|ImageBasic|ImageReadWrite|ImageMipmap|Pipes|Groups|DeviceEnqueue|LiteralSampler|AtomicStorage|Int16|TessellationPointSize|GeometryPointSize|ImageGatherExtended|StorageImageMultisample|UniformBufferArrayDynamicIndexing|SampledImageArrayDynamicIndexing|StorageBufferArrayDynamicIndexing|StorageImageArrayDynamicIndexing|ClipDistance|CullDistance|ImageCubeArray|SampleRateShading|ImageRect|SampledRect|GenericPointer|Int8|InputAttachment|SparseResidency|MinLod|Sampled1D|Image1D|SampledCubeArray|SampledBuffer|ImageBuffer|ImageMSArray|StorageImageExtendedFormats|ImageQuery|DerivativeControl|InterpolationFunction|TransformFeedback|GeometryStreams|StorageImageReadWithoutFormat|StorageImageWriteWithoutFormat|MultiViewport|SubgroupDispatch|NamedBarrier|PipeStorage|GroupNonUniform|GroupNonUniformVote|GroupNonUniformArithmetic|GroupNonUniformBallot|GroupNonUniformShuffle|GroupNonUniformShuffleRelative|GroupNonUniformClustered|GroupNonUniformQuad|ShaderLayer|ShaderViewportIndex|SubgroupBallotKHR|DrawParameters|SubgroupVoteKHR|StorageBuffer16BitAccess|StorageUniformBufferBlock16|UniformAndStorageBuffer16BitAccess|StorageUniform16|StoragePushConstant16|StorageInputOutput16|DeviceGroup|MultiView|VariablePointersStorageBuffer|VariablePointers|AtomicStorageOps|SampleMaskPostDepthCoverage|StorageBuffer8BitAccess|UniformAndStorageBuffer8BitAccess|StoragePushConstant8|DenormPreserve|DenormFlushToZero|SignedZeroInfNanPreserve|RoundingModeRTE|RoundingModeRTZ|RayQueryProvisionalKHR|RayTraversalPrimitiveCullingProvisionalKHR|Float16ImageAMD|ImageGatherBiasLodAMD|FragmentMaskAMD|StencilExportEXT|ImageReadWriteLodAMD|ShaderClockKHR|SampleMaskOverrideCoverageNV|GeometryShaderPassthroughNV|ShaderViewportIndexLayerEXT|ShaderViewportIndexLayerNV|ShaderViewportMaskNV|ShaderStereoViewNV|PerViewAttributesNV|FragmentFullyCoveredEXT|MeshShadingNV|ImageFootprintNV|FragmentBarycentricNV|ComputeDerivativeGroupQuadsNV|FragmentDensityEXT|ShadingRateNV|GroupNonUniformPartitionedNV|ShaderNonUniform|ShaderNonUniformEXT|RuntimeDescriptorArray|RuntimeDescriptorArrayEXT|InputAttachmentArrayDynamicIndexing|InputAttachmentArrayDynamicIndexingEXT|UniformTexelBufferArrayDynamicIndexing|UniformTexelBufferArrayDynamicIndexingEXT|StorageTexelBufferArrayDynamicIndexing|StorageTexelBufferArrayDynamicIndexingEXT|UniformBufferArrayNonUniformIndexing|UniformBufferArrayNonUniformIndexingEXT|SampledImageArrayNonUniformIndexing|SampledImageArrayNonUniformIndexingEXT|StorageBufferArrayNonUniformIndexing|StorageBufferArrayNonUniformIndexingEXT|StorageImageArrayNonUniformIndexing|StorageImageArrayNonUniformIndexingEXT|InputAttachmentArrayNonUniformIndexing|InputAttachmentArrayNonUniformIndexingEXT|UniformTexelBufferArrayNonUniformIndexing|UniformTexelBufferArrayNonUniformIndexingEXT|StorageTexelBufferArrayNonUniformIndexing|StorageTexelBufferArrayNonUniformIndexingEXT|RayTracingNV|VulkanMemoryModel|VulkanMemoryModelKHR|VulkanMemoryModelDeviceScope|VulkanMemoryModelDeviceScopeKHR|PhysicalStorageBufferAddresses|PhysicalStorageBufferAddressesEXT|ComputeDerivativeGroupLinearNV|RayTracingProvisionalKHR|CooperativeMatrixNV|FragmentShaderSampleInterlockEXT|FragmentShaderShadingRateInterlockEXT|ShaderSMBuiltinsNV|FragmentShaderPixelInterlockEXT|DemoteToHelperInvocationEXT|SubgroupShuffleINTEL|SubgroupBufferBlockIOINTEL|SubgroupImageBlockIOINTEL|SubgroupImageMediaBlockIOINTEL|IntegerFunctions2INTEL|SubgroupAvcMotionEstimationINTEL|SubgroupAvcMotionEstimationIntraINTEL|SubgroupAvcMotionEstimationChromaINTEL)\\b",
177fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
178fd4e5da5Sopenharmony_ci		},
179fd4e5da5Sopenharmony_ci		"ValueEnum_RayQueryIntersection": {
180fd4e5da5Sopenharmony_ci			"match": "\\b(RayQueryCandidateIntersectionKHR|RayQueryCommittedIntersectionKHR)\\b",
181fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
182fd4e5da5Sopenharmony_ci		},
183fd4e5da5Sopenharmony_ci		"ValueEnum_RayQueryCommittedIntersectionType": {
184fd4e5da5Sopenharmony_ci			"match": "\\b(RayQueryCommittedIntersectionNoneKHR|RayQueryCommittedIntersectionTriangleKHR|RayQueryCommittedIntersectionGeneratedKHR)\\b",
185fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
186fd4e5da5Sopenharmony_ci		},
187fd4e5da5Sopenharmony_ci		"ValueEnum_RayQueryCandidateIntersectionType": {
188fd4e5da5Sopenharmony_ci			"match": "\\b(RayQueryCandidateIntersectionTriangleKHR|RayQueryCandidateIntersectionAABBKHR)\\b",
189fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
190fd4e5da5Sopenharmony_ci		},
191fd4e5da5Sopenharmony_ci		"BitEnum_DebugInfoFlags": {
192fd4e5da5Sopenharmony_ci			"match": "\\b(FlagIsProtected|FlagIsPrivate|FlagIsPublic|FlagIsLocal|FlagIsDefinition|FlagFwdDecl|FlagArtificial|FlagExplicit|FlagPrototyped|FlagObjectPointer|FlagStaticMember|FlagIndirectVariable|FlagLValueReference|FlagRValueReference|FlagIsOptimized|FlagIsEnumClass|FlagTypePassByValue|FlagTypePassByReference)\\b",
193fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
194fd4e5da5Sopenharmony_ci		},
195fd4e5da5Sopenharmony_ci		"ValueEnum_DebugBaseTypeAttributeEncoding": {
196fd4e5da5Sopenharmony_ci			"match": "\\b(Unspecified|Address|Boolean|Float|Signed|SignedChar|Unsigned|UnsignedChar)\\b",
197fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
198fd4e5da5Sopenharmony_ci		},
199fd4e5da5Sopenharmony_ci		"ValueEnum_DebugCompositeType": {
200fd4e5da5Sopenharmony_ci			"match": "\\b(Class|Structure|Union)\\b",
201fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
202fd4e5da5Sopenharmony_ci		},
203fd4e5da5Sopenharmony_ci		"ValueEnum_DebugTypeQualifier": {
204fd4e5da5Sopenharmony_ci			"match": "\\b(ConstType|VolatileType|RestrictType|AtomicType)\\b",
205fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
206fd4e5da5Sopenharmony_ci		},
207fd4e5da5Sopenharmony_ci		"ValueEnum_DebugOperation": {
208fd4e5da5Sopenharmony_ci			"match": "\\b(Deref|Plus|Minus|PlusUconst|BitPiece|Swap|Xderef|StackValue|Constu|Fragment)\\b",
209fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
210fd4e5da5Sopenharmony_ci		},
211fd4e5da5Sopenharmony_ci		"ValueEnum_DebugImportedEntity": {
212fd4e5da5Sopenharmony_ci			"match": "\\b(ImportedModule|ImportedDeclaration)\\b",
213fd4e5da5Sopenharmony_ci			"name": "keyword.spirv"
214fd4e5da5Sopenharmony_ci		},
215fd4e5da5Sopenharmony_ci		"opcode": {
216fd4e5da5Sopenharmony_ci			"match": "(Op[a-zA-Z]+)",
217fd4e5da5Sopenharmony_ci			"name": "entity.name.function.spirv"
218fd4e5da5Sopenharmony_ci		},
219fd4e5da5Sopenharmony_ci		"extopcode": {
220fd4e5da5Sopenharmony_ci			"match": "(Round|RoundEven|Trunc|FAbs|SAbs|FSign|SSign|Floor|Ceil|Fract|Radians|Degrees|Sin|Cos|Tan|Asin|Acos|Atan|Sinh|Cosh|Tanh|Asinh|Acosh|Atanh|Atan2|Pow|Exp|Log|Exp2|Log2|Sqrt|InverseSqrt|Determinant|MatrixInverse|Modf|ModfStruct|FMin|UMin|SMin|FMax|UMax|SMax|FClamp|UClamp|SClamp|FMix|IMix|Step|SmoothStep|Fma|Frexp|FrexpStruct|Ldexp|PackSnorm4x8|PackUnorm4x8|PackSnorm2x16|PackUnorm2x16|PackHalf2x16|PackDouble2x32|UnpackSnorm2x16|UnpackUnorm2x16|UnpackHalf2x16|UnpackSnorm4x8|UnpackUnorm4x8|UnpackDouble2x32|Length|Distance|Cross|Normalize|FaceForward|Reflect|Refract|FindILsb|FindSMsb|FindUMsb|InterpolateAtCentroid|InterpolateAtSample|InterpolateAtOffset|NMin|NMax|NClamp|acos|acosh|acospi|asin|asinh|asinpi|atan|atan2|atanh|atanpi|atan2pi|cbrt|ceil|copysign|cos|cosh|cospi|erfc|erf|exp|exp2|exp10|expm1|fabs|fdim|floor|fma|fmax|fmin|fmod|fract|frexp|hypot|ilogb|ldexp|lgamma|lgamma_r|log|log2|log10|log1p|logb|mad|maxmag|minmag|modf|nan|nextafter|pow|pown|powr|remainder|remquo|rint|rootn|round|rsqrt|sin|sincos|sinh|sinpi|sqrt|tan|tanh|tanpi|tgamma|trunc|half_cos|half_divide|half_exp|half_exp2|half_exp10|half_log|half_log2|half_log10|half_powr|half_recip|half_rsqrt|half_sin|half_sqrt|half_tan|native_cos|native_divide|native_exp|native_exp2|native_exp10|native_log|native_log2|native_log10|native_powr|native_recip|native_rsqrt|native_sin|native_sqrt|native_tan|s_abs|s_abs_diff|s_add_sat|u_add_sat|s_hadd|u_hadd|s_rhadd|u_rhadd|s_clamp|u_clamp|clz|ctz|s_mad_hi|u_mad_sat|s_mad_sat|s_max|u_max|s_min|u_min|s_mul_hi|rotate|s_sub_sat|u_sub_sat|u_upsample|s_upsample|popcount|s_mad24|u_mad24|s_mul24|u_mul24|u_abs|u_abs_diff|u_mul_hi|u_mad_hi|fclamp|degrees|fmax_common|fmin_common|mix|radians|step|smoothstep|sign|cross|distance|length|normalize|fast_distance|fast_length|fast_normalize|bitselect|select|vloadn|vstoren|vload_half|vload_halfn|vstore_half|vstore_half_r|vstore_halfn|vstore_halfn_r|vloada_halfn|vstorea_halfn|vstorea_halfn_r|shuffle|shuffle2|printf|prefetch|DebugInfoNone|DebugCompilationUnit|DebugTypeBasic|DebugTypePointer|DebugTypeQualifier|DebugTypeArray|DebugTypeVector|DebugTypedef|DebugTypeFunction|DebugTypeEnum|DebugTypeComposite|DebugTypeMember|DebugTypeInheritance|DebugTypePtrToMember|DebugTypeTemplate|DebugTypeTemplateParameter|DebugTypeTemplateTemplateParameter|DebugTypeTemplateParameterPack|DebugGlobalVariable|DebugFunctionDeclaration|DebugFunction|DebugLexicalBlock|DebugLexicalBlockDiscriminator|DebugScope|DebugNoScope|DebugInlinedAt|DebugLocalVariable|DebugInlinedVariable|DebugDeclare|DebugValue|DebugOperation|DebugExpression|DebugMacroDef|DebugMacroUndef|DebugImportedEntity|DebugSource)",
221fd4e5da5Sopenharmony_ci			"name": "entity.name.function.ext"
222fd4e5da5Sopenharmony_ci		},
223fd4e5da5Sopenharmony_ci		"identifier": {
224fd4e5da5Sopenharmony_ci			"match": "%[a-zA-Z0-9_]+",
225fd4e5da5Sopenharmony_ci			"name": "variable.spirv"
226fd4e5da5Sopenharmony_ci		},
227fd4e5da5Sopenharmony_ci		"number": {
228fd4e5da5Sopenharmony_ci			"match": "\\b[0-9]+.?[0-9]*\\b",
229fd4e5da5Sopenharmony_ci			"name": "constant.numeric.spirv"
230fd4e5da5Sopenharmony_ci		},
231fd4e5da5Sopenharmony_ci		"comment": {
232fd4e5da5Sopenharmony_ci			"match": ";[^\n]*",
233fd4e5da5Sopenharmony_ci			"name": "comment.line.spirv"
234fd4e5da5Sopenharmony_ci		},
235fd4e5da5Sopenharmony_ci		"operator": {
236fd4e5da5Sopenharmony_ci			"match": "=",
237fd4e5da5Sopenharmony_ci			"name": "keyword.operator.spirv"
238fd4e5da5Sopenharmony_ci		},
239fd4e5da5Sopenharmony_ci		"string": {
240fd4e5da5Sopenharmony_ci			"begin": "\"",
241fd4e5da5Sopenharmony_ci			"beginCaptures": {
242fd4e5da5Sopenharmony_ci				"0": {
243fd4e5da5Sopenharmony_ci					"name": "punctuation.definition.string.begin.spirv"
244fd4e5da5Sopenharmony_ci				}
245fd4e5da5Sopenharmony_ci			},
246fd4e5da5Sopenharmony_ci			"end": "\"",
247fd4e5da5Sopenharmony_ci			"endCaptures": {
248fd4e5da5Sopenharmony_ci				"0": {
249fd4e5da5Sopenharmony_ci					"name": "punctuation.definition.string.end.spirv"
250fd4e5da5Sopenharmony_ci				}
251fd4e5da5Sopenharmony_ci			},
252fd4e5da5Sopenharmony_ci			"name": "string.quoted.double.spirv",
253fd4e5da5Sopenharmony_ci			"patterns": [ { "include": "#string_escaped_char" } ]
254fd4e5da5Sopenharmony_ci		},
255fd4e5da5Sopenharmony_ci		"string_escaped_char": {
256fd4e5da5Sopenharmony_ci			"patterns": [
257fd4e5da5Sopenharmony_ci				{
258fd4e5da5Sopenharmony_ci					"match": "\\\\([0-7]{3}|[abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})",
259fd4e5da5Sopenharmony_ci					"name": "constant.character.escape.spirv"
260fd4e5da5Sopenharmony_ci				}, {
261fd4e5da5Sopenharmony_ci					"match": "\\\\[^0-7xuUabfnrtv\\'\"]",
262fd4e5da5Sopenharmony_ci					"name": "invalid.illegal.unknown-escape.spirv"
263fd4e5da5Sopenharmony_ci				}
264fd4e5da5Sopenharmony_ci			]
265fd4e5da5Sopenharmony_ci		}
266fd4e5da5Sopenharmony_ci	}
267fd4e5da5Sopenharmony_ci}
268