tree-sitter-delphi13-pure 1.4.2 → 1.4.4

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/src/grammar.json CHANGED
@@ -549,86 +549,90 @@
549
549
  }
550
550
  },
551
551
  "ifElse": {
552
- "type": "PREC_RIGHT",
552
+ "type": "PREC_DYNAMIC",
553
553
  "value": 1,
554
554
  "content": {
555
- "type": "SEQ",
556
- "members": [
557
- {
558
- "type": "SYMBOL",
559
- "name": "kIf"
560
- },
561
- {
562
- "type": "FIELD",
563
- "name": "condition",
564
- "content": {
555
+ "type": "PREC_RIGHT",
556
+ "value": 1,
557
+ "content": {
558
+ "type": "SEQ",
559
+ "members": [
560
+ {
565
561
  "type": "SYMBOL",
566
- "name": "_expr"
567
- }
568
- },
569
- {
570
- "type": "SYMBOL",
571
- "name": "kThen"
572
- },
573
- {
574
- "type": "FIELD",
575
- "name": "then",
576
- "content": {
577
- "type": "CHOICE",
578
- "members": [
579
- {
580
- "type": "CHOICE",
581
- "members": [
582
- {
583
- "type": "SYMBOL",
584
- "name": "_statementTr"
585
- },
586
- {
587
- "type": "SYMBOL",
588
- "name": "if"
589
- }
590
- ]
591
- },
592
- {
593
- "type": "BLANK"
594
- }
595
- ]
596
- }
597
- },
598
- {
599
- "type": "SYMBOL",
600
- "name": "kElse"
601
- },
602
- {
603
- "type": "FIELD",
604
- "name": "else",
605
- "content": {
606
- "type": "SEQ",
607
- "members": [
608
- {
609
- "type": "CHOICE",
610
- "members": [
611
- {
612
- "type": "PREC_DYNAMIC",
613
- "value": -1,
614
- "content": {
562
+ "name": "kIf"
563
+ },
564
+ {
565
+ "type": "FIELD",
566
+ "name": "condition",
567
+ "content": {
568
+ "type": "SYMBOL",
569
+ "name": "_expr"
570
+ }
571
+ },
572
+ {
573
+ "type": "SYMBOL",
574
+ "name": "kThen"
575
+ },
576
+ {
577
+ "type": "FIELD",
578
+ "name": "then",
579
+ "content": {
580
+ "type": "CHOICE",
581
+ "members": [
582
+ {
583
+ "type": "CHOICE",
584
+ "members": [
585
+ {
615
586
  "type": "SYMBOL",
616
- "name": "label"
587
+ "name": "_statementTr"
588
+ },
589
+ {
590
+ "type": "SYMBOL",
591
+ "name": "if"
617
592
  }
618
- },
619
- {
620
- "type": "BLANK"
621
- }
622
- ]
623
- },
624
- {
625
- "type": "SYMBOL",
626
- "name": "_statement"
627
- }
628
- ]
593
+ ]
594
+ },
595
+ {
596
+ "type": "BLANK"
597
+ }
598
+ ]
599
+ }
600
+ },
601
+ {
602
+ "type": "SYMBOL",
603
+ "name": "kElse"
604
+ },
605
+ {
606
+ "type": "FIELD",
607
+ "name": "else",
608
+ "content": {
609
+ "type": "SEQ",
610
+ "members": [
611
+ {
612
+ "type": "CHOICE",
613
+ "members": [
614
+ {
615
+ "type": "PREC_DYNAMIC",
616
+ "value": -1,
617
+ "content": {
618
+ "type": "SYMBOL",
619
+ "name": "label"
620
+ }
621
+ },
622
+ {
623
+ "type": "BLANK"
624
+ }
625
+ ]
626
+ },
627
+ {
628
+ "type": "SYMBOL",
629
+ "name": "_statement"
630
+ }
631
+ ]
632
+ }
629
633
  }
630
- }
631
- ]
634
+ ]
635
+ }
632
636
  }
633
637
  },
634
638
  "while": {
@@ -1788,94 +1792,98 @@
1788
1792
  }
1789
1793
  },
1790
1794
  "ifElseTr": {
1791
- "type": "PREC_RIGHT",
1795
+ "type": "PREC_DYNAMIC",
1792
1796
  "value": 1,
1793
1797
  "content": {
1794
- "type": "SEQ",
1795
- "members": [
1796
- {
1797
- "type": "SYMBOL",
1798
- "name": "kIf"
1799
- },
1800
- {
1801
- "type": "FIELD",
1802
- "name": "condition",
1803
- "content": {
1798
+ "type": "PREC_RIGHT",
1799
+ "value": 1,
1800
+ "content": {
1801
+ "type": "SEQ",
1802
+ "members": [
1803
+ {
1804
1804
  "type": "SYMBOL",
1805
- "name": "_expr"
1806
- }
1807
- },
1808
- {
1809
- "type": "SYMBOL",
1810
- "name": "kThen"
1811
- },
1812
- {
1813
- "type": "FIELD",
1814
- "name": "then",
1815
- "content": {
1816
- "type": "CHOICE",
1817
- "members": [
1818
- {
1819
- "type": "CHOICE",
1820
- "members": [
1821
- {
1822
- "type": "SYMBOL",
1823
- "name": "_statementTr"
1824
- },
1825
- {
1826
- "type": "SYMBOL",
1827
- "name": "if"
1828
- }
1829
- ]
1830
- },
1831
- {
1832
- "type": "BLANK"
1833
- }
1834
- ]
1835
- }
1836
- },
1837
- {
1838
- "type": "SYMBOL",
1839
- "name": "kElse"
1840
- },
1841
- {
1842
- "type": "FIELD",
1843
- "name": "else",
1844
- "content": {
1845
- "type": "CHOICE",
1846
- "members": [
1847
- {
1848
- "type": "SEQ",
1849
- "members": [
1850
- {
1851
- "type": "CHOICE",
1852
- "members": [
1853
- {
1854
- "type": "PREC_DYNAMIC",
1855
- "value": -1,
1856
- "content": {
1857
- "type": "SYMBOL",
1858
- "name": "label"
1805
+ "name": "kIf"
1806
+ },
1807
+ {
1808
+ "type": "FIELD",
1809
+ "name": "condition",
1810
+ "content": {
1811
+ "type": "SYMBOL",
1812
+ "name": "_expr"
1813
+ }
1814
+ },
1815
+ {
1816
+ "type": "SYMBOL",
1817
+ "name": "kThen"
1818
+ },
1819
+ {
1820
+ "type": "FIELD",
1821
+ "name": "then",
1822
+ "content": {
1823
+ "type": "CHOICE",
1824
+ "members": [
1825
+ {
1826
+ "type": "CHOICE",
1827
+ "members": [
1828
+ {
1829
+ "type": "SYMBOL",
1830
+ "name": "_statementTr"
1831
+ },
1832
+ {
1833
+ "type": "SYMBOL",
1834
+ "name": "if"
1835
+ }
1836
+ ]
1837
+ },
1838
+ {
1839
+ "type": "BLANK"
1840
+ }
1841
+ ]
1842
+ }
1843
+ },
1844
+ {
1845
+ "type": "SYMBOL",
1846
+ "name": "kElse"
1847
+ },
1848
+ {
1849
+ "type": "FIELD",
1850
+ "name": "else",
1851
+ "content": {
1852
+ "type": "CHOICE",
1853
+ "members": [
1854
+ {
1855
+ "type": "SEQ",
1856
+ "members": [
1857
+ {
1858
+ "type": "CHOICE",
1859
+ "members": [
1860
+ {
1861
+ "type": "PREC_DYNAMIC",
1862
+ "value": -1,
1863
+ "content": {
1864
+ "type": "SYMBOL",
1865
+ "name": "label"
1866
+ }
1867
+ },
1868
+ {
1869
+ "type": "BLANK"
1859
1870
  }
1860
- },
1861
- {
1862
- "type": "BLANK"
1863
- }
1864
- ]
1865
- },
1866
- {
1867
- "type": "SYMBOL",
1868
- "name": "_statementTr"
1869
- }
1870
- ]
1871
- },
1872
- {
1873
- "type": "BLANK"
1874
- }
1875
- ]
1871
+ ]
1872
+ },
1873
+ {
1874
+ "type": "SYMBOL",
1875
+ "name": "_statementTr"
1876
+ }
1877
+ ]
1878
+ },
1879
+ {
1880
+ "type": "BLANK"
1881
+ }
1882
+ ]
1883
+ }
1876
1884
  }
1877
- }
1878
- ]
1885
+ ]
1886
+ }
1879
1887
  }
1880
1888
  },
1881
1889
  "whileTr": {
@@ -3423,48 +3431,52 @@
3423
3431
  ]
3424
3432
  },
3425
3433
  "exprIf": {
3426
- "type": "PREC_RIGHT",
3427
- "value": 0,
3434
+ "type": "PREC_DYNAMIC",
3435
+ "value": -1,
3428
3436
  "content": {
3429
- "type": "SEQ",
3430
- "members": [
3431
- {
3432
- "type": "SYMBOL",
3433
- "name": "kIf"
3434
- },
3435
- {
3436
- "type": "FIELD",
3437
- "name": "condition",
3438
- "content": {
3437
+ "type": "PREC_RIGHT",
3438
+ "value": 0,
3439
+ "content": {
3440
+ "type": "SEQ",
3441
+ "members": [
3442
+ {
3439
3443
  "type": "SYMBOL",
3440
- "name": "_expr"
3441
- }
3442
- },
3443
- {
3444
- "type": "SYMBOL",
3445
- "name": "kThen"
3446
- },
3447
- {
3448
- "type": "FIELD",
3449
- "name": "then",
3450
- "content": {
3444
+ "name": "kIf"
3445
+ },
3446
+ {
3447
+ "type": "FIELD",
3448
+ "name": "condition",
3449
+ "content": {
3450
+ "type": "SYMBOL",
3451
+ "name": "_expr"
3452
+ }
3453
+ },
3454
+ {
3451
3455
  "type": "SYMBOL",
3452
- "name": "_expr"
3453
- }
3454
- },
3455
- {
3456
- "type": "SYMBOL",
3457
- "name": "kElse"
3458
- },
3459
- {
3460
- "type": "FIELD",
3461
- "name": "else",
3462
- "content": {
3456
+ "name": "kThen"
3457
+ },
3458
+ {
3459
+ "type": "FIELD",
3460
+ "name": "then",
3461
+ "content": {
3462
+ "type": "SYMBOL",
3463
+ "name": "_expr"
3464
+ }
3465
+ },
3466
+ {
3463
3467
  "type": "SYMBOL",
3464
- "name": "_expr"
3468
+ "name": "kElse"
3469
+ },
3470
+ {
3471
+ "type": "FIELD",
3472
+ "name": "else",
3473
+ "content": {
3474
+ "type": "SYMBOL",
3475
+ "name": "_expr"
3476
+ }
3465
3477
  }
3466
- }
3467
- ]
3478
+ ]
3479
+ }
3468
3480
  }
3469
3481
  },
3470
3482
  "_ref": {
@@ -12020,113 +12032,136 @@
12020
12032
  "type": "CHOICE",
12021
12033
  "members": [
12022
12034
  {
12023
- "type": "SYMBOL",
12024
- "name": "kName"
12035
+ "type": "SEQ",
12036
+ "members": [
12037
+ {
12038
+ "type": "CHOICE",
12039
+ "members": [
12040
+ {
12041
+ "type": "SYMBOL",
12042
+ "name": "kName"
12043
+ },
12044
+ {
12045
+ "type": "SYMBOL",
12046
+ "name": "kIndex"
12047
+ }
12048
+ ]
12049
+ },
12050
+ {
12051
+ "type": "SYMBOL",
12052
+ "name": "_expr"
12053
+ }
12054
+ ]
12025
12055
  },
12026
12056
  {
12027
- "type": "SYMBOL",
12028
- "name": "kIndex"
12057
+ "type": "BLANK"
12029
12058
  }
12030
12059
  ]
12031
12060
  },
12032
12061
  {
12033
- "type": "SYMBOL",
12034
- "name": "_expr"
12035
- }
12036
- ]
12037
- },
12038
- {
12039
- "type": "BLANK"
12040
- }
12041
- ]
12042
- },
12043
- {
12044
- "type": "CHOICE",
12045
- "members": [
12046
- {
12047
- "type": "SYMBOL",
12048
- "name": "kDelayed"
12049
- },
12050
- {
12051
- "type": "BLANK"
12052
- }
12053
- ]
12054
- },
12055
- {
12056
- "type": "CHOICE",
12057
- "members": [
12058
- {
12059
- "type": "SEQ",
12060
- "members": [
12061
- {
12062
- "type": "SYMBOL",
12063
- "name": "kDependency"
12062
+ "type": "CHOICE",
12063
+ "members": [
12064
+ {
12065
+ "type": "SYMBOL",
12066
+ "name": "kDelayed"
12067
+ },
12068
+ {
12069
+ "type": "BLANK"
12070
+ }
12071
+ ]
12064
12072
  },
12065
12073
  {
12066
- "type": "SEQ",
12074
+ "type": "CHOICE",
12067
12075
  "members": [
12068
12076
  {
12069
- "type": "CHOICE",
12077
+ "type": "SEQ",
12070
12078
  "members": [
12071
12079
  {
12072
- "type": "REPEAT1",
12073
- "content": {
12074
- "type": "PREC",
12075
- "value": 0,
12076
- "content": {
12077
- "type": "SEQ",
12080
+ "type": "SYMBOL",
12081
+ "name": "kDependency"
12082
+ },
12083
+ {
12084
+ "type": "SEQ",
12085
+ "members": [
12086
+ {
12087
+ "type": "CHOICE",
12078
12088
  "members": [
12079
12089
  {
12080
- "type": "CHOICE",
12081
- "members": [
12082
- {
12083
- "type": "SYMBOL",
12084
- "name": "_literalString"
12085
- },
12086
- {
12087
- "type": "SYMBOL",
12088
- "name": "identifier"
12090
+ "type": "REPEAT1",
12091
+ "content": {
12092
+ "type": "PREC",
12093
+ "value": 0,
12094
+ "content": {
12095
+ "type": "SEQ",
12096
+ "members": [
12097
+ {
12098
+ "type": "CHOICE",
12099
+ "members": [
12100
+ {
12101
+ "type": "SYMBOL",
12102
+ "name": "_literalString"
12103
+ },
12104
+ {
12105
+ "type": "SYMBOL",
12106
+ "name": "identifier"
12107
+ }
12108
+ ]
12109
+ },
12110
+ {
12111
+ "type": "STRING",
12112
+ "value": ","
12113
+ }
12114
+ ]
12089
12115
  }
12090
- ]
12116
+ }
12117
+ },
12118
+ {
12119
+ "type": "BLANK"
12120
+ }
12121
+ ]
12122
+ },
12123
+ {
12124
+ "type": "CHOICE",
12125
+ "members": [
12126
+ {
12127
+ "type": "SYMBOL",
12128
+ "name": "_literalString"
12091
12129
  },
12092
12130
  {
12093
- "type": "STRING",
12094
- "value": ","
12131
+ "type": "SYMBOL",
12132
+ "name": "identifier"
12095
12133
  }
12096
12134
  ]
12097
12135
  }
12098
- }
12099
- },
12100
- {
12101
- "type": "BLANK"
12136
+ ]
12102
12137
  }
12103
12138
  ]
12104
12139
  },
12105
12140
  {
12106
- "type": "CHOICE",
12107
- "members": [
12108
- {
12109
- "type": "SYMBOL",
12110
- "name": "_literalString"
12111
- },
12112
- {
12113
- "type": "SYMBOL",
12114
- "name": "identifier"
12115
- }
12116
- ]
12141
+ "type": "BLANK"
12117
12142
  }
12118
12143
  ]
12144
+ },
12145
+ {
12146
+ "type": "STRING",
12147
+ "value": ";"
12119
12148
  }
12120
12149
  ]
12121
12150
  },
12122
12151
  {
12123
- "type": "BLANK"
12152
+ "type": "SEQ",
12153
+ "members": [
12154
+ {
12155
+ "type": "SYMBOL",
12156
+ "name": "kName"
12157
+ },
12158
+ {
12159
+ "type": "SYMBOL",
12160
+ "name": "literalString"
12161
+ }
12162
+ ]
12124
12163
  }
12125
12164
  ]
12126
- },
12127
- {
12128
- "type": "STRING",
12129
- "value": ";"
12130
12165
  }
12131
12166
  ]
12132
12167
  },
@@ -13342,6 +13377,10 @@
13342
13377
  "declString",
13343
13378
  "declFieldNoSemi"
13344
13379
  ],
13380
+ [
13381
+ "_literal",
13382
+ "procExternal"
13383
+ ],
13345
13384
  [
13346
13385
  "declProcFwd"
13347
13386
  ],