tree-sitter-familymarkup 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +22 -0
- package/README.md +3 -0
- package/binding.gyp +30 -0
- package/bindings/node/binding.cc +20 -0
- package/bindings/node/binding_test.js +9 -0
- package/bindings/node/index.d.ts +28 -0
- package/bindings/node/index.js +7 -0
- package/grammar.js +97 -0
- package/package.json +44 -0
- package/queries/highlights.scm +67 -0
- package/queries/locals.scm +9 -0
- package/src/binding.go +13 -0
- package/src/grammar.json +760 -0
- package/src/node-types.json +435 -0
- package/src/parser.c +2487 -0
- package/src/tree_sitter/alloc.h +54 -0
- package/src/tree_sitter/array.h +290 -0
- package/src/tree_sitter/parser.h +266 -0
@@ -0,0 +1,435 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"type": "comment",
|
4
|
+
"named": true,
|
5
|
+
"fields": {}
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"type": "family",
|
9
|
+
"named": true,
|
10
|
+
"fields": {
|
11
|
+
"name": {
|
12
|
+
"multiple": false,
|
13
|
+
"required": true,
|
14
|
+
"types": [
|
15
|
+
{
|
16
|
+
"type": "family_name",
|
17
|
+
"named": true
|
18
|
+
}
|
19
|
+
]
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"children": {
|
23
|
+
"multiple": true,
|
24
|
+
"required": false,
|
25
|
+
"types": [
|
26
|
+
{
|
27
|
+
"type": "comment",
|
28
|
+
"named": true
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"type": "relations",
|
32
|
+
"named": true
|
33
|
+
}
|
34
|
+
]
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"type": "family_name",
|
39
|
+
"named": true,
|
40
|
+
"fields": {
|
41
|
+
"aliases": {
|
42
|
+
"multiple": false,
|
43
|
+
"required": false,
|
44
|
+
"types": [
|
45
|
+
{
|
46
|
+
"type": "name_aliases",
|
47
|
+
"named": true
|
48
|
+
}
|
49
|
+
]
|
50
|
+
},
|
51
|
+
"name": {
|
52
|
+
"multiple": false,
|
53
|
+
"required": true,
|
54
|
+
"types": [
|
55
|
+
{
|
56
|
+
"type": "name",
|
57
|
+
"named": true
|
58
|
+
}
|
59
|
+
]
|
60
|
+
}
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"type": "name_aliases",
|
65
|
+
"named": true,
|
66
|
+
"fields": {},
|
67
|
+
"children": {
|
68
|
+
"multiple": true,
|
69
|
+
"required": false,
|
70
|
+
"types": [
|
71
|
+
{
|
72
|
+
"type": "name",
|
73
|
+
"named": true
|
74
|
+
}
|
75
|
+
]
|
76
|
+
}
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"type": "name_def",
|
80
|
+
"named": true,
|
81
|
+
"fields": {
|
82
|
+
"aliases": {
|
83
|
+
"multiple": false,
|
84
|
+
"required": false,
|
85
|
+
"types": [
|
86
|
+
{
|
87
|
+
"type": "name_aliases",
|
88
|
+
"named": true
|
89
|
+
}
|
90
|
+
]
|
91
|
+
},
|
92
|
+
"name": {
|
93
|
+
"multiple": false,
|
94
|
+
"required": true,
|
95
|
+
"types": [
|
96
|
+
{
|
97
|
+
"type": "name",
|
98
|
+
"named": true
|
99
|
+
}
|
100
|
+
]
|
101
|
+
},
|
102
|
+
"number": {
|
103
|
+
"multiple": false,
|
104
|
+
"required": false,
|
105
|
+
"types": [
|
106
|
+
{
|
107
|
+
"type": "num",
|
108
|
+
"named": true
|
109
|
+
}
|
110
|
+
]
|
111
|
+
},
|
112
|
+
"surname": {
|
113
|
+
"multiple": false,
|
114
|
+
"required": false,
|
115
|
+
"types": [
|
116
|
+
{
|
117
|
+
"type": "new_surname",
|
118
|
+
"named": true
|
119
|
+
}
|
120
|
+
]
|
121
|
+
}
|
122
|
+
}
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"type": "name_ref",
|
126
|
+
"named": true,
|
127
|
+
"fields": {},
|
128
|
+
"children": {
|
129
|
+
"multiple": true,
|
130
|
+
"required": true,
|
131
|
+
"types": [
|
132
|
+
{
|
133
|
+
"type": "name",
|
134
|
+
"named": true
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"type": "surname",
|
138
|
+
"named": true
|
139
|
+
}
|
140
|
+
]
|
141
|
+
}
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"type": "new_surname",
|
145
|
+
"named": true,
|
146
|
+
"fields": {},
|
147
|
+
"children": {
|
148
|
+
"multiple": false,
|
149
|
+
"required": true,
|
150
|
+
"types": [
|
151
|
+
{
|
152
|
+
"type": "name",
|
153
|
+
"named": true
|
154
|
+
}
|
155
|
+
]
|
156
|
+
}
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"type": "num_unknown",
|
160
|
+
"named": true,
|
161
|
+
"fields": {},
|
162
|
+
"children": {
|
163
|
+
"multiple": true,
|
164
|
+
"required": true,
|
165
|
+
"types": [
|
166
|
+
{
|
167
|
+
"type": "num",
|
168
|
+
"named": true
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"type": "unknown",
|
172
|
+
"named": true
|
173
|
+
}
|
174
|
+
]
|
175
|
+
}
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"type": "relation",
|
179
|
+
"named": true,
|
180
|
+
"fields": {
|
181
|
+
"arrow": {
|
182
|
+
"multiple": false,
|
183
|
+
"required": true,
|
184
|
+
"types": [
|
185
|
+
{
|
186
|
+
"type": "-",
|
187
|
+
"named": false
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"type": "->",
|
191
|
+
"named": false
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"type": "<-",
|
195
|
+
"named": false
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"type": "<->",
|
199
|
+
"named": false
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"type": "=",
|
203
|
+
"named": false
|
204
|
+
}
|
205
|
+
]
|
206
|
+
},
|
207
|
+
"label": {
|
208
|
+
"multiple": false,
|
209
|
+
"required": false,
|
210
|
+
"types": [
|
211
|
+
{
|
212
|
+
"type": "words",
|
213
|
+
"named": true
|
214
|
+
}
|
215
|
+
]
|
216
|
+
},
|
217
|
+
"sources": {
|
218
|
+
"multiple": false,
|
219
|
+
"required": true,
|
220
|
+
"types": [
|
221
|
+
{
|
222
|
+
"type": "sources",
|
223
|
+
"named": true
|
224
|
+
}
|
225
|
+
]
|
226
|
+
},
|
227
|
+
"targets": {
|
228
|
+
"multiple": false,
|
229
|
+
"required": false,
|
230
|
+
"types": [
|
231
|
+
{
|
232
|
+
"type": "targets",
|
233
|
+
"named": true
|
234
|
+
}
|
235
|
+
]
|
236
|
+
}
|
237
|
+
}
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"type": "relations",
|
241
|
+
"named": true,
|
242
|
+
"fields": {},
|
243
|
+
"children": {
|
244
|
+
"multiple": true,
|
245
|
+
"required": true,
|
246
|
+
"types": [
|
247
|
+
{
|
248
|
+
"type": "relation",
|
249
|
+
"named": true
|
250
|
+
}
|
251
|
+
]
|
252
|
+
}
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"type": "root",
|
256
|
+
"named": true,
|
257
|
+
"root": true,
|
258
|
+
"fields": {},
|
259
|
+
"children": {
|
260
|
+
"multiple": true,
|
261
|
+
"required": true,
|
262
|
+
"types": [
|
263
|
+
{
|
264
|
+
"type": "family",
|
265
|
+
"named": true
|
266
|
+
}
|
267
|
+
]
|
268
|
+
}
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"type": "sources",
|
272
|
+
"named": true,
|
273
|
+
"fields": {
|
274
|
+
"delimiter": {
|
275
|
+
"multiple": true,
|
276
|
+
"required": false,
|
277
|
+
"types": [
|
278
|
+
{
|
279
|
+
"type": "+",
|
280
|
+
"named": false
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"type": ",",
|
284
|
+
"named": false
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"type": "_words",
|
288
|
+
"named": false
|
289
|
+
}
|
290
|
+
]
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"children": {
|
294
|
+
"multiple": true,
|
295
|
+
"required": true,
|
296
|
+
"types": [
|
297
|
+
{
|
298
|
+
"type": "name",
|
299
|
+
"named": true
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"type": "name_ref",
|
303
|
+
"named": true
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"type": "unknown",
|
307
|
+
"named": true
|
308
|
+
}
|
309
|
+
]
|
310
|
+
}
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"type": "targets",
|
314
|
+
"named": true,
|
315
|
+
"fields": {
|
316
|
+
"delimiter": {
|
317
|
+
"multiple": true,
|
318
|
+
"required": false,
|
319
|
+
"types": [
|
320
|
+
{
|
321
|
+
"type": ",",
|
322
|
+
"named": false
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"type": "_words",
|
326
|
+
"named": false
|
327
|
+
}
|
328
|
+
]
|
329
|
+
}
|
330
|
+
},
|
331
|
+
"children": {
|
332
|
+
"multiple": true,
|
333
|
+
"required": true,
|
334
|
+
"types": [
|
335
|
+
{
|
336
|
+
"type": "comment",
|
337
|
+
"named": true
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"type": "name_def",
|
341
|
+
"named": true
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"type": "name_ref",
|
345
|
+
"named": true
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"type": "num_unknown",
|
349
|
+
"named": true
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"type": "unknown",
|
353
|
+
"named": true
|
354
|
+
}
|
355
|
+
]
|
356
|
+
}
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"type": "unknown",
|
360
|
+
"named": true,
|
361
|
+
"fields": {}
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"type": "#",
|
365
|
+
"named": false
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"type": "(",
|
369
|
+
"named": false
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"type": ")",
|
373
|
+
"named": false
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"type": "*",
|
377
|
+
"named": false
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"type": "+",
|
381
|
+
"named": false
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"type": ",",
|
385
|
+
"named": false
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"type": "-",
|
389
|
+
"named": false
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"type": "->",
|
393
|
+
"named": false
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"type": "/",
|
397
|
+
"named": false
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"type": "<-",
|
401
|
+
"named": false
|
402
|
+
},
|
403
|
+
{
|
404
|
+
"type": "<->",
|
405
|
+
"named": false
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"type": "=",
|
409
|
+
"named": false
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"type": "?",
|
413
|
+
"named": false
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"type": "_words",
|
417
|
+
"named": false
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"type": "name",
|
421
|
+
"named": true
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"type": "num",
|
425
|
+
"named": true
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"type": "surname",
|
429
|
+
"named": true
|
430
|
+
},
|
431
|
+
{
|
432
|
+
"type": "words",
|
433
|
+
"named": true
|
434
|
+
}
|
435
|
+
]
|