tree-sitter-sed 0.2.0 → 0.3.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.
- package/common/grammar.js +264 -312
- package/common/regex.js +12 -23
- package/common/scanner.h +423 -460
- package/package.json +3 -3
- package/sed_ere/src/grammar.json +1264 -2013
- package/sed_ere/src/node-types.json +109 -32
- package/sed_ere/src/parser.c +37125 -36566
- package/src/grammar.json +1261 -2076
- package/src/node-types.json +131 -38
- package/src/parser.c +31231 -30740
- package/tree-sitter.json +1 -1
package/src/node-types.json
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"type": "additional_address",
|
|
4
|
-
"named": true,
|
|
5
|
-
"fields": {}
|
|
6
|
-
},
|
|
7
2
|
{
|
|
8
3
|
"type": "address",
|
|
9
4
|
"named": true,
|
|
@@ -31,16 +26,6 @@
|
|
|
31
26
|
"type": "address_clause",
|
|
32
27
|
"named": true,
|
|
33
28
|
"fields": {
|
|
34
|
-
"excess": {
|
|
35
|
-
"multiple": true,
|
|
36
|
-
"required": false,
|
|
37
|
-
"types": [
|
|
38
|
-
{
|
|
39
|
-
"type": "excess_address",
|
|
40
|
-
"named": true
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
29
|
"first": {
|
|
45
30
|
"multiple": false,
|
|
46
31
|
"required": false,
|
|
@@ -88,7 +73,7 @@
|
|
|
88
73
|
"named": true,
|
|
89
74
|
"fields": {
|
|
90
75
|
"issue": {
|
|
91
|
-
"multiple":
|
|
76
|
+
"multiple": true,
|
|
92
77
|
"required": false,
|
|
93
78
|
"types": [
|
|
94
79
|
{
|
|
@@ -279,10 +264,35 @@
|
|
|
279
264
|
]
|
|
280
265
|
}
|
|
281
266
|
},
|
|
267
|
+
{
|
|
268
|
+
"type": "blanks_after_negation",
|
|
269
|
+
"named": true,
|
|
270
|
+
"fields": {},
|
|
271
|
+
"children": {
|
|
272
|
+
"multiple": false,
|
|
273
|
+
"required": true,
|
|
274
|
+
"types": [
|
|
275
|
+
{
|
|
276
|
+
"type": "blank",
|
|
277
|
+
"named": true
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
282
|
{
|
|
283
283
|
"type": "blanks_around_address_separator",
|
|
284
284
|
"named": true,
|
|
285
|
-
"fields": {}
|
|
285
|
+
"fields": {},
|
|
286
|
+
"children": {
|
|
287
|
+
"multiple": false,
|
|
288
|
+
"required": true,
|
|
289
|
+
"types": [
|
|
290
|
+
{
|
|
291
|
+
"type": "blank",
|
|
292
|
+
"named": true
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
286
296
|
},
|
|
287
297
|
{
|
|
288
298
|
"type": "block_function",
|
|
@@ -1099,7 +1109,18 @@
|
|
|
1099
1109
|
{
|
|
1100
1110
|
"type": "duplicate_negation",
|
|
1101
1111
|
"named": true,
|
|
1102
|
-
"fields": {
|
|
1112
|
+
"fields": {
|
|
1113
|
+
"operator": {
|
|
1114
|
+
"multiple": false,
|
|
1115
|
+
"required": true,
|
|
1116
|
+
"types": [
|
|
1117
|
+
{
|
|
1118
|
+
"type": "negation_operator",
|
|
1119
|
+
"named": true
|
|
1120
|
+
}
|
|
1121
|
+
]
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1103
1124
|
},
|
|
1104
1125
|
{
|
|
1105
1126
|
"type": "editing_command",
|
|
@@ -1328,7 +1349,7 @@
|
|
|
1328
1349
|
},
|
|
1329
1350
|
"separator": {
|
|
1330
1351
|
"multiple": false,
|
|
1331
|
-
"required":
|
|
1352
|
+
"required": false,
|
|
1332
1353
|
"types": [
|
|
1333
1354
|
{
|
|
1334
1355
|
"type": "address_separator",
|
|
@@ -1338,11 +1359,6 @@
|
|
|
1338
1359
|
}
|
|
1339
1360
|
}
|
|
1340
1361
|
},
|
|
1341
|
-
{
|
|
1342
|
-
"type": "excess_addresses",
|
|
1343
|
-
"named": true,
|
|
1344
|
-
"fields": {}
|
|
1345
|
-
},
|
|
1346
1362
|
{
|
|
1347
1363
|
"type": "exchange_function",
|
|
1348
1364
|
"named": true,
|
|
@@ -1389,6 +1405,37 @@
|
|
|
1389
1405
|
]
|
|
1390
1406
|
}
|
|
1391
1407
|
},
|
|
1408
|
+
{
|
|
1409
|
+
"type": "flag_after_write_flag",
|
|
1410
|
+
"named": true,
|
|
1411
|
+
"fields": {},
|
|
1412
|
+
"children": {
|
|
1413
|
+
"multiple": false,
|
|
1414
|
+
"required": true,
|
|
1415
|
+
"types": [
|
|
1416
|
+
{
|
|
1417
|
+
"type": "case_insensitive_flag",
|
|
1418
|
+
"named": true
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"type": "global_flag",
|
|
1422
|
+
"named": true
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"type": "occurrence_flag",
|
|
1426
|
+
"named": true
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"type": "print_flag",
|
|
1430
|
+
"named": true
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"type": "substitution_flag",
|
|
1434
|
+
"named": true
|
|
1435
|
+
}
|
|
1436
|
+
]
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1392
1439
|
{
|
|
1393
1440
|
"type": "follow_list",
|
|
1394
1441
|
"named": true,
|
|
@@ -1790,6 +1837,10 @@
|
|
|
1790
1837
|
"type": "missing_wfile",
|
|
1791
1838
|
"named": true
|
|
1792
1839
|
},
|
|
1840
|
+
{
|
|
1841
|
+
"type": "omitted_address",
|
|
1842
|
+
"named": true
|
|
1843
|
+
},
|
|
1793
1844
|
{
|
|
1794
1845
|
"type": "unclosed_bracket_expression",
|
|
1795
1846
|
"named": true
|
|
@@ -2127,7 +2178,7 @@
|
|
|
2127
2178
|
]
|
|
2128
2179
|
},
|
|
2129
2180
|
"operator": {
|
|
2130
|
-
"multiple":
|
|
2181
|
+
"multiple": false,
|
|
2131
2182
|
"required": true,
|
|
2132
2183
|
"types": [
|
|
2133
2184
|
{
|
|
@@ -2178,10 +2229,6 @@
|
|
|
2178
2229
|
"multiple": false,
|
|
2179
2230
|
"required": true,
|
|
2180
2231
|
"types": [
|
|
2181
|
-
{
|
|
2182
|
-
"type": "additional_address",
|
|
2183
|
-
"named": true
|
|
2184
|
-
},
|
|
2185
2232
|
{
|
|
2186
2233
|
"type": "blanks_around_address_separator",
|
|
2187
2234
|
"named": true
|
|
@@ -2191,7 +2238,7 @@
|
|
|
2191
2238
|
"named": true
|
|
2192
2239
|
},
|
|
2193
2240
|
{
|
|
2194
|
-
"type": "
|
|
2241
|
+
"type": "excess_address",
|
|
2195
2242
|
"named": true
|
|
2196
2243
|
},
|
|
2197
2244
|
{
|
|
@@ -2277,10 +2324,6 @@
|
|
|
2277
2324
|
"multiple": false,
|
|
2278
2325
|
"required": false,
|
|
2279
2326
|
"types": [
|
|
2280
|
-
{
|
|
2281
|
-
"type": "back_close_brace",
|
|
2282
|
-
"named": true
|
|
2283
|
-
},
|
|
2284
2327
|
{
|
|
2285
2328
|
"type": "back_close_parenthesis",
|
|
2286
2329
|
"named": true
|
|
@@ -3375,6 +3418,10 @@
|
|
|
3375
3418
|
"type": "empty_subexpression",
|
|
3376
3419
|
"named": true
|
|
3377
3420
|
},
|
|
3421
|
+
{
|
|
3422
|
+
"type": "flag_after_write_flag",
|
|
3423
|
+
"named": true
|
|
3424
|
+
},
|
|
3378
3425
|
{
|
|
3379
3426
|
"type": "leading_duplication_symbol",
|
|
3380
3427
|
"named": true
|
|
@@ -3449,12 +3496,32 @@
|
|
|
3449
3496
|
{
|
|
3450
3497
|
"type": "unmatched_interval_close",
|
|
3451
3498
|
"named": true,
|
|
3452
|
-
"fields": {}
|
|
3499
|
+
"fields": {},
|
|
3500
|
+
"children": {
|
|
3501
|
+
"multiple": false,
|
|
3502
|
+
"required": true,
|
|
3503
|
+
"types": [
|
|
3504
|
+
{
|
|
3505
|
+
"type": "back_close_brace",
|
|
3506
|
+
"named": true
|
|
3507
|
+
}
|
|
3508
|
+
]
|
|
3509
|
+
}
|
|
3453
3510
|
},
|
|
3454
3511
|
{
|
|
3455
3512
|
"type": "unmatched_subexpression_close",
|
|
3456
3513
|
"named": true,
|
|
3457
|
-
"fields": {}
|
|
3514
|
+
"fields": {},
|
|
3515
|
+
"children": {
|
|
3516
|
+
"multiple": false,
|
|
3517
|
+
"required": true,
|
|
3518
|
+
"types": [
|
|
3519
|
+
{
|
|
3520
|
+
"type": "back_close_parenthesis_token",
|
|
3521
|
+
"named": true
|
|
3522
|
+
}
|
|
3523
|
+
]
|
|
3524
|
+
}
|
|
3458
3525
|
},
|
|
3459
3526
|
{
|
|
3460
3527
|
"type": "unspecified_replacement_escape",
|
|
@@ -3544,7 +3611,7 @@
|
|
|
3544
3611
|
"named": true,
|
|
3545
3612
|
"fields": {
|
|
3546
3613
|
"issue": {
|
|
3547
|
-
"multiple":
|
|
3614
|
+
"multiple": true,
|
|
3548
3615
|
"required": false,
|
|
3549
3616
|
"types": [
|
|
3550
3617
|
{
|
|
@@ -3573,6 +3640,32 @@
|
|
|
3573
3640
|
}
|
|
3574
3641
|
]
|
|
3575
3642
|
}
|
|
3643
|
+
},
|
|
3644
|
+
"children": {
|
|
3645
|
+
"multiple": true,
|
|
3646
|
+
"required": false,
|
|
3647
|
+
"types": [
|
|
3648
|
+
{
|
|
3649
|
+
"type": "case_insensitive_flag",
|
|
3650
|
+
"named": true
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"type": "global_flag",
|
|
3654
|
+
"named": true
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"type": "occurrence_flag",
|
|
3658
|
+
"named": true
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
"type": "print_flag",
|
|
3662
|
+
"named": true
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"type": "substitution_flag",
|
|
3666
|
+
"named": true
|
|
3667
|
+
}
|
|
3668
|
+
]
|
|
3576
3669
|
}
|
|
3577
3670
|
},
|
|
3578
3671
|
{
|
|
@@ -3664,7 +3757,7 @@
|
|
|
3664
3757
|
"named": true
|
|
3665
3758
|
},
|
|
3666
3759
|
{
|
|
3667
|
-
"type": "
|
|
3760
|
+
"type": "blank",
|
|
3668
3761
|
"named": true
|
|
3669
3762
|
},
|
|
3670
3763
|
{
|