@konomanoasa/tree-sitter-query 0.3.0 → 0.3.2
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/Cargo.toml +2 -2
- package/README.md +4 -0
- package/grammar.js +17 -30
- package/package.json +5 -5
- package/src/grammar.json +75 -86
- package/src/parser.c +78 -85
- package/test/bindings.test.rs +129 -278
- package/tree-sitter.json +1 -1
package/src/parser.c
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define LANGUAGE_VERSION 15
|
|
10
10
|
#define STATE_COUNT 146
|
|
11
11
|
#define LARGE_STATE_COUNT 2
|
|
12
|
-
#define SYMBOL_COUNT
|
|
12
|
+
#define SYMBOL_COUNT 67
|
|
13
13
|
#define ALIAS_COUNT 0
|
|
14
14
|
#define TOKEN_COUNT 26
|
|
15
15
|
#define EXTERNAL_TOKEN_COUNT 0
|
|
@@ -53,40 +53,39 @@ enum ts_symbol_identifiers {
|
|
|
53
53
|
sym_pattern = 31,
|
|
54
54
|
sym__call_only_pattern = 32,
|
|
55
55
|
sym__delimited = 33,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
aux_sym__string_tail_repeat1 = 67,
|
|
56
|
+
sym__matching_child_pattern = 34,
|
|
57
|
+
sym__call_only_child_pattern = 35,
|
|
58
|
+
sym_node_pattern = 36,
|
|
59
|
+
sym__non_matching_child = 37,
|
|
60
|
+
sym_field_constraint = 38,
|
|
61
|
+
sym__call_only_field_constraint = 39,
|
|
62
|
+
sym_negated_field = 40,
|
|
63
|
+
sym_supertype = 41,
|
|
64
|
+
sym__untyped_missing_node = 42,
|
|
65
|
+
sym_missing_node = 43,
|
|
66
|
+
sym__missing_supertype = 44,
|
|
67
|
+
sym_group = 45,
|
|
68
|
+
sym__group_start_pattern = 46,
|
|
69
|
+
sym__call_only_group = 47,
|
|
70
|
+
sym__call_only_group_start = 48,
|
|
71
|
+
sym_alternation = 49,
|
|
72
|
+
sym__call_only_alternation = 50,
|
|
73
|
+
sym_capture = 51,
|
|
74
|
+
sym_predicate = 52,
|
|
75
|
+
sym_directive = 53,
|
|
76
|
+
sym__name = 54,
|
|
77
|
+
sym_string = 55,
|
|
78
|
+
sym__immediate_string = 56,
|
|
79
|
+
sym__string_tail = 57,
|
|
80
|
+
aux_sym_pattern_repeat1 = 58,
|
|
81
|
+
aux_sym_node_pattern_repeat1 = 59,
|
|
82
|
+
aux_sym_node_pattern_repeat2 = 60,
|
|
83
|
+
aux_sym_group_repeat1 = 61,
|
|
84
|
+
aux_sym_group_repeat2 = 62,
|
|
85
|
+
aux_sym_alternation_repeat1 = 63,
|
|
86
|
+
aux_sym_alternation_repeat2 = 64,
|
|
87
|
+
aux_sym_predicate_repeat1 = 65,
|
|
88
|
+
aux_sym__string_tail_repeat1 = 66,
|
|
90
89
|
};
|
|
91
90
|
|
|
92
91
|
static const char * const ts_symbol_names[] = {
|
|
@@ -124,11 +123,10 @@ static const char * const ts_symbol_names[] = {
|
|
|
124
123
|
[sym_pattern] = "pattern",
|
|
125
124
|
[sym__call_only_pattern] = "pattern",
|
|
126
125
|
[sym__delimited] = "_delimited",
|
|
127
|
-
[sym__child_pattern] = "_child_pattern",
|
|
128
126
|
[sym__matching_child_pattern] = "_matching_child_pattern",
|
|
129
127
|
[sym__call_only_child_pattern] = "_call_only_child_pattern",
|
|
130
128
|
[sym_node_pattern] = "node_pattern",
|
|
131
|
-
[
|
|
129
|
+
[sym__non_matching_child] = "_non_matching_child",
|
|
132
130
|
[sym_field_constraint] = "field_constraint",
|
|
133
131
|
[sym__call_only_field_constraint] = "field_constraint",
|
|
134
132
|
[sym_negated_field] = "negated_field",
|
|
@@ -137,7 +135,7 @@ static const char * const ts_symbol_names[] = {
|
|
|
137
135
|
[sym_missing_node] = "missing_node",
|
|
138
136
|
[sym__missing_supertype] = "supertype",
|
|
139
137
|
[sym_group] = "group",
|
|
140
|
-
[
|
|
138
|
+
[sym__group_start_pattern] = "pattern",
|
|
141
139
|
[sym__call_only_group] = "group",
|
|
142
140
|
[sym__call_only_group_start] = "_call_only_group_start",
|
|
143
141
|
[sym_alternation] = "alternation",
|
|
@@ -195,11 +193,10 @@ static const TSSymbol ts_symbol_map[] = {
|
|
|
195
193
|
[sym_pattern] = sym_pattern,
|
|
196
194
|
[sym__call_only_pattern] = sym_pattern,
|
|
197
195
|
[sym__delimited] = sym__delimited,
|
|
198
|
-
[sym__child_pattern] = sym__child_pattern,
|
|
199
196
|
[sym__matching_child_pattern] = sym__matching_child_pattern,
|
|
200
197
|
[sym__call_only_child_pattern] = sym__call_only_child_pattern,
|
|
201
198
|
[sym_node_pattern] = sym_node_pattern,
|
|
202
|
-
[
|
|
199
|
+
[sym__non_matching_child] = sym__non_matching_child,
|
|
203
200
|
[sym_field_constraint] = sym_field_constraint,
|
|
204
201
|
[sym__call_only_field_constraint] = sym_field_constraint,
|
|
205
202
|
[sym_negated_field] = sym_negated_field,
|
|
@@ -208,7 +205,7 @@ static const TSSymbol ts_symbol_map[] = {
|
|
|
208
205
|
[sym_missing_node] = sym_missing_node,
|
|
209
206
|
[sym__missing_supertype] = sym_supertype,
|
|
210
207
|
[sym_group] = sym_group,
|
|
211
|
-
[
|
|
208
|
+
[sym__group_start_pattern] = sym_pattern,
|
|
212
209
|
[sym__call_only_group] = sym_group,
|
|
213
210
|
[sym__call_only_group_start] = sym__call_only_group_start,
|
|
214
211
|
[sym_alternation] = sym_alternation,
|
|
@@ -368,10 +365,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
|
|
|
368
365
|
.visible = false,
|
|
369
366
|
.named = true,
|
|
370
367
|
},
|
|
371
|
-
[sym__child_pattern] = {
|
|
372
|
-
.visible = false,
|
|
373
|
-
.named = true,
|
|
374
|
-
},
|
|
375
368
|
[sym__matching_child_pattern] = {
|
|
376
369
|
.visible = false,
|
|
377
370
|
.named = true,
|
|
@@ -384,7 +377,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
|
|
|
384
377
|
.visible = true,
|
|
385
378
|
.named = true,
|
|
386
379
|
},
|
|
387
|
-
[
|
|
380
|
+
[sym__non_matching_child] = {
|
|
388
381
|
.visible = false,
|
|
389
382
|
.named = true,
|
|
390
383
|
},
|
|
@@ -420,7 +413,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
|
|
|
420
413
|
.visible = true,
|
|
421
414
|
.named = true,
|
|
422
415
|
},
|
|
423
|
-
[
|
|
416
|
+
[sym__group_start_pattern] = {
|
|
424
417
|
.visible = true,
|
|
425
418
|
.named = true,
|
|
426
419
|
},
|
|
@@ -1414,10 +1407,10 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
|
|
|
1414
1407
|
[sym__members] = STATE(140),
|
|
1415
1408
|
[sym__member] = STATE(26),
|
|
1416
1409
|
[sym__call] = STATE(26),
|
|
1410
|
+
[sym__call_only_member] = STATE(26),
|
|
1417
1411
|
[sym_pattern] = STATE(26),
|
|
1418
1412
|
[sym__call_only_pattern] = STATE(89),
|
|
1419
1413
|
[sym__delimited] = STATE(55),
|
|
1420
|
-
[sym__child_pattern] = STATE(26),
|
|
1421
1414
|
[sym__matching_child_pattern] = STATE(26),
|
|
1422
1415
|
[sym__call_only_child_pattern] = STATE(26),
|
|
1423
1416
|
[sym_node_pattern] = STATE(55),
|
|
@@ -1485,7 +1478,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1485
1478
|
sym__call,
|
|
1486
1479
|
sym__call_only_member,
|
|
1487
1480
|
sym__call_only_child_pattern,
|
|
1488
|
-
|
|
1481
|
+
sym__non_matching_child,
|
|
1489
1482
|
sym_negated_field,
|
|
1490
1483
|
sym_predicate,
|
|
1491
1484
|
sym_directive,
|
|
@@ -1533,7 +1526,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1533
1526
|
sym__call,
|
|
1534
1527
|
sym__call_only_member,
|
|
1535
1528
|
sym__call_only_child_pattern,
|
|
1536
|
-
|
|
1529
|
+
sym__non_matching_child,
|
|
1537
1530
|
sym_negated_field,
|
|
1538
1531
|
sym_predicate,
|
|
1539
1532
|
sym_directive,
|
|
@@ -1579,7 +1572,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1579
1572
|
sym__call,
|
|
1580
1573
|
sym__call_only_member,
|
|
1581
1574
|
sym__call_only_child_pattern,
|
|
1582
|
-
|
|
1575
|
+
sym__non_matching_child,
|
|
1583
1576
|
sym_negated_field,
|
|
1584
1577
|
sym_predicate,
|
|
1585
1578
|
sym_directive,
|
|
@@ -1625,7 +1618,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1625
1618
|
sym__call,
|
|
1626
1619
|
sym__call_only_member,
|
|
1627
1620
|
sym__call_only_child_pattern,
|
|
1628
|
-
|
|
1621
|
+
sym__non_matching_child,
|
|
1629
1622
|
sym_negated_field,
|
|
1630
1623
|
sym_predicate,
|
|
1631
1624
|
sym_directive,
|
|
@@ -1669,7 +1662,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1669
1662
|
sym_pattern,
|
|
1670
1663
|
sym__matching_child_pattern,
|
|
1671
1664
|
sym__call_only_child_pattern,
|
|
1672
|
-
|
|
1665
|
+
sym__non_matching_child,
|
|
1673
1666
|
sym_field_constraint,
|
|
1674
1667
|
sym_negated_field,
|
|
1675
1668
|
sym_predicate,
|
|
@@ -1714,7 +1707,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1714
1707
|
sym_pattern,
|
|
1715
1708
|
sym__matching_child_pattern,
|
|
1716
1709
|
sym__call_only_child_pattern,
|
|
1717
|
-
|
|
1710
|
+
sym__non_matching_child,
|
|
1718
1711
|
sym_field_constraint,
|
|
1719
1712
|
sym_negated_field,
|
|
1720
1713
|
sym_predicate,
|
|
@@ -1759,7 +1752,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1759
1752
|
sym_pattern,
|
|
1760
1753
|
sym__matching_child_pattern,
|
|
1761
1754
|
sym__call_only_child_pattern,
|
|
1762
|
-
|
|
1755
|
+
sym__non_matching_child,
|
|
1763
1756
|
sym_field_constraint,
|
|
1764
1757
|
sym_negated_field,
|
|
1765
1758
|
sym_predicate,
|
|
@@ -1804,7 +1797,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1804
1797
|
sym_pattern,
|
|
1805
1798
|
sym__matching_child_pattern,
|
|
1806
1799
|
sym__call_only_child_pattern,
|
|
1807
|
-
|
|
1800
|
+
sym__non_matching_child,
|
|
1808
1801
|
sym_field_constraint,
|
|
1809
1802
|
sym_negated_field,
|
|
1810
1803
|
sym_predicate,
|
|
@@ -1849,7 +1842,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1849
1842
|
sym_pattern,
|
|
1850
1843
|
sym__matching_child_pattern,
|
|
1851
1844
|
sym__call_only_child_pattern,
|
|
1852
|
-
|
|
1845
|
+
sym__non_matching_child,
|
|
1853
1846
|
sym_field_constraint,
|
|
1854
1847
|
sym_negated_field,
|
|
1855
1848
|
sym_predicate,
|
|
@@ -1894,7 +1887,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1894
1887
|
sym_pattern,
|
|
1895
1888
|
sym__matching_child_pattern,
|
|
1896
1889
|
sym__call_only_child_pattern,
|
|
1897
|
-
|
|
1890
|
+
sym__non_matching_child,
|
|
1898
1891
|
sym_field_constraint,
|
|
1899
1892
|
sym_negated_field,
|
|
1900
1893
|
sym_predicate,
|
|
@@ -1939,7 +1932,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1939
1932
|
sym_pattern,
|
|
1940
1933
|
sym__matching_child_pattern,
|
|
1941
1934
|
sym__call_only_child_pattern,
|
|
1942
|
-
|
|
1935
|
+
sym__non_matching_child,
|
|
1943
1936
|
sym_field_constraint,
|
|
1944
1937
|
sym_negated_field,
|
|
1945
1938
|
sym_predicate,
|
|
@@ -1979,8 +1972,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
1979
1972
|
STATE(15), 10,
|
|
1980
1973
|
sym__member,
|
|
1981
1974
|
sym__call,
|
|
1975
|
+
sym__call_only_member,
|
|
1982
1976
|
sym_pattern,
|
|
1983
|
-
sym__child_pattern,
|
|
1984
1977
|
sym__matching_child_pattern,
|
|
1985
1978
|
sym__call_only_child_pattern,
|
|
1986
1979
|
sym_field_constraint,
|
|
@@ -2021,8 +2014,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2021
2014
|
STATE(21), 10,
|
|
2022
2015
|
sym__member,
|
|
2023
2016
|
sym__call,
|
|
2017
|
+
sym__call_only_member,
|
|
2024
2018
|
sym_pattern,
|
|
2025
|
-
sym__child_pattern,
|
|
2026
2019
|
sym__matching_child_pattern,
|
|
2027
2020
|
sym__call_only_child_pattern,
|
|
2028
2021
|
sym_field_constraint,
|
|
@@ -2063,8 +2056,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2063
2056
|
STATE(21), 10,
|
|
2064
2057
|
sym__member,
|
|
2065
2058
|
sym__call,
|
|
2059
|
+
sym__call_only_member,
|
|
2066
2060
|
sym_pattern,
|
|
2067
|
-
sym__child_pattern,
|
|
2068
2061
|
sym__matching_child_pattern,
|
|
2069
2062
|
sym__call_only_child_pattern,
|
|
2070
2063
|
sym_field_constraint,
|
|
@@ -2105,8 +2098,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2105
2098
|
STATE(18), 10,
|
|
2106
2099
|
sym__member,
|
|
2107
2100
|
sym__call,
|
|
2101
|
+
sym__call_only_member,
|
|
2108
2102
|
sym_pattern,
|
|
2109
|
-
sym__child_pattern,
|
|
2110
2103
|
sym__matching_child_pattern,
|
|
2111
2104
|
sym__call_only_child_pattern,
|
|
2112
2105
|
sym_field_constraint,
|
|
@@ -2147,8 +2140,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2147
2140
|
STATE(19), 10,
|
|
2148
2141
|
sym__member,
|
|
2149
2142
|
sym__call,
|
|
2143
|
+
sym__call_only_member,
|
|
2150
2144
|
sym_pattern,
|
|
2151
|
-
sym__child_pattern,
|
|
2152
2145
|
sym__matching_child_pattern,
|
|
2153
2146
|
sym__call_only_child_pattern,
|
|
2154
2147
|
sym_field_constraint,
|
|
@@ -2189,8 +2182,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2189
2182
|
STATE(21), 10,
|
|
2190
2183
|
sym__member,
|
|
2191
2184
|
sym__call,
|
|
2185
|
+
sym__call_only_member,
|
|
2192
2186
|
sym_pattern,
|
|
2193
|
-
sym__child_pattern,
|
|
2194
2187
|
sym__matching_child_pattern,
|
|
2195
2188
|
sym__call_only_child_pattern,
|
|
2196
2189
|
sym_field_constraint,
|
|
@@ -2231,8 +2224,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2231
2224
|
STATE(21), 10,
|
|
2232
2225
|
sym__member,
|
|
2233
2226
|
sym__call,
|
|
2227
|
+
sym__call_only_member,
|
|
2234
2228
|
sym_pattern,
|
|
2235
|
-
sym__child_pattern,
|
|
2236
2229
|
sym__matching_child_pattern,
|
|
2237
2230
|
sym__call_only_child_pattern,
|
|
2238
2231
|
sym_field_constraint,
|
|
@@ -2273,8 +2266,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2273
2266
|
STATE(14), 10,
|
|
2274
2267
|
sym__member,
|
|
2275
2268
|
sym__call,
|
|
2269
|
+
sym__call_only_member,
|
|
2276
2270
|
sym_pattern,
|
|
2277
|
-
sym__child_pattern,
|
|
2278
2271
|
sym__matching_child_pattern,
|
|
2279
2272
|
sym__call_only_child_pattern,
|
|
2280
2273
|
sym_field_constraint,
|
|
@@ -2315,8 +2308,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2315
2308
|
STATE(21), 10,
|
|
2316
2309
|
sym__member,
|
|
2317
2310
|
sym__call,
|
|
2311
|
+
sym__call_only_member,
|
|
2318
2312
|
sym_pattern,
|
|
2319
|
-
sym__child_pattern,
|
|
2320
2313
|
sym__matching_child_pattern,
|
|
2321
2314
|
sym__call_only_child_pattern,
|
|
2322
2315
|
sym_field_constraint,
|
|
@@ -2355,8 +2348,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2355
2348
|
STATE(24), 10,
|
|
2356
2349
|
sym__member,
|
|
2357
2350
|
sym__call,
|
|
2351
|
+
sym__call_only_member,
|
|
2358
2352
|
sym_pattern,
|
|
2359
|
-
sym__child_pattern,
|
|
2360
2353
|
sym__matching_child_pattern,
|
|
2361
2354
|
sym__call_only_child_pattern,
|
|
2362
2355
|
sym_field_constraint,
|
|
@@ -2395,8 +2388,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2395
2388
|
STATE(22), 10,
|
|
2396
2389
|
sym__member,
|
|
2397
2390
|
sym__call,
|
|
2391
|
+
sym__call_only_member,
|
|
2398
2392
|
sym_pattern,
|
|
2399
|
-
sym__child_pattern,
|
|
2400
2393
|
sym__matching_child_pattern,
|
|
2401
2394
|
sym__call_only_child_pattern,
|
|
2402
2395
|
sym_field_constraint,
|
|
@@ -2435,8 +2428,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2435
2428
|
STATE(24), 10,
|
|
2436
2429
|
sym__member,
|
|
2437
2430
|
sym__call,
|
|
2431
|
+
sym__call_only_member,
|
|
2438
2432
|
sym_pattern,
|
|
2439
|
-
sym__child_pattern,
|
|
2440
2433
|
sym__matching_child_pattern,
|
|
2441
2434
|
sym__call_only_child_pattern,
|
|
2442
2435
|
sym_field_constraint,
|
|
@@ -2475,8 +2468,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2475
2468
|
STATE(24), 10,
|
|
2476
2469
|
sym__member,
|
|
2477
2470
|
sym__call,
|
|
2471
|
+
sym__call_only_member,
|
|
2478
2472
|
sym_pattern,
|
|
2479
|
-
sym__child_pattern,
|
|
2480
2473
|
sym__matching_child_pattern,
|
|
2481
2474
|
sym__call_only_child_pattern,
|
|
2482
2475
|
sym_field_constraint,
|
|
@@ -2517,8 +2510,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2517
2510
|
STATE(26), 9,
|
|
2518
2511
|
sym__member,
|
|
2519
2512
|
sym__call,
|
|
2513
|
+
sym__call_only_member,
|
|
2520
2514
|
sym_pattern,
|
|
2521
|
-
sym__child_pattern,
|
|
2522
2515
|
sym__matching_child_pattern,
|
|
2523
2516
|
sym__call_only_child_pattern,
|
|
2524
2517
|
sym_field_constraint,
|
|
@@ -2598,8 +2591,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2598
2591
|
STATE(25), 10,
|
|
2599
2592
|
sym__member,
|
|
2600
2593
|
sym__call,
|
|
2594
|
+
sym__call_only_member,
|
|
2601
2595
|
sym_pattern,
|
|
2602
|
-
sym__child_pattern,
|
|
2603
2596
|
sym__matching_child_pattern,
|
|
2604
2597
|
sym__call_only_child_pattern,
|
|
2605
2598
|
sym_field_constraint,
|
|
@@ -2874,8 +2867,8 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
2874
2867
|
STATE(115), 9,
|
|
2875
2868
|
sym__member,
|
|
2876
2869
|
sym__call,
|
|
2870
|
+
sym__call_only_member,
|
|
2877
2871
|
sym_pattern,
|
|
2878
|
-
sym__child_pattern,
|
|
2879
2872
|
sym__matching_child_pattern,
|
|
2880
2873
|
sym__call_only_child_pattern,
|
|
2881
2874
|
sym_field_constraint,
|
|
@@ -3085,7 +3078,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
3085
3078
|
ACTIONS(145), 1,
|
|
3086
3079
|
sym_identifier,
|
|
3087
3080
|
STATE(13), 1,
|
|
3088
|
-
|
|
3081
|
+
sym__group_start_pattern,
|
|
3089
3082
|
STATE(112), 1,
|
|
3090
3083
|
sym__call_only_pattern,
|
|
3091
3084
|
STATE(142), 1,
|
|
@@ -3160,7 +3153,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
3160
3153
|
ACTIONS(145), 1,
|
|
3161
3154
|
sym_identifier,
|
|
3162
3155
|
STATE(13), 1,
|
|
3163
|
-
|
|
3156
|
+
sym__group_start_pattern,
|
|
3164
3157
|
STATE(112), 1,
|
|
3165
3158
|
sym__call_only_pattern,
|
|
3166
3159
|
STATE(142), 1,
|
|
@@ -3211,7 +3204,7 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
3211
3204
|
sym__call,
|
|
3212
3205
|
sym__call_only_member,
|
|
3213
3206
|
sym__call_only_child_pattern,
|
|
3214
|
-
|
|
3207
|
+
sym__non_matching_child,
|
|
3215
3208
|
sym_negated_field,
|
|
3216
3209
|
sym_predicate,
|
|
3217
3210
|
sym_directive,
|
|
@@ -5099,10 +5092,10 @@ static const TSParseActionEntry ts_parse_actions[] = {
|
|
|
5099
5092
|
[319] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_node_pattern, 8, 0, 10),
|
|
5100
5093
|
[321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_pattern_repeat1, 1, 0, 5),
|
|
5101
5094
|
[323] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_pattern_repeat1, 1, 0, 5),
|
|
5102
|
-
[325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(
|
|
5103
|
-
[327] = {.entry = {.count = 1, .reusable = false}}, REDUCE(
|
|
5104
|
-
[329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(
|
|
5105
|
-
[331] = {.entry = {.count = 1, .reusable = false}}, REDUCE(
|
|
5095
|
+
[325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__group_start_pattern, 2, 0, 6),
|
|
5096
|
+
[327] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__group_start_pattern, 2, 0, 6),
|
|
5097
|
+
[329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__group_start_pattern, 1, 0, 1),
|
|
5098
|
+
[331] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__group_start_pattern, 1, 0, 1),
|
|
5106
5099
|
[333] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive, 6, 0, 19),
|
|
5107
5100
|
[335] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive, 6, 0, 19),
|
|
5108
5101
|
[337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_predicate, 6, 0, 19),
|
|
@@ -5146,8 +5139,8 @@ static const TSParseActionEntry ts_parse_actions[] = {
|
|
|
5146
5139
|
[417] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_negated_field, 2, 0, 13),
|
|
5147
5140
|
[419] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_supertype, 3, 0, 15),
|
|
5148
5141
|
[421] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_supertype, 3, 0, 15),
|
|
5149
|
-
[423] = {.entry = {.count = 1, .reusable = true}}, REDUCE(
|
|
5150
|
-
[425] = {.entry = {.count = 1, .reusable = false}}, REDUCE(
|
|
5142
|
+
[423] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__non_matching_child, 2, 0, 0),
|
|
5143
|
+
[425] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__non_matching_child, 2, 0, 0),
|
|
5151
5144
|
[427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
|
|
5152
5145
|
[429] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_supertype, 3, 0, 16),
|
|
5153
5146
|
[431] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_supertype, 3, 0, 16),
|
|
@@ -5240,7 +5233,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_query(void) {
|
|
|
5240
5233
|
.metadata = {
|
|
5241
5234
|
.major_version = 0,
|
|
5242
5235
|
.minor_version = 3,
|
|
5243
|
-
.patch_version =
|
|
5236
|
+
.patch_version = 2,
|
|
5244
5237
|
},
|
|
5245
5238
|
};
|
|
5246
5239
|
return &language;
|