@gram-data/tree-sitter-gram 0.2.5 → 0.2.6

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.
@@ -1,6 +1,6 @@
1
1
  id = "gram"
2
2
  name = "Gram Language Support"
3
- version = "0.2.5"
3
+ version = "0.2.6"
4
4
  schema_version = 1
5
5
  authors = ["Gram Data Contributors"]
6
6
  description = "Support for Gram notation - a subject-oriented notation for structured data"
@@ -8,4 +8,4 @@ description = "Support for Gram notation - a subject-oriented notation for struc
8
8
  # path = "grammars/tree-sitter-gram"
9
9
  [grammars.gram]
10
10
  repository = "https://github.com/gram-data/tree-sitter-gram"
11
- rev = "84ec592d27a13267097d83e94932de3e024ea808"
11
+ rev = "7385463cf814f2e880e99c3e1372b4c0765820ad"
@@ -49,14 +49,6 @@
49
49
  ; Annotation keys
50
50
  (annotation key: (symbol) @attribute)
51
51
 
52
- ; Annotations inside relationship arrows
53
- [
54
- (right_arrow annotations: (annotations) @attribute)
55
- (left_arrow annotations: (annotations) @attribute)
56
- (undirected_arrow annotations: (annotations) @attribute)
57
- (bidirectional_arrow annotations: (annotations) @attribute)
58
- ]
59
-
60
52
  ; Bracket notation (special highlighting)
61
53
  (subject_pattern) @type
62
54
 
package/grammar.js CHANGED
@@ -230,7 +230,6 @@ module.exports = grammar({
230
230
  optional(
231
231
  seq(
232
232
  "[",
233
- field("annotations", optional($.annotations)),
234
233
  field("subject", optional($._subject)),
235
234
  "]",
236
235
  ),
@@ -242,7 +241,6 @@ module.exports = grammar({
242
241
  optional(
243
242
  seq(
244
243
  "[",
245
- field("annotations", optional($.annotations)),
246
244
  field("subject", optional($._subject)),
247
245
  "]",
248
246
  ),
@@ -254,7 +252,6 @@ module.exports = grammar({
254
252
  optional(
255
253
  seq(
256
254
  "[",
257
- field("annotations", optional($.annotations)),
258
255
  field("subject", optional($._subject)),
259
256
  "]",
260
257
  ),
@@ -270,7 +267,6 @@ module.exports = grammar({
270
267
  optional(
271
268
  seq(
272
269
  "[",
273
- field("annotations", optional($.annotations)),
274
270
  field("subject", optional($._subject)),
275
271
  "]",
276
272
  ),
@@ -282,7 +278,6 @@ module.exports = grammar({
282
278
  optional(
283
279
  seq(
284
280
  "[",
285
- field("annotations", optional($.annotations)),
286
281
  field("subject", optional($._subject)),
287
282
  "]",
288
283
  ),
@@ -294,7 +289,6 @@ module.exports = grammar({
294
289
  optional(
295
290
  seq(
296
291
  "[",
297
- field("annotations", optional($.annotations)),
298
292
  field("subject", optional($._subject)),
299
293
  "]",
300
294
  ),
@@ -310,7 +304,6 @@ module.exports = grammar({
310
304
  optional(
311
305
  seq(
312
306
  "[",
313
- field("annotations", optional($.annotations)),
314
307
  field("subject", optional($._subject)),
315
308
  "]",
316
309
  ),
@@ -322,7 +315,6 @@ module.exports = grammar({
322
315
  optional(
323
316
  seq(
324
317
  "[",
325
- field("annotations", optional($.annotations)),
326
318
  field("subject", optional($._subject)),
327
319
  "]",
328
320
  ),
@@ -334,7 +326,6 @@ module.exports = grammar({
334
326
  optional(
335
327
  seq(
336
328
  "[",
337
- field("annotations", optional($.annotations)),
338
329
  field("subject", optional($._subject)),
339
330
  "]",
340
331
  ),
@@ -350,7 +341,6 @@ module.exports = grammar({
350
341
  optional(
351
342
  seq(
352
343
  "[",
353
- field("annotations", optional($.annotations)),
354
344
  field("subject", optional($._subject)),
355
345
  "]",
356
346
  ),
@@ -362,7 +352,6 @@ module.exports = grammar({
362
352
  optional(
363
353
  seq(
364
354
  "[",
365
- field("annotations", optional($.annotations)),
366
355
  field("subject", optional($._subject)),
367
356
  "]",
368
357
  ),
@@ -374,7 +363,6 @@ module.exports = grammar({
374
363
  optional(
375
364
  seq(
376
365
  "[",
377
- field("annotations", optional($.annotations)),
378
366
  field("subject", optional($._subject)),
379
367
  "]",
380
368
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gram-data/tree-sitter-gram",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "subject-oriented notation for structured data",
5
5
  "homepage": "https://gram-data.github.io",
6
6
  "repository": {
@@ -49,14 +49,6 @@
49
49
  ; Annotation keys
50
50
  (annotation key: (symbol) @attribute)
51
51
 
52
- ; Annotations inside relationship arrows
53
- [
54
- (right_arrow annotations: (annotations) @attribute)
55
- (left_arrow annotations: (annotations) @attribute)
56
- (undirected_arrow annotations: (annotations) @attribute)
57
- (bidirectional_arrow annotations: (annotations) @attribute)
58
- ]
59
-
60
52
  ; Bracket notation (special highlighting)
61
53
  (subject_pattern) @type
62
54
 
package/src/grammar.json CHANGED
@@ -1219,22 +1219,6 @@
1219
1219
  "type": "STRING",
1220
1220
  "value": "["
1221
1221
  },
1222
- {
1223
- "type": "FIELD",
1224
- "name": "annotations",
1225
- "content": {
1226
- "type": "CHOICE",
1227
- "members": [
1228
- {
1229
- "type": "SYMBOL",
1230
- "name": "annotations"
1231
- },
1232
- {
1233
- "type": "BLANK"
1234
- }
1235
- ]
1236
- }
1237
- },
1238
1222
  {
1239
1223
  "type": "FIELD",
1240
1224
  "name": "subject",
@@ -1285,22 +1269,6 @@
1285
1269
  "type": "STRING",
1286
1270
  "value": "["
1287
1271
  },
1288
- {
1289
- "type": "FIELD",
1290
- "name": "annotations",
1291
- "content": {
1292
- "type": "CHOICE",
1293
- "members": [
1294
- {
1295
- "type": "SYMBOL",
1296
- "name": "annotations"
1297
- },
1298
- {
1299
- "type": "BLANK"
1300
- }
1301
- ]
1302
- }
1303
- },
1304
1272
  {
1305
1273
  "type": "FIELD",
1306
1274
  "name": "subject",
@@ -1351,22 +1319,6 @@
1351
1319
  "type": "STRING",
1352
1320
  "value": "["
1353
1321
  },
1354
- {
1355
- "type": "FIELD",
1356
- "name": "annotations",
1357
- "content": {
1358
- "type": "CHOICE",
1359
- "members": [
1360
- {
1361
- "type": "SYMBOL",
1362
- "name": "annotations"
1363
- },
1364
- {
1365
- "type": "BLANK"
1366
- }
1367
- ]
1368
- }
1369
- },
1370
1322
  {
1371
1323
  "type": "FIELD",
1372
1324
  "name": "subject",
@@ -1422,22 +1374,6 @@
1422
1374
  "type": "STRING",
1423
1375
  "value": "["
1424
1376
  },
1425
- {
1426
- "type": "FIELD",
1427
- "name": "annotations",
1428
- "content": {
1429
- "type": "CHOICE",
1430
- "members": [
1431
- {
1432
- "type": "SYMBOL",
1433
- "name": "annotations"
1434
- },
1435
- {
1436
- "type": "BLANK"
1437
- }
1438
- ]
1439
- }
1440
- },
1441
1377
  {
1442
1378
  "type": "FIELD",
1443
1379
  "name": "subject",
@@ -1488,22 +1424,6 @@
1488
1424
  "type": "STRING",
1489
1425
  "value": "["
1490
1426
  },
1491
- {
1492
- "type": "FIELD",
1493
- "name": "annotations",
1494
- "content": {
1495
- "type": "CHOICE",
1496
- "members": [
1497
- {
1498
- "type": "SYMBOL",
1499
- "name": "annotations"
1500
- },
1501
- {
1502
- "type": "BLANK"
1503
- }
1504
- ]
1505
- }
1506
- },
1507
1427
  {
1508
1428
  "type": "FIELD",
1509
1429
  "name": "subject",
@@ -1554,22 +1474,6 @@
1554
1474
  "type": "STRING",
1555
1475
  "value": "["
1556
1476
  },
1557
- {
1558
- "type": "FIELD",
1559
- "name": "annotations",
1560
- "content": {
1561
- "type": "CHOICE",
1562
- "members": [
1563
- {
1564
- "type": "SYMBOL",
1565
- "name": "annotations"
1566
- },
1567
- {
1568
- "type": "BLANK"
1569
- }
1570
- ]
1571
- }
1572
- },
1573
1477
  {
1574
1478
  "type": "FIELD",
1575
1479
  "name": "subject",
@@ -1625,22 +1529,6 @@
1625
1529
  "type": "STRING",
1626
1530
  "value": "["
1627
1531
  },
1628
- {
1629
- "type": "FIELD",
1630
- "name": "annotations",
1631
- "content": {
1632
- "type": "CHOICE",
1633
- "members": [
1634
- {
1635
- "type": "SYMBOL",
1636
- "name": "annotations"
1637
- },
1638
- {
1639
- "type": "BLANK"
1640
- }
1641
- ]
1642
- }
1643
- },
1644
1532
  {
1645
1533
  "type": "FIELD",
1646
1534
  "name": "subject",
@@ -1691,22 +1579,6 @@
1691
1579
  "type": "STRING",
1692
1580
  "value": "["
1693
1581
  },
1694
- {
1695
- "type": "FIELD",
1696
- "name": "annotations",
1697
- "content": {
1698
- "type": "CHOICE",
1699
- "members": [
1700
- {
1701
- "type": "SYMBOL",
1702
- "name": "annotations"
1703
- },
1704
- {
1705
- "type": "BLANK"
1706
- }
1707
- ]
1708
- }
1709
- },
1710
1582
  {
1711
1583
  "type": "FIELD",
1712
1584
  "name": "subject",
@@ -1757,22 +1629,6 @@
1757
1629
  "type": "STRING",
1758
1630
  "value": "["
1759
1631
  },
1760
- {
1761
- "type": "FIELD",
1762
- "name": "annotations",
1763
- "content": {
1764
- "type": "CHOICE",
1765
- "members": [
1766
- {
1767
- "type": "SYMBOL",
1768
- "name": "annotations"
1769
- },
1770
- {
1771
- "type": "BLANK"
1772
- }
1773
- ]
1774
- }
1775
- },
1776
1632
  {
1777
1633
  "type": "FIELD",
1778
1634
  "name": "subject",
@@ -1828,22 +1684,6 @@
1828
1684
  "type": "STRING",
1829
1685
  "value": "["
1830
1686
  },
1831
- {
1832
- "type": "FIELD",
1833
- "name": "annotations",
1834
- "content": {
1835
- "type": "CHOICE",
1836
- "members": [
1837
- {
1838
- "type": "SYMBOL",
1839
- "name": "annotations"
1840
- },
1841
- {
1842
- "type": "BLANK"
1843
- }
1844
- ]
1845
- }
1846
- },
1847
1687
  {
1848
1688
  "type": "FIELD",
1849
1689
  "name": "subject",
@@ -1894,22 +1734,6 @@
1894
1734
  "type": "STRING",
1895
1735
  "value": "["
1896
1736
  },
1897
- {
1898
- "type": "FIELD",
1899
- "name": "annotations",
1900
- "content": {
1901
- "type": "CHOICE",
1902
- "members": [
1903
- {
1904
- "type": "SYMBOL",
1905
- "name": "annotations"
1906
- },
1907
- {
1908
- "type": "BLANK"
1909
- }
1910
- ]
1911
- }
1912
- },
1913
1737
  {
1914
1738
  "type": "FIELD",
1915
1739
  "name": "subject",
@@ -1960,22 +1784,6 @@
1960
1784
  "type": "STRING",
1961
1785
  "value": "["
1962
1786
  },
1963
- {
1964
- "type": "FIELD",
1965
- "name": "annotations",
1966
- "content": {
1967
- "type": "CHOICE",
1968
- "members": [
1969
- {
1970
- "type": "SYMBOL",
1971
- "name": "annotations"
1972
- },
1973
- {
1974
- "type": "BLANK"
1975
- }
1976
- ]
1977
- }
1978
- },
1979
1787
  {
1980
1788
  "type": "FIELD",
1981
1789
  "name": "subject",
@@ -177,16 +177,6 @@
177
177
  "type": "bidirectional_arrow",
178
178
  "named": true,
179
179
  "fields": {
180
- "annotations": {
181
- "multiple": false,
182
- "required": false,
183
- "types": [
184
- {
185
- "type": "annotations",
186
- "named": true
187
- }
188
- ]
189
- },
190
180
  "identifier": {
191
181
  "multiple": false,
192
182
  "required": false,
@@ -304,16 +294,6 @@
304
294
  "type": "left_arrow",
305
295
  "named": true,
306
296
  "fields": {
307
- "annotations": {
308
- "multiple": false,
309
- "required": false,
310
- "types": [
311
- {
312
- "type": "annotations",
313
- "named": true
314
- }
315
- ]
316
- },
317
297
  "identifier": {
318
298
  "multiple": false,
319
299
  "required": false,
@@ -766,16 +746,6 @@
766
746
  "type": "right_arrow",
767
747
  "named": true,
768
748
  "fields": {
769
- "annotations": {
770
- "multiple": false,
771
- "required": false,
772
- "types": [
773
- {
774
- "type": "annotations",
775
- "named": true
776
- }
777
- ]
778
- },
779
749
  "identifier": {
780
750
  "multiple": false,
781
751
  "required": false,
@@ -999,16 +969,6 @@
999
969
  "type": "undirected_arrow",
1000
970
  "named": true,
1001
971
  "fields": {
1002
- "annotations": {
1003
- "multiple": false,
1004
- "required": false,
1005
- "types": [
1006
- {
1007
- "type": "annotations",
1008
- "named": true
1009
- }
1010
- ]
1011
- },
1012
972
  "identifier": {
1013
973
  "multiple": false,
1014
974
  "required": false,