tree-sitter-glsl-spec 1.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.
@@ -0,0 +1,150 @@
1
+ ; Version tags for constructs whose availability depends on GLSL version.
2
+ ; These captures are intended for a post-parse validator, not syntax highlighting.
3
+
4
+ [
5
+ "uint"
6
+ "uvec2"
7
+ "uvec3"
8
+ "uvec4"
9
+ "sampler1DArray"
10
+ "sampler1DArrayShadow"
11
+ "isampler1D"
12
+ "isampler1DArray"
13
+ "usampler1D"
14
+ "usampler1DArray"
15
+ "sampler2DArray"
16
+ "sampler2DArrayShadow"
17
+ "isampler2D"
18
+ "isampler2DArray"
19
+ "usampler2D"
20
+ "usampler2DArray"
21
+ "isampler3D"
22
+ "usampler3D"
23
+ "isamplerCube"
24
+ "usamplerCube"
25
+ ] @version-130
26
+
27
+ (interpolation_qualifier
28
+ "noperspective" @version-130)
29
+
30
+ [
31
+ "sampler2DRect"
32
+ "sampler2DRectShadow"
33
+ "isampler2DRect"
34
+ "usampler2DRect"
35
+ "samplerBuffer"
36
+ "isamplerBuffer"
37
+ "usamplerBuffer"
38
+ ] @version-140
39
+
40
+ (layout_argument
41
+ "shared" @version-140)
42
+
43
+ [
44
+ "sampler2DMS"
45
+ "isampler2DMS"
46
+ "usampler2DMS"
47
+ "sampler2DMSArray"
48
+ "isampler2DMSArray"
49
+ "usampler2DMSArray"
50
+ ] @version-150
51
+
52
+ ((layout_argument
53
+ (identifier) @version-150)
54
+ (#match? @version-150 "^(points|lines|triangles|max_vertices)$"))
55
+
56
+ [
57
+ "double"
58
+ "dvec2"
59
+ "dvec3"
60
+ "dvec4"
61
+ "dmat2"
62
+ "dmat3"
63
+ "dmat4"
64
+ "dmat2x2"
65
+ "dmat2x3"
66
+ "dmat2x4"
67
+ "dmat3x2"
68
+ "dmat3x3"
69
+ "dmat3x4"
70
+ "dmat4x2"
71
+ "dmat4x3"
72
+ "dmat4x4"
73
+ "samplerCubeArray"
74
+ "samplerCubeArrayShadow"
75
+ "isamplerCubeArray"
76
+ "usamplerCubeArray"
77
+ ] @version-400
78
+
79
+ (precise_qualifier) @version-400
80
+
81
+ (storage_qualifier
82
+ "patch" @version-400)
83
+
84
+ (storage_qualifier
85
+ "sample" @version-400)
86
+
87
+ (storage_qualifier
88
+ "subroutine" @version-400)
89
+
90
+ [
91
+ "atomic_uint"
92
+ "image1D"
93
+ "iimage1D"
94
+ "uimage1D"
95
+ "image2D"
96
+ "iimage2D"
97
+ "uimage2D"
98
+ "image3D"
99
+ "iimage3D"
100
+ "uimage3D"
101
+ "imageCube"
102
+ "iimageCube"
103
+ "uimageCube"
104
+ "imageBuffer"
105
+ "iimageBuffer"
106
+ "uimageBuffer"
107
+ "image1DArray"
108
+ "iimage1DArray"
109
+ "uimage1DArray"
110
+ "image2DArray"
111
+ "iimage2DArray"
112
+ "uimage2DArray"
113
+ "imageCubeArray"
114
+ "iimageCubeArray"
115
+ "uimageCubeArray"
116
+ "image2DRect"
117
+ "iimage2DRect"
118
+ "uimage2DRect"
119
+ "image2DMS"
120
+ "iimage2DMS"
121
+ "uimage2DMS"
122
+ "image2DMSArray"
123
+ "iimage2DMSArray"
124
+ "uimage2DMSArray"
125
+ ] @version-420
126
+
127
+ (storage_qualifier
128
+ "coherent" @version-420)
129
+
130
+ (storage_qualifier
131
+ "volatile" @version-420)
132
+
133
+ (storage_qualifier
134
+ "restrict" @version-420)
135
+
136
+ (storage_qualifier
137
+ "readonly" @version-420)
138
+
139
+ (storage_qualifier
140
+ "writeonly" @version-420)
141
+
142
+ (storage_qualifier
143
+ "buffer" @version-430)
144
+
145
+ (storage_qualifier
146
+ "shared" @version-430)
147
+
148
+ ((layout_argument
149
+ (identifier) @version-430)
150
+ (#match? @version-430 "^(local_size_x|local_size_y|local_size_z)$"))