@konomanoasa/tree-sitter-gitattributes 0.3.0 → 0.4.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/Cargo.toml +1 -1
- package/README.md +4 -5
- package/grammar.js +40 -40
- package/package.json +2 -2
- package/src/grammar.json +158 -108
- package/src/node-types.json +4 -0
- package/src/parser.c +2539 -2436
- package/src/scanner.c +236 -275
- package/test/bindings.test.rs +0 -13
- package/tree-sitter.json +1 -1
package/src/grammar.json
CHANGED
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"type": "ALIAS",
|
|
210
210
|
"content": {
|
|
211
211
|
"type": "SYMBOL",
|
|
212
|
-
"name": "
|
|
212
|
+
"name": "_missing_attribute_name_issue"
|
|
213
213
|
},
|
|
214
214
|
"named": true,
|
|
215
215
|
"value": "syntax_issue"
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
"type": "ALIAS",
|
|
223
223
|
"content": {
|
|
224
224
|
"type": "SYMBOL",
|
|
225
|
-
"name": "
|
|
225
|
+
"name": "_incomplete_attribute_name_issue"
|
|
226
226
|
},
|
|
227
227
|
"named": true,
|
|
228
228
|
"value": "syntax_issue"
|
|
@@ -247,30 +247,35 @@
|
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
"type": "
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"name": "issue",
|
|
265
|
-
"content": {
|
|
266
|
-
"type": "ALIAS",
|
|
267
|
-
"content": {
|
|
268
|
-
"type": "SYMBOL",
|
|
269
|
-
"name": "_incomplete_quote_issue"
|
|
250
|
+
"type": "CHOICE",
|
|
251
|
+
"members": [
|
|
252
|
+
{
|
|
253
|
+
"type": "FIELD",
|
|
254
|
+
"name": "issue",
|
|
255
|
+
"content": {
|
|
256
|
+
"type": "ALIAS",
|
|
257
|
+
"content": {
|
|
258
|
+
"type": "SYMBOL",
|
|
259
|
+
"name": "_missing_quote_close_issue"
|
|
260
|
+
},
|
|
261
|
+
"named": true,
|
|
262
|
+
"value": "syntax_issue"
|
|
263
|
+
}
|
|
270
264
|
},
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
265
|
+
{
|
|
266
|
+
"type": "FIELD",
|
|
267
|
+
"name": "issue",
|
|
268
|
+
"content": {
|
|
269
|
+
"type": "ALIAS",
|
|
270
|
+
"content": {
|
|
271
|
+
"type": "SYMBOL",
|
|
272
|
+
"name": "_incomplete_quote_close_issue"
|
|
273
|
+
},
|
|
274
|
+
"named": true,
|
|
275
|
+
"value": "syntax_issue"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
]
|
|
274
279
|
}
|
|
275
280
|
]
|
|
276
281
|
},
|
|
@@ -316,7 +321,7 @@
|
|
|
316
321
|
"type": "ALIAS",
|
|
317
322
|
"content": {
|
|
318
323
|
"type": "SYMBOL",
|
|
319
|
-
"name": "
|
|
324
|
+
"name": "_missing_attribute_separator_issue"
|
|
320
325
|
},
|
|
321
326
|
"named": true,
|
|
322
327
|
"value": "syntax_issue"
|
|
@@ -384,7 +389,7 @@
|
|
|
384
389
|
"type": "ALIAS",
|
|
385
390
|
"content": {
|
|
386
391
|
"type": "SYMBOL",
|
|
387
|
-
"name": "
|
|
392
|
+
"name": "_missing_attribute_name_issue"
|
|
388
393
|
},
|
|
389
394
|
"named": true,
|
|
390
395
|
"value": "syntax_issue"
|
|
@@ -397,7 +402,7 @@
|
|
|
397
402
|
"type": "ALIAS",
|
|
398
403
|
"content": {
|
|
399
404
|
"type": "SYMBOL",
|
|
400
|
-
"name": "
|
|
405
|
+
"name": "_incomplete_attribute_name_issue"
|
|
401
406
|
},
|
|
402
407
|
"named": true,
|
|
403
408
|
"value": "syntax_issue"
|
|
@@ -496,6 +501,19 @@
|
|
|
496
501
|
"value": "syntax_issue"
|
|
497
502
|
}
|
|
498
503
|
},
|
|
504
|
+
{
|
|
505
|
+
"type": "FIELD",
|
|
506
|
+
"name": "issue",
|
|
507
|
+
"content": {
|
|
508
|
+
"type": "ALIAS",
|
|
509
|
+
"content": {
|
|
510
|
+
"type": "SYMBOL",
|
|
511
|
+
"name": "_incomplete_name_character_issue"
|
|
512
|
+
},
|
|
513
|
+
"named": true,
|
|
514
|
+
"value": "syntax_issue"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
499
517
|
{
|
|
500
518
|
"type": "FIELD",
|
|
501
519
|
"name": "issue",
|
|
@@ -695,7 +713,7 @@
|
|
|
695
713
|
"type": "ALIAS",
|
|
696
714
|
"content": {
|
|
697
715
|
"type": "SYMBOL",
|
|
698
|
-
"name": "
|
|
716
|
+
"name": "_negative_pattern_issue"
|
|
699
717
|
},
|
|
700
718
|
"named": true,
|
|
701
719
|
"value": "syntax_issue"
|
|
@@ -708,7 +726,7 @@
|
|
|
708
726
|
"type": "ALIAS",
|
|
709
727
|
"content": {
|
|
710
728
|
"type": "SYMBOL",
|
|
711
|
-
"name": "
|
|
729
|
+
"name": "_invalid_encoding_issue"
|
|
712
730
|
},
|
|
713
731
|
"named": true,
|
|
714
732
|
"value": "syntax_issue"
|
|
@@ -721,7 +739,7 @@
|
|
|
721
739
|
"type": "ALIAS",
|
|
722
740
|
"content": {
|
|
723
741
|
"type": "SYMBOL",
|
|
724
|
-
"name": "
|
|
742
|
+
"name": "_ended_escape_issue"
|
|
725
743
|
},
|
|
726
744
|
"named": true,
|
|
727
745
|
"value": "syntax_issue"
|
|
@@ -867,30 +885,35 @@
|
|
|
867
885
|
}
|
|
868
886
|
},
|
|
869
887
|
{
|
|
870
|
-
"type": "
|
|
871
|
-
"
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
"
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
"name": "issue",
|
|
885
|
-
"content": {
|
|
886
|
-
"type": "ALIAS",
|
|
887
|
-
"content": {
|
|
888
|
-
"type": "SYMBOL",
|
|
889
|
-
"name": "_incomplete_quote_issue"
|
|
888
|
+
"type": "CHOICE",
|
|
889
|
+
"members": [
|
|
890
|
+
{
|
|
891
|
+
"type": "FIELD",
|
|
892
|
+
"name": "issue",
|
|
893
|
+
"content": {
|
|
894
|
+
"type": "ALIAS",
|
|
895
|
+
"content": {
|
|
896
|
+
"type": "SYMBOL",
|
|
897
|
+
"name": "_missing_quote_close_issue"
|
|
898
|
+
},
|
|
899
|
+
"named": true,
|
|
900
|
+
"value": "syntax_issue"
|
|
901
|
+
}
|
|
890
902
|
},
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
903
|
+
{
|
|
904
|
+
"type": "FIELD",
|
|
905
|
+
"name": "issue",
|
|
906
|
+
"content": {
|
|
907
|
+
"type": "ALIAS",
|
|
908
|
+
"content": {
|
|
909
|
+
"type": "SYMBOL",
|
|
910
|
+
"name": "_incomplete_quote_close_issue"
|
|
911
|
+
},
|
|
912
|
+
"named": true,
|
|
913
|
+
"value": "syntax_issue"
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
]
|
|
894
917
|
}
|
|
895
918
|
]
|
|
896
919
|
},
|
|
@@ -988,7 +1011,7 @@
|
|
|
988
1011
|
"type": "ALIAS",
|
|
989
1012
|
"content": {
|
|
990
1013
|
"type": "SYMBOL",
|
|
991
|
-
"name": "
|
|
1014
|
+
"name": "_ended_escape_issue"
|
|
992
1015
|
},
|
|
993
1016
|
"named": true,
|
|
994
1017
|
"value": "syntax_issue"
|
|
@@ -1129,30 +1152,35 @@
|
|
|
1129
1152
|
}
|
|
1130
1153
|
},
|
|
1131
1154
|
{
|
|
1132
|
-
"type": "
|
|
1133
|
-
"
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
"
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
"name": "issue",
|
|
1147
|
-
"content": {
|
|
1148
|
-
"type": "ALIAS",
|
|
1149
|
-
"content": {
|
|
1150
|
-
"type": "SYMBOL",
|
|
1151
|
-
"name": "_incomplete_set_close_issue"
|
|
1155
|
+
"type": "CHOICE",
|
|
1156
|
+
"members": [
|
|
1157
|
+
{
|
|
1158
|
+
"type": "FIELD",
|
|
1159
|
+
"name": "issue",
|
|
1160
|
+
"content": {
|
|
1161
|
+
"type": "ALIAS",
|
|
1162
|
+
"content": {
|
|
1163
|
+
"type": "SYMBOL",
|
|
1164
|
+
"name": "_missing_set_close_issue"
|
|
1165
|
+
},
|
|
1166
|
+
"named": true,
|
|
1167
|
+
"value": "syntax_issue"
|
|
1168
|
+
}
|
|
1152
1169
|
},
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1170
|
+
{
|
|
1171
|
+
"type": "FIELD",
|
|
1172
|
+
"name": "issue",
|
|
1173
|
+
"content": {
|
|
1174
|
+
"type": "ALIAS",
|
|
1175
|
+
"content": {
|
|
1176
|
+
"type": "SYMBOL",
|
|
1177
|
+
"name": "_incomplete_set_close_issue"
|
|
1178
|
+
},
|
|
1179
|
+
"named": true,
|
|
1180
|
+
"value": "syntax_issue"
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
]
|
|
1156
1184
|
}
|
|
1157
1185
|
]
|
|
1158
1186
|
}
|
|
@@ -1408,20 +1436,20 @@
|
|
|
1408
1436
|
"named": true,
|
|
1409
1437
|
"value": "invalid_syntax"
|
|
1410
1438
|
},
|
|
1411
|
-
"
|
|
1439
|
+
"_ended_escape_outcome": {
|
|
1412
1440
|
"type": "ALIAS",
|
|
1413
1441
|
"content": {
|
|
1414
1442
|
"type": "SYMBOL",
|
|
1415
|
-
"name": "
|
|
1443
|
+
"name": "_ended_escape"
|
|
1416
1444
|
},
|
|
1417
1445
|
"named": true,
|
|
1418
1446
|
"value": "incomplete_escape"
|
|
1419
1447
|
},
|
|
1420
|
-
"
|
|
1448
|
+
"_ended_escape_issue": {
|
|
1421
1449
|
"type": "ALIAS",
|
|
1422
1450
|
"content": {
|
|
1423
1451
|
"type": "SYMBOL",
|
|
1424
|
-
"name": "
|
|
1452
|
+
"name": "_ended_escape_outcome"
|
|
1425
1453
|
},
|
|
1426
1454
|
"named": true,
|
|
1427
1455
|
"value": "invalid_syntax"
|
|
@@ -1498,92 +1526,92 @@
|
|
|
1498
1526
|
"named": true,
|
|
1499
1527
|
"value": "incomplete_syntax"
|
|
1500
1528
|
},
|
|
1501
|
-
"
|
|
1529
|
+
"_missing_quote_close_outcome": {
|
|
1502
1530
|
"type": "ALIAS",
|
|
1503
1531
|
"content": {
|
|
1504
1532
|
"type": "SYMBOL",
|
|
1505
|
-
"name": "
|
|
1533
|
+
"name": "_missing_quote_close"
|
|
1506
1534
|
},
|
|
1507
1535
|
"named": true,
|
|
1508
1536
|
"value": "missing_quote_close"
|
|
1509
1537
|
},
|
|
1510
|
-
"
|
|
1538
|
+
"_missing_quote_close_issue": {
|
|
1511
1539
|
"type": "ALIAS",
|
|
1512
1540
|
"content": {
|
|
1513
1541
|
"type": "SYMBOL",
|
|
1514
|
-
"name": "
|
|
1542
|
+
"name": "_missing_quote_close_outcome"
|
|
1515
1543
|
},
|
|
1516
1544
|
"named": true,
|
|
1517
1545
|
"value": "invalid_syntax"
|
|
1518
1546
|
},
|
|
1519
|
-
"
|
|
1547
|
+
"_incomplete_quote_close_outcome": {
|
|
1520
1548
|
"type": "ALIAS",
|
|
1521
1549
|
"content": {
|
|
1522
1550
|
"type": "SYMBOL",
|
|
1523
|
-
"name": "
|
|
1551
|
+
"name": "_incomplete_quote_close"
|
|
1524
1552
|
},
|
|
1525
1553
|
"named": true,
|
|
1526
1554
|
"value": "missing_quote_close"
|
|
1527
1555
|
},
|
|
1528
|
-
"
|
|
1556
|
+
"_incomplete_quote_close_issue": {
|
|
1529
1557
|
"type": "ALIAS",
|
|
1530
1558
|
"content": {
|
|
1531
1559
|
"type": "SYMBOL",
|
|
1532
|
-
"name": "
|
|
1560
|
+
"name": "_incomplete_quote_close_outcome"
|
|
1533
1561
|
},
|
|
1534
1562
|
"named": true,
|
|
1535
1563
|
"value": "incomplete_syntax"
|
|
1536
1564
|
},
|
|
1537
|
-
"
|
|
1565
|
+
"_missing_attribute_separator_outcome": {
|
|
1538
1566
|
"type": "ALIAS",
|
|
1539
1567
|
"content": {
|
|
1540
1568
|
"type": "SYMBOL",
|
|
1541
|
-
"name": "
|
|
1569
|
+
"name": "_missing_attribute_separator"
|
|
1542
1570
|
},
|
|
1543
1571
|
"named": true,
|
|
1544
1572
|
"value": "missing_attribute_separator"
|
|
1545
1573
|
},
|
|
1546
|
-
"
|
|
1574
|
+
"_missing_attribute_separator_issue": {
|
|
1547
1575
|
"type": "ALIAS",
|
|
1548
1576
|
"content": {
|
|
1549
1577
|
"type": "SYMBOL",
|
|
1550
|
-
"name": "
|
|
1578
|
+
"name": "_missing_attribute_separator_outcome"
|
|
1551
1579
|
},
|
|
1552
1580
|
"named": true,
|
|
1553
1581
|
"value": "invalid_syntax"
|
|
1554
1582
|
},
|
|
1555
|
-
"
|
|
1583
|
+
"_missing_attribute_name_outcome": {
|
|
1556
1584
|
"type": "ALIAS",
|
|
1557
1585
|
"content": {
|
|
1558
1586
|
"type": "SYMBOL",
|
|
1559
|
-
"name": "
|
|
1587
|
+
"name": "_missing_attribute_name"
|
|
1560
1588
|
},
|
|
1561
1589
|
"named": true,
|
|
1562
1590
|
"value": "missing_attribute_name"
|
|
1563
1591
|
},
|
|
1564
|
-
"
|
|
1592
|
+
"_missing_attribute_name_issue": {
|
|
1565
1593
|
"type": "ALIAS",
|
|
1566
1594
|
"content": {
|
|
1567
1595
|
"type": "SYMBOL",
|
|
1568
|
-
"name": "
|
|
1596
|
+
"name": "_missing_attribute_name_outcome"
|
|
1569
1597
|
},
|
|
1570
1598
|
"named": true,
|
|
1571
1599
|
"value": "invalid_syntax"
|
|
1572
1600
|
},
|
|
1573
|
-
"
|
|
1601
|
+
"_incomplete_attribute_name_outcome": {
|
|
1574
1602
|
"type": "ALIAS",
|
|
1575
1603
|
"content": {
|
|
1576
1604
|
"type": "SYMBOL",
|
|
1577
|
-
"name": "
|
|
1605
|
+
"name": "_incomplete_attribute_name"
|
|
1578
1606
|
},
|
|
1579
1607
|
"named": true,
|
|
1580
1608
|
"value": "missing_attribute_name"
|
|
1581
1609
|
},
|
|
1582
|
-
"
|
|
1610
|
+
"_incomplete_attribute_name_issue": {
|
|
1583
1611
|
"type": "ALIAS",
|
|
1584
1612
|
"content": {
|
|
1585
1613
|
"type": "SYMBOL",
|
|
1586
|
-
"name": "
|
|
1614
|
+
"name": "_incomplete_attribute_name_outcome"
|
|
1587
1615
|
},
|
|
1588
1616
|
"named": true,
|
|
1589
1617
|
"value": "incomplete_syntax"
|
|
@@ -1606,6 +1634,24 @@
|
|
|
1606
1634
|
"named": true,
|
|
1607
1635
|
"value": "invalid_syntax"
|
|
1608
1636
|
},
|
|
1637
|
+
"_incomplete_name_character_outcome": {
|
|
1638
|
+
"type": "ALIAS",
|
|
1639
|
+
"content": {
|
|
1640
|
+
"type": "SYMBOL",
|
|
1641
|
+
"name": "_incomplete_name_character"
|
|
1642
|
+
},
|
|
1643
|
+
"named": true,
|
|
1644
|
+
"value": "invalid_name_character"
|
|
1645
|
+
},
|
|
1646
|
+
"_incomplete_name_character_issue": {
|
|
1647
|
+
"type": "ALIAS",
|
|
1648
|
+
"content": {
|
|
1649
|
+
"type": "SYMBOL",
|
|
1650
|
+
"name": "_incomplete_name_character_outcome"
|
|
1651
|
+
},
|
|
1652
|
+
"named": true,
|
|
1653
|
+
"value": "incomplete_syntax"
|
|
1654
|
+
},
|
|
1609
1655
|
"_invalid_name_escape_reason": {
|
|
1610
1656
|
"type": "ALIAS",
|
|
1611
1657
|
"content": {
|
|
@@ -1844,7 +1890,7 @@
|
|
|
1844
1890
|
},
|
|
1845
1891
|
{
|
|
1846
1892
|
"type": "SYMBOL",
|
|
1847
|
-
"name": "
|
|
1893
|
+
"name": "_ended_escape"
|
|
1848
1894
|
},
|
|
1849
1895
|
{
|
|
1850
1896
|
"type": "SYMBOL",
|
|
@@ -1864,28 +1910,32 @@
|
|
|
1864
1910
|
},
|
|
1865
1911
|
{
|
|
1866
1912
|
"type": "SYMBOL",
|
|
1867
|
-
"name": "
|
|
1913
|
+
"name": "_missing_quote_close"
|
|
1868
1914
|
},
|
|
1869
1915
|
{
|
|
1870
1916
|
"type": "SYMBOL",
|
|
1871
|
-
"name": "
|
|
1917
|
+
"name": "_incomplete_quote_close"
|
|
1872
1918
|
},
|
|
1873
1919
|
{
|
|
1874
1920
|
"type": "SYMBOL",
|
|
1875
|
-
"name": "
|
|
1921
|
+
"name": "_missing_attribute_separator"
|
|
1876
1922
|
},
|
|
1877
1923
|
{
|
|
1878
1924
|
"type": "SYMBOL",
|
|
1879
|
-
"name": "
|
|
1925
|
+
"name": "_missing_attribute_name"
|
|
1880
1926
|
},
|
|
1881
1927
|
{
|
|
1882
1928
|
"type": "SYMBOL",
|
|
1883
|
-
"name": "
|
|
1929
|
+
"name": "_incomplete_attribute_name"
|
|
1884
1930
|
},
|
|
1885
1931
|
{
|
|
1886
1932
|
"type": "SYMBOL",
|
|
1887
1933
|
"name": "_invalid_name_character"
|
|
1888
1934
|
},
|
|
1935
|
+
{
|
|
1936
|
+
"type": "SYMBOL",
|
|
1937
|
+
"name": "_incomplete_name_character"
|
|
1938
|
+
},
|
|
1889
1939
|
{
|
|
1890
1940
|
"type": "SYMBOL",
|
|
1891
1941
|
"name": "_invalid_name_escape"
|