@singapore-editor/tree-sitter-languages 0.1.1
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/NOTICE +515 -0
- package/README.md +127 -0
- package/dist/catalog.generated.d.ts +3 -0
- package/dist/catalog.generated.d.ts.map +1 -0
- package/dist/catalog.generated.js +493 -0
- package/dist/catalog.generated.js.map +1 -0
- package/dist/grammars/tree-sitter-astro.js +6 -0
- package/dist/grammars/tree-sitter-astro.js.map +1 -0
- package/dist/grammars/tree-sitter-mdx.js +6 -0
- package/dist/grammars/tree-sitter-mdx.js.map +1 -0
- package/dist/grammars/tree-sitter-sql.js +6 -0
- package/dist/grammars/tree-sitter-sql.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +138 -0
- package/dist/index.js.map +1 -0
- package/dist/metadata.d.ts +278 -0
- package/dist/metadata.d.ts.map +1 -0
- package/dist/metadata.js +335 -0
- package/dist/metadata.js.map +1 -0
- package/dist/queries/astro-folds.js +6 -0
- package/dist/queries/astro-folds.js.map +1 -0
- package/dist/queries/astro-highlights.js +6 -0
- package/dist/queries/astro-highlights.js.map +1 -0
- package/dist/queries/astro-injections.js +6 -0
- package/dist/queries/astro-injections.js.map +1 -0
- package/dist/queries/css-folds.js +6 -0
- package/dist/queries/css-folds.js.map +1 -0
- package/dist/queries/html-folds.js +6 -0
- package/dist/queries/html-folds.js.map +1 -0
- package/dist/queries/javascript-folds.js +6 -0
- package/dist/queries/javascript-folds.js.map +1 -0
- package/dist/queries/javascript-highlights.js +6 -0
- package/dist/queries/javascript-highlights.js.map +1 -0
- package/dist/queries/javascript-injections.js +6 -0
- package/dist/queries/javascript-injections.js.map +1 -0
- package/dist/queries/json-folds.js +6 -0
- package/dist/queries/json-folds.js.map +1 -0
- package/dist/queries/jsx-folds.js +6 -0
- package/dist/queries/jsx-folds.js.map +1 -0
- package/dist/queries/mdx-highlights.js +6 -0
- package/dist/queries/mdx-highlights.js.map +1 -0
- package/dist/queries/mdx-injections.js +6 -0
- package/dist/queries/mdx-injections.js.map +1 -0
- package/dist/queries/sql-highlights.js +6 -0
- package/dist/queries/sql-highlights.js.map +1 -0
- package/dist/queries/svelte-injections.js +6 -0
- package/dist/queries/svelte-injections.js.map +1 -0
- package/dist/queries/typescript-folds.js +6 -0
- package/dist/queries/typescript-folds.js.map +1 -0
- package/dist/queries/typescript-highlights.js +6 -0
- package/dist/queries/typescript-highlights.js.map +1 -0
- package/dist/query-captures.d.ts +2 -0
- package/dist/query-captures.d.ts.map +1 -0
- package/dist/query-captures.js +12 -0
- package/dist/query-captures.js.map +1 -0
- package/package.json +77 -0
package/NOTICE
ADDED
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
tree-sitter-typescript@0.23.2
|
|
2
|
+
The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2017 Max Brunsfeld
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
tree-sitter-html@0.23.2
|
|
26
|
+
The MIT License (MIT)
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
29
|
+
|
|
30
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
32
|
+
in the Software without restriction, including without limitation the rights
|
|
33
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
furnished to do so, subject to the following conditions:
|
|
36
|
+
|
|
37
|
+
The above copyright notice and this permission notice shall be included in all
|
|
38
|
+
copies or substantial portions of the Software.
|
|
39
|
+
|
|
40
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
|
+
SOFTWARE.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
tree-sitter-json@0.24.8
|
|
50
|
+
The MIT License (MIT)
|
|
51
|
+
|
|
52
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
53
|
+
|
|
54
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
55
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
56
|
+
in the Software without restriction, including without limitation the rights
|
|
57
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
58
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
59
|
+
furnished to do so, subject to the following conditions:
|
|
60
|
+
|
|
61
|
+
The above copyright notice and this permission notice shall be included in all
|
|
62
|
+
copies or substantial portions of the Software.
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
65
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
66
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
67
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
68
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
69
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
70
|
+
SOFTWARE.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
tree-sitter-css@0.25.0
|
|
74
|
+
The MIT License (MIT)
|
|
75
|
+
|
|
76
|
+
Copyright (c) 2018 Max Brunsfeld
|
|
77
|
+
|
|
78
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
79
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
80
|
+
in the Software without restriction, including without limitation the rights
|
|
81
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
82
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
83
|
+
furnished to do so, subject to the following conditions:
|
|
84
|
+
|
|
85
|
+
The above copyright notice and this permission notice shall be included in all
|
|
86
|
+
copies or substantial portions of the Software.
|
|
87
|
+
|
|
88
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
89
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
90
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
91
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
92
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
93
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
94
|
+
SOFTWARE.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
tree-sitter-javascript@0.25.0
|
|
98
|
+
The MIT License (MIT)
|
|
99
|
+
|
|
100
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
101
|
+
|
|
102
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
103
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
104
|
+
in the Software without restriction, including without limitation the rights
|
|
105
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
106
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
107
|
+
furnished to do so, subject to the following conditions:
|
|
108
|
+
|
|
109
|
+
The above copyright notice and this permission notice shall be included in all
|
|
110
|
+
copies or substantial portions of the Software.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
113
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
114
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
115
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
116
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
117
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
118
|
+
SOFTWARE.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
astro
|
|
122
|
+
https://github.com/virchau13/tree-sitter-astro@213f6e6973d9b456c6e50e86f19f66877e7ef0ee
|
|
123
|
+
MIT License
|
|
124
|
+
|
|
125
|
+
Copyright (c) 2022 Vir Chaudhury
|
|
126
|
+
|
|
127
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
128
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
129
|
+
in the Software without restriction, including without limitation the rights
|
|
130
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
131
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
132
|
+
furnished to do so, subject to the following conditions:
|
|
133
|
+
|
|
134
|
+
The above copyright notice and this permission notice shall be included in all
|
|
135
|
+
copies or substantial portions of the Software.
|
|
136
|
+
|
|
137
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
138
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
139
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
140
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
141
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
142
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
143
|
+
SOFTWARE.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
tree-sitter-python@0.25.0
|
|
147
|
+
The MIT License (MIT)
|
|
148
|
+
|
|
149
|
+
Copyright (c) 2016 Max Brunsfeld
|
|
150
|
+
|
|
151
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
152
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
153
|
+
in the Software without restriction, including without limitation the rights
|
|
154
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
155
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
156
|
+
furnished to do so, subject to the following conditions:
|
|
157
|
+
|
|
158
|
+
The above copyright notice and this permission notice shall be included in all
|
|
159
|
+
copies or substantial portions of the Software.
|
|
160
|
+
|
|
161
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
162
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
163
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
164
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
165
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
166
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
167
|
+
SOFTWARE.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
tree-sitter-bash@0.25.1
|
|
171
|
+
The MIT License (MIT)
|
|
172
|
+
|
|
173
|
+
Copyright (c) 2017 Max Brunsfeld
|
|
174
|
+
|
|
175
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
176
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
177
|
+
in the Software without restriction, including without limitation the rights
|
|
178
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
179
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
180
|
+
furnished to do so, subject to the following conditions:
|
|
181
|
+
|
|
182
|
+
The above copyright notice and this permission notice shall be included in all
|
|
183
|
+
copies or substantial portions of the Software.
|
|
184
|
+
|
|
185
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
186
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
187
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
188
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
189
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
190
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
191
|
+
SOFTWARE.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
tree-sitter-rust@0.24.0
|
|
195
|
+
The MIT License (MIT)
|
|
196
|
+
|
|
197
|
+
Copyright (c) 2017 Maxim Sokolov
|
|
198
|
+
|
|
199
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
200
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
201
|
+
in the Software without restriction, including without limitation the rights
|
|
202
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
203
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
204
|
+
furnished to do so, subject to the following conditions:
|
|
205
|
+
|
|
206
|
+
The above copyright notice and this permission notice shall be included in all
|
|
207
|
+
copies or substantial portions of the Software.
|
|
208
|
+
|
|
209
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
210
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
211
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
212
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
213
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
214
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
215
|
+
SOFTWARE.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
tree-sitter-go@0.25.0
|
|
219
|
+
The MIT License (MIT)
|
|
220
|
+
|
|
221
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
222
|
+
|
|
223
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
224
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
225
|
+
in the Software without restriction, including without limitation the rights
|
|
226
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
227
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
228
|
+
furnished to do so, subject to the following conditions:
|
|
229
|
+
|
|
230
|
+
The above copyright notice and this permission notice shall be included in all
|
|
231
|
+
copies or substantial portions of the Software.
|
|
232
|
+
|
|
233
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
234
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
235
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
236
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
237
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
238
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
239
|
+
SOFTWARE.
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
@tree-sitter-grammars/tree-sitter-yaml@0.7.1
|
|
243
|
+
Copyright (c) 2024 tree-sitter-grammars contributors
|
|
244
|
+
Copyright (c) 2019-2021 Ika
|
|
245
|
+
|
|
246
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
247
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
248
|
+
in the Software without restriction, including without limitation the rights
|
|
249
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
250
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
251
|
+
furnished to do so, subject to the following conditions:
|
|
252
|
+
|
|
253
|
+
The above copyright notice and this permission notice shall be included in all
|
|
254
|
+
copies or substantial portions of the Software.
|
|
255
|
+
|
|
256
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
257
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
258
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
259
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
260
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
261
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
262
|
+
SOFTWARE.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
@tree-sitter-grammars/tree-sitter-toml@0.7.0
|
|
266
|
+
The MIT License (MIT)
|
|
267
|
+
|
|
268
|
+
Copyright (c) Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
|
|
269
|
+
|
|
270
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
271
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
272
|
+
in the Software without restriction, including without limitation the rights
|
|
273
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
274
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
275
|
+
furnished to do so, subject to the following conditions:
|
|
276
|
+
|
|
277
|
+
The above copyright notice and this permission notice shall be included in all
|
|
278
|
+
copies or substantial portions of the Software.
|
|
279
|
+
|
|
280
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
281
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
282
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
283
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
284
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
285
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
286
|
+
SOFTWARE.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
tree-sitter-c@0.24.1
|
|
290
|
+
The MIT License (MIT)
|
|
291
|
+
|
|
292
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
293
|
+
|
|
294
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
295
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
296
|
+
in the Software without restriction, including without limitation the rights
|
|
297
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
298
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
299
|
+
furnished to do so, subject to the following conditions:
|
|
300
|
+
|
|
301
|
+
The above copyright notice and this permission notice shall be included in all
|
|
302
|
+
copies or substantial portions of the Software.
|
|
303
|
+
|
|
304
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
305
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
306
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
307
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
308
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
309
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
310
|
+
SOFTWARE.
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
tree-sitter-cpp@0.23.4
|
|
314
|
+
The MIT License (MIT)
|
|
315
|
+
|
|
316
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
317
|
+
|
|
318
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
319
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
320
|
+
in the Software without restriction, including without limitation the rights
|
|
321
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
322
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
323
|
+
furnished to do so, subject to the following conditions:
|
|
324
|
+
|
|
325
|
+
The above copyright notice and this permission notice shall be included in all
|
|
326
|
+
copies or substantial portions of the Software.
|
|
327
|
+
|
|
328
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
329
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
330
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
331
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
332
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
333
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
334
|
+
SOFTWARE.
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
tree-sitter-c-sharp@0.23.5
|
|
338
|
+
The MIT License (MIT)
|
|
339
|
+
|
|
340
|
+
Copyright (c) 2014-2023 Max Brunsfeld, Damien Guard, Amaan Qureshi, and contributors.
|
|
341
|
+
|
|
342
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
343
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
344
|
+
in the Software without restriction, including without limitation the rights
|
|
345
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
346
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
347
|
+
furnished to do so, subject to the following conditions:
|
|
348
|
+
|
|
349
|
+
The above copyright notice and this permission notice shall be included in all
|
|
350
|
+
copies or substantial portions of the Software.
|
|
351
|
+
|
|
352
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
353
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
354
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
355
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
356
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
357
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
358
|
+
SOFTWARE.
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
tree-sitter-java@0.23.5
|
|
362
|
+
MIT License
|
|
363
|
+
|
|
364
|
+
Copyright (c) 2017 Ayman Nadeem
|
|
365
|
+
|
|
366
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
367
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
368
|
+
in the Software without restriction, including without limitation the rights
|
|
369
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
370
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
371
|
+
furnished to do so, subject to the following conditions:
|
|
372
|
+
|
|
373
|
+
The above copyright notice and this permission notice shall be included in all
|
|
374
|
+
copies or substantial portions of the Software.
|
|
375
|
+
|
|
376
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
377
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
378
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
379
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
380
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
381
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
382
|
+
SOFTWARE.
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
tree-sitter-php@0.24.2
|
|
386
|
+
The MIT License (MIT)
|
|
387
|
+
|
|
388
|
+
Copyright (c) 2017 Josh Vera, GitHub
|
|
389
|
+
Copyright (c) 2019 Max Brunsfeld, Amaan Qureshi, Christian Frøystad, Caleb White
|
|
390
|
+
|
|
391
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
392
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
393
|
+
in the Software without restriction, including without limitation the rights
|
|
394
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
395
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
396
|
+
furnished to do so, subject to the following conditions:
|
|
397
|
+
|
|
398
|
+
The above copyright notice and this permission notice shall be included in all
|
|
399
|
+
copies or substantial portions of the Software.
|
|
400
|
+
|
|
401
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
402
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
403
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
404
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
405
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
406
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
407
|
+
SOFTWARE.
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
@tree-sitter-grammars/tree-sitter-lua@0.4.1
|
|
411
|
+
The MIT License (MIT)
|
|
412
|
+
|
|
413
|
+
Copyright (c) 2021 Munif Tanjim
|
|
414
|
+
|
|
415
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
416
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
417
|
+
in the Software without restriction, including without limitation the rights
|
|
418
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
419
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
420
|
+
furnished to do so, subject to the following conditions:
|
|
421
|
+
|
|
422
|
+
The above copyright notice and this permission notice shall be included in all
|
|
423
|
+
copies or substantial portions of the Software.
|
|
424
|
+
|
|
425
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
426
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
427
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
428
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
429
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
430
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
431
|
+
SOFTWARE.
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
tree-sitter-svelte@0.11.0
|
|
435
|
+
Copyright © Himujjal Upadhyaya <himu@tuta.io>
|
|
436
|
+
|
|
437
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
438
|
+
|
|
439
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
440
|
+
|
|
441
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
sql
|
|
445
|
+
https://github.com/DerekStride/tree-sitter-sql@97614d051eebfd3bc5d97c0bdb5a1638719ca811
|
|
446
|
+
MIT License
|
|
447
|
+
|
|
448
|
+
Copyright (c) 2021 Derek Stride
|
|
449
|
+
|
|
450
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
451
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
452
|
+
in the Software without restriction, including without limitation the rights
|
|
453
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
454
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
455
|
+
furnished to do so, subject to the following conditions:
|
|
456
|
+
|
|
457
|
+
The above copyright notice and this permission notice shall be included in all
|
|
458
|
+
copies or substantial portions of the Software.
|
|
459
|
+
|
|
460
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
461
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
462
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
463
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
464
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
465
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
466
|
+
SOFTWARE.
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
mdx
|
|
470
|
+
https://github.com/srazzak/tree-sitter-mdx@3aa29e8de1bf0213948a04fe953039b6ab73777b
|
|
471
|
+
MIT License
|
|
472
|
+
|
|
473
|
+
Copyright (c) 2025 Suhail Razzak
|
|
474
|
+
|
|
475
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
476
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
477
|
+
in the Software without restriction, including without limitation the rights
|
|
478
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
479
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
480
|
+
furnished to do so, subject to the following conditions:
|
|
481
|
+
|
|
482
|
+
The above copyright notice and this permission notice shall be included in all
|
|
483
|
+
copies or substantial portions of the Software.
|
|
484
|
+
|
|
485
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
486
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
487
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
488
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
489
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
490
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
491
|
+
SOFTWARE.
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
tree-sitter-md@0.1.0
|
|
495
|
+
MIT License
|
|
496
|
+
|
|
497
|
+
Copyright (c) 2026 Shaul Lavochkin
|
|
498
|
+
|
|
499
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
500
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
501
|
+
in the Software without restriction, including without limitation the rights
|
|
502
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
503
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
504
|
+
furnished to do so, subject to the following conditions:
|
|
505
|
+
|
|
506
|
+
The above copyright notice and this permission notice shall be included in all
|
|
507
|
+
copies or substantial portions of the Software.
|
|
508
|
+
|
|
509
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
510
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
511
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
512
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
513
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
514
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
515
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# @singapore-editor/tree-sitter-languages
|
|
2
|
+
|
|
3
|
+
Bundled Tree-sitter language contributions for Singapore.
|
|
4
|
+
|
|
5
|
+
The catalog includes JavaScript with JSX, TypeScript, TSX, HTML, CSS, JSON, Markdown and its inline
|
|
6
|
+
parser, Astro, Python, shell scripts, Rust, Go, YAML, TOML, C, C++, C#, Java, PHP, Lua, Svelte and SQL.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install @singapore-editor/core @singapore-editor/tree-sitter @singapore-editor/tree-sitter-languages
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import { Editor } from '@singapore-editor/core/editor'
|
|
18
|
+
import { javaScript, typeScript } from '@singapore-editor/tree-sitter-languages'
|
|
19
|
+
|
|
20
|
+
const editor = new Editor(document.querySelector('#editor')!, {
|
|
21
|
+
plugins: [javaScript({ jsx: true }), typeScript({ tsx: true })],
|
|
22
|
+
})
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Exports
|
|
26
|
+
|
|
27
|
+
- `javaScript`, `typeScript`, `html`, `css`, `json`, and `markdown` create language plugins.
|
|
28
|
+
- `TREE_SITTER_LANGUAGE_CONTRIBUTIONS` exports the bundled contribution list.
|
|
29
|
+
- Individual constants such as `JAVASCRIPT_TREE_SITTER_LANGUAGE` expose raw contributions.
|
|
30
|
+
|
|
31
|
+
## Catalog maintenance
|
|
32
|
+
|
|
33
|
+
`languages.json` owns parser identities, lazy assets, detection metadata, dependency lists,
|
|
34
|
+
query composition, capture mappings and capability status. `src/metadata.ts` is generated and
|
|
35
|
+
contains no grammar imports. Import it through `@singapore-editor/tree-sitter-languages/metadata`.
|
|
36
|
+
TypeScript uses `.ts`, `.mts` and `.cts`; TSX has its own `tsx` identity. JavaScript retains JSX.
|
|
37
|
+
The ambiguous `react` alias is not registered.
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
bun run languages:generate
|
|
41
|
+
bun run languages:generate -- --check
|
|
42
|
+
bun run languages:verify
|
|
43
|
+
bun run languages:build -- --check
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Generation validates all input files before writing outputs. The lock includes npm integrity,
|
|
47
|
+
source revisions where published, source and query hashes, parser ABI, emitted WASM hashes and
|
|
48
|
+
mapped-query hashes. `NOTICE` retains upstream licenses. npm sources are exact versions. Their
|
|
49
|
+
compiler provenance is explicitly unknown when the upstream package does not publish it.
|
|
50
|
+
Astro is built from the revision in `languages.json` with tree-sitter 0.27.0 and wasi-sdk 34.
|
|
51
|
+
`astro-build.lock.json` records that build's inputs and output; `languages:build -- --check`
|
|
52
|
+
rebuilds it and compares the lock. Set `TMPDIR` for build scratch on machines without `/work`.
|
|
53
|
+
Updating revisions is an explicit manifest edit, followed by regeneration and verification.
|
|
54
|
+
|
|
55
|
+
The 23 parser entries include Markdown's internal inline parser. Every entry has a curated
|
|
56
|
+
capture fixture and a browser-worker edit comparison. These establish partial support, not
|
|
57
|
+
complete language parity. Platform's `bun run syntax:coverage` compares this catalog with its
|
|
58
|
+
installed Shiki release and records every canonical ID separately.
|
|
59
|
+
|
|
60
|
+
### Query policy and patches
|
|
61
|
+
|
|
62
|
+
Query inheritance is explicit ordered composition in `queries.highlights` and `queries.folds`.
|
|
63
|
+
Unexpanded `inherits` directives fail admission. Public captures must map to the palette taxonomy.
|
|
64
|
+
`captureMappings` records adaptations such as `module` to `namespace`, `escape` to `string.escape`
|
|
65
|
+
and Lua's `parameter` to `variable.parameter`. Capture replacement skips comments and string
|
|
66
|
+
literals and preserves private predicate captures. Markdown fence labels carry `text.literal`; the whole block does not override injected colors.
|
|
67
|
+
`none` and `embedded` intentionally retain raw
|
|
68
|
+
captures without painting over their children.
|
|
69
|
+
|
|
70
|
+
Astro's local queries add CSS injection and delimiters to the pinned upstream queries. Svelte's
|
|
71
|
+
local injection query translates language-named captures to the worker's explicit injection
|
|
72
|
+
properties. A style `lang` attribute requests that language, so unavailable SCSS is not parsed as
|
|
73
|
+
CSS. Complex Astro expressions, Svelte preprocessors and version-specific syntax remain partial.
|
|
74
|
+
|
|
75
|
+
The JavaScript injection query omits the upstream Glimmer rule. Its `@glimmer` capture was never
|
|
76
|
+
consumed and its `offset!` directive was never evaluated here. Regex and JSDoc remain explicit
|
|
77
|
+
unavailable dependencies. Existing JavaScript/TypeScript `is-not? local` predicates are a recorded
|
|
78
|
+
legacy gap, not an admitted new semantic feature. New query bundles using unsupported predicates
|
|
79
|
+
must not be added to that exception. Ruby and Kotlin have not been admitted for this reason.
|
|
80
|
+
|
|
81
|
+
SQL is built from DerekStride/tree-sitter-sql at the revision in `languages.json`.
|
|
82
|
+
`bun run languages:build:sql` regenerates its parser, WASM, adapted highlight query, notice and
|
|
83
|
+
`sql-build.lock.json`; add `-- --check` to reproduce and compare those outputs.
|
|
84
|
+
The adaptation replaces Lua numeric patterns with JavaScript regexes, excludes numbers from
|
|
85
|
+
string captures, and removes the redundant spell-check marker on comments. `storageclass`
|
|
86
|
+
maps to `keyword.storage`. Fixtures cover generic statements and lazy Markdown fences.
|
|
87
|
+
Dialect parity, PL/SQL, uppercase exponent literals and SQL folds are not established.
|
|
88
|
+
|
|
89
|
+
MDX is built from srazzak/tree-sitter-mdx at the pinned revision in `languages.json`.
|
|
90
|
+
`WASI_SDK_PATH=/work/cache/tree-sitter/wasi-sdk bun run languages:build:mdx` regenerates the
|
|
91
|
+
WASM, adapted query, notice and source lock. Add `-- --check` to compare a reproducible build.
|
|
92
|
+
`patches/mdx-inline.patch` permits JSX and expressions inside paragraphs and headings, and fixes
|
|
93
|
+
an incorrectly indexed scanner table that read past its bounds during paragraph interruption.
|
|
94
|
+
The five upstream corpus cases still pass. Admission checks assert UTF-16 node ranges and final
|
|
95
|
+
worker paint for mixed prose, JSX, expressions, nested Markdown and lazy SQL fences.
|
|
96
|
+
|
|
97
|
+
The highlight adaptation omits both complete locals-dependent builtin-name rules. Those names
|
|
98
|
+
retain ordinary variable or call categories, including when shadowed. It adds JSX and comment
|
|
99
|
+
captures and paints only fence info strings, leaving embedded code to its injected grammar.
|
|
100
|
+
The local injection query uses Markdown inline nodes, Markdown inside JSX text and dynamic fences.
|
|
101
|
+
Frontmatter, emphasis spanning JSX/expression boundaries, tagged templates, builtin-name
|
|
102
|
+
specialization and folds remain unsupported. MDX support is partial.
|
|
103
|
+
|
|
104
|
+
### Runtime loading and diagnostics
|
|
105
|
+
|
|
106
|
+
Sessions load static dependencies from metadata and request missing captured languages after
|
|
107
|
+
worker discovery. The registry deduplicates asset loading. Delayed results are checked against
|
|
108
|
+
session lifetime and document version. The worker reuses its root tree when new injection assets
|
|
109
|
+
arrive. Edits rediscover injections across the document because delimiter changes can invalidate
|
|
110
|
+
child layers outside the changed text range. Parsing still uses incremental trees.
|
|
111
|
+
|
|
112
|
+
Injection recursion stops at eight levels and 256 layers. Equal-language, equal-range ancestor
|
|
113
|
+
cycles are rejected; smaller nested ranges may reuse the same language. Unavailable languages
|
|
114
|
+
are reported in worker `missingLanguages` and never cause a Shiki fallback.
|
|
115
|
+
|
|
116
|
+
Worker timings separate root parsing, injected parsing, injection discovery, highlight traversal
|
|
117
|
+
with predicates, fold queries, structural walks, capture normalization, sorting, overlap resolution
|
|
118
|
+
and packing. Totals such as `queryRange` include these phases and must not be added to them.
|
|
119
|
+
Statistics record raw and deduplicated capture counts, layers, requested range and transferred token
|
|
120
|
+
buffer bytes. Buffer bytes exclude the small cloned style table and other structural response data.
|
|
121
|
+
Worker request wall time includes queueing and transfer; it does not isolate transfer time or paint.
|
|
122
|
+
|
|
123
|
+
For the optional five-run worker profile:
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
bun run --cwd ../tree-sitter test -- --browser.enabled --browser.headless --silent=false --reporter=verbose test/native-profile.browser.test.ts
|
|
127
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.generated.d.ts","sourceRoot":"","sources":["../src/catalog.generated.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AAEnF,eAAO,MAAM,kCAAkC,EAAE,SAAS,8BAA8B,EAofvF,CAAA"}
|