@willbooster/tree-sitter-bash 0.25.1 → 1.0.1
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/README.md +40 -33
- package/grammar.js +200 -32
- package/package.json +37 -23
- package/prebuilds/darwin-arm64/tree-sitter-bash.node +0 -0
- package/prebuilds/darwin-x64/tree-sitter-bash.node +0 -0
- package/prebuilds/linux-arm64/tree-sitter-bash.node +0 -0
- package/prebuilds/linux-x64/tree-sitter-bash.node +0 -0
- package/queries/highlights.scm +33 -12
- package/src/grammar.json +821 -60
- package/src/node-types.json +206 -66
- package/src/parser.c +219487 -88691
- package/src/scanner.c +687 -103
- package/tree-sitter.json +3 -3
package/src/grammar.json
CHANGED
|
@@ -383,22 +383,37 @@
|
|
|
383
383
|
"type": "SEQ",
|
|
384
384
|
"members": [
|
|
385
385
|
{
|
|
386
|
-
"type": "
|
|
387
|
-
"
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
386
|
+
"type": "CHOICE",
|
|
387
|
+
"members": [
|
|
388
|
+
{
|
|
389
|
+
"type": "FIELD",
|
|
390
|
+
"name": "name",
|
|
391
|
+
"content": {
|
|
392
|
+
"type": "SYMBOL",
|
|
393
|
+
"name": "word"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"type": "BLANK"
|
|
398
|
+
}
|
|
399
|
+
]
|
|
392
400
|
},
|
|
393
401
|
{
|
|
394
402
|
"type": "SYMBOL",
|
|
395
403
|
"name": "_compound_command"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "REPEAT",
|
|
407
|
+
"content": {
|
|
408
|
+
"type": "FIELD",
|
|
409
|
+
"name": "redirect",
|
|
410
|
+
"content": {
|
|
411
|
+
"type": "SYMBOL",
|
|
412
|
+
"name": "_redirect"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
396
415
|
}
|
|
397
416
|
]
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"type": "SYMBOL",
|
|
401
|
-
"name": "_compound_command"
|
|
402
417
|
}
|
|
403
418
|
]
|
|
404
419
|
}
|
|
@@ -476,7 +491,7 @@
|
|
|
476
491
|
"name": "argument",
|
|
477
492
|
"content": {
|
|
478
493
|
"type": "SYMBOL",
|
|
479
|
-
"name": "
|
|
494
|
+
"name": "_argument"
|
|
480
495
|
}
|
|
481
496
|
},
|
|
482
497
|
{
|
|
@@ -591,7 +606,7 @@
|
|
|
591
606
|
},
|
|
592
607
|
{
|
|
593
608
|
"type": "SYMBOL",
|
|
594
|
-
"name": "
|
|
609
|
+
"name": "_argument"
|
|
595
610
|
}
|
|
596
611
|
]
|
|
597
612
|
}
|
|
@@ -658,7 +673,11 @@
|
|
|
658
673
|
"members": [
|
|
659
674
|
{
|
|
660
675
|
"type": "SYMBOL",
|
|
661
|
-
"name": "
|
|
676
|
+
"name": "_argument"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"type": "SYMBOL",
|
|
680
|
+
"name": "_hash_value"
|
|
662
681
|
},
|
|
663
682
|
{
|
|
664
683
|
"type": "SYMBOL",
|
|
@@ -673,6 +692,86 @@
|
|
|
673
692
|
}
|
|
674
693
|
]
|
|
675
694
|
},
|
|
695
|
+
"_hash_value": {
|
|
696
|
+
"type": "CHOICE",
|
|
697
|
+
"members": [
|
|
698
|
+
{
|
|
699
|
+
"type": "ALIAS",
|
|
700
|
+
"content": {
|
|
701
|
+
"type": "SYMBOL",
|
|
702
|
+
"name": "_hash_word"
|
|
703
|
+
},
|
|
704
|
+
"named": true,
|
|
705
|
+
"value": "word"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"type": "ALIAS",
|
|
709
|
+
"content": {
|
|
710
|
+
"type": "SYMBOL",
|
|
711
|
+
"name": "_hash_concatenation"
|
|
712
|
+
},
|
|
713
|
+
"named": true,
|
|
714
|
+
"value": "concatenation"
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
},
|
|
718
|
+
"_hash_concatenation": {
|
|
719
|
+
"type": "PREC_RIGHT",
|
|
720
|
+
"value": 0,
|
|
721
|
+
"content": {
|
|
722
|
+
"type": "SEQ",
|
|
723
|
+
"members": [
|
|
724
|
+
{
|
|
725
|
+
"type": "ALIAS",
|
|
726
|
+
"content": {
|
|
727
|
+
"type": "SYMBOL",
|
|
728
|
+
"name": "_hash_word"
|
|
729
|
+
},
|
|
730
|
+
"named": true,
|
|
731
|
+
"value": "word"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "REPEAT1",
|
|
735
|
+
"content": {
|
|
736
|
+
"type": "SEQ",
|
|
737
|
+
"members": [
|
|
738
|
+
{
|
|
739
|
+
"type": "SYMBOL",
|
|
740
|
+
"name": "_concat"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"type": "CHOICE",
|
|
744
|
+
"members": [
|
|
745
|
+
{
|
|
746
|
+
"type": "SYMBOL",
|
|
747
|
+
"name": "_word_part"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"type": "ALIAS",
|
|
751
|
+
"content": {
|
|
752
|
+
"type": "SYMBOL",
|
|
753
|
+
"name": "_hash_word"
|
|
754
|
+
},
|
|
755
|
+
"named": true,
|
|
756
|
+
"value": "word"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"type": "ALIAS",
|
|
760
|
+
"content": {
|
|
761
|
+
"type": "SYMBOL",
|
|
762
|
+
"name": "_negated_extglob_pattern"
|
|
763
|
+
},
|
|
764
|
+
"named": true,
|
|
765
|
+
"value": "extglob_pattern"
|
|
766
|
+
}
|
|
767
|
+
]
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
},
|
|
676
775
|
"subscript": {
|
|
677
776
|
"type": "SEQ",
|
|
678
777
|
"members": [
|
|
@@ -719,20 +818,74 @@
|
|
|
719
818
|
"value": 1,
|
|
720
819
|
"content": {
|
|
721
820
|
"type": "PATTERN",
|
|
722
|
-
"value": "([^\\]$`\"'
|
|
821
|
+
"value": "([^\\[\\]$`\"'\\\\<>]|[<>]+[^(\\[\\]$`\"'\\\\<>]|\\\\.)+"
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"named": true,
|
|
826
|
+
"value": "word"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"type": "ALIAS",
|
|
830
|
+
"content": {
|
|
831
|
+
"type": "TOKEN",
|
|
832
|
+
"content": {
|
|
833
|
+
"type": "PREC",
|
|
834
|
+
"value": 1,
|
|
835
|
+
"content": {
|
|
836
|
+
"type": "PATTERN",
|
|
837
|
+
"value": "([^\\[\\]$`\"'\\\\<>]|[<>]+[^(\\[\\]$`\"'\\\\<>]|\\\\.)+"
|
|
723
838
|
}
|
|
724
839
|
}
|
|
725
840
|
},
|
|
726
841
|
"named": true,
|
|
727
842
|
"value": "word"
|
|
728
843
|
},
|
|
844
|
+
{
|
|
845
|
+
"type": "ALIAS",
|
|
846
|
+
"content": {
|
|
847
|
+
"type": "SYMBOL",
|
|
848
|
+
"name": "_angle_text"
|
|
849
|
+
},
|
|
850
|
+
"named": true,
|
|
851
|
+
"value": "word"
|
|
852
|
+
},
|
|
729
853
|
{
|
|
730
854
|
"type": "SYMBOL",
|
|
731
855
|
"name": "_quoted_or_expansion"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"type": "SYMBOL",
|
|
859
|
+
"name": "_subscript_group"
|
|
732
860
|
}
|
|
733
861
|
]
|
|
734
862
|
}
|
|
735
863
|
},
|
|
864
|
+
"_subscript_group": {
|
|
865
|
+
"type": "SEQ",
|
|
866
|
+
"members": [
|
|
867
|
+
{
|
|
868
|
+
"type": "STRING",
|
|
869
|
+
"value": "["
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"type": "CHOICE",
|
|
873
|
+
"members": [
|
|
874
|
+
{
|
|
875
|
+
"type": "SYMBOL",
|
|
876
|
+
"name": "_subscript_index"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"type": "BLANK"
|
|
880
|
+
}
|
|
881
|
+
]
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"type": "STRING",
|
|
885
|
+
"value": "]"
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
},
|
|
736
889
|
"_quoted_or_expansion": {
|
|
737
890
|
"type": "CHOICE",
|
|
738
891
|
"members": [
|
|
@@ -767,6 +920,10 @@
|
|
|
767
920
|
{
|
|
768
921
|
"type": "SYMBOL",
|
|
769
922
|
"name": "arithmetic_expansion"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"type": "SYMBOL",
|
|
926
|
+
"name": "process_substitution"
|
|
770
927
|
}
|
|
771
928
|
]
|
|
772
929
|
},
|
|
@@ -784,7 +941,7 @@
|
|
|
784
941
|
"type": "REPEAT",
|
|
785
942
|
"content": {
|
|
786
943
|
"type": "SYMBOL",
|
|
787
|
-
"name": "
|
|
944
|
+
"name": "_argument"
|
|
788
945
|
}
|
|
789
946
|
},
|
|
790
947
|
{
|
|
@@ -885,7 +1042,7 @@
|
|
|
885
1042
|
"name": "destination",
|
|
886
1043
|
"content": {
|
|
887
1044
|
"type": "SYMBOL",
|
|
888
|
-
"name": "
|
|
1045
|
+
"name": "_argument"
|
|
889
1046
|
}
|
|
890
1047
|
}
|
|
891
1048
|
]
|
|
@@ -943,7 +1100,7 @@
|
|
|
943
1100
|
"name": "value",
|
|
944
1101
|
"content": {
|
|
945
1102
|
"type": "SYMBOL",
|
|
946
|
-
"name": "
|
|
1103
|
+
"name": "_argument"
|
|
947
1104
|
}
|
|
948
1105
|
}
|
|
949
1106
|
]
|
|
@@ -1102,6 +1259,10 @@
|
|
|
1102
1259
|
"type": "STRING",
|
|
1103
1260
|
"value": "(("
|
|
1104
1261
|
},
|
|
1262
|
+
{
|
|
1263
|
+
"type": "SYMBOL",
|
|
1264
|
+
"name": "_substitution_start"
|
|
1265
|
+
},
|
|
1105
1266
|
{
|
|
1106
1267
|
"type": "CHOICE",
|
|
1107
1268
|
"members": [
|
|
@@ -1114,6 +1275,10 @@
|
|
|
1114
1275
|
}
|
|
1115
1276
|
]
|
|
1116
1277
|
},
|
|
1278
|
+
{
|
|
1279
|
+
"type": "SYMBOL",
|
|
1280
|
+
"name": "_substitution_end"
|
|
1281
|
+
},
|
|
1117
1282
|
{
|
|
1118
1283
|
"type": "STRING",
|
|
1119
1284
|
"value": "))"
|
|
@@ -1314,7 +1479,7 @@
|
|
|
1314
1479
|
"name": "operand",
|
|
1315
1480
|
"content": {
|
|
1316
1481
|
"type": "SYMBOL",
|
|
1317
|
-
"name": "
|
|
1482
|
+
"name": "_argument"
|
|
1318
1483
|
}
|
|
1319
1484
|
}
|
|
1320
1485
|
]
|
|
@@ -1409,7 +1574,7 @@
|
|
|
1409
1574
|
"name": "right",
|
|
1410
1575
|
"content": {
|
|
1411
1576
|
"type": "SYMBOL",
|
|
1412
|
-
"name": "
|
|
1577
|
+
"name": "_argument"
|
|
1413
1578
|
}
|
|
1414
1579
|
}
|
|
1415
1580
|
]
|
|
@@ -1749,6 +1914,18 @@
|
|
|
1749
1914
|
{
|
|
1750
1915
|
"type": "SEQ",
|
|
1751
1916
|
"members": [
|
|
1917
|
+
{
|
|
1918
|
+
"type": "CHOICE",
|
|
1919
|
+
"members": [
|
|
1920
|
+
{
|
|
1921
|
+
"type": "SYMBOL",
|
|
1922
|
+
"name": "_newline"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"type": "BLANK"
|
|
1926
|
+
}
|
|
1927
|
+
]
|
|
1928
|
+
},
|
|
1752
1929
|
{
|
|
1753
1930
|
"type": "STRING",
|
|
1754
1931
|
"value": "in"
|
|
@@ -1760,21 +1937,30 @@
|
|
|
1760
1937
|
"name": "value",
|
|
1761
1938
|
"content": {
|
|
1762
1939
|
"type": "SYMBOL",
|
|
1763
|
-
"name": "
|
|
1940
|
+
"name": "_argument"
|
|
1764
1941
|
}
|
|
1765
1942
|
}
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"type": "SYMBOL",
|
|
1946
|
+
"name": "_terminator"
|
|
1766
1947
|
}
|
|
1767
1948
|
]
|
|
1768
1949
|
},
|
|
1769
1950
|
{
|
|
1770
|
-
"type": "
|
|
1951
|
+
"type": "CHOICE",
|
|
1952
|
+
"members": [
|
|
1953
|
+
{
|
|
1954
|
+
"type": "SYMBOL",
|
|
1955
|
+
"name": "_terminator"
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"type": "BLANK"
|
|
1959
|
+
}
|
|
1960
|
+
]
|
|
1771
1961
|
}
|
|
1772
1962
|
]
|
|
1773
1963
|
},
|
|
1774
|
-
{
|
|
1775
|
-
"type": "SYMBOL",
|
|
1776
|
-
"name": "_terminator"
|
|
1777
|
-
},
|
|
1778
1964
|
{
|
|
1779
1965
|
"type": "FIELD",
|
|
1780
1966
|
"name": "body",
|
|
@@ -1805,6 +1991,10 @@
|
|
|
1805
1991
|
"type": "STRING",
|
|
1806
1992
|
"value": "(("
|
|
1807
1993
|
},
|
|
1994
|
+
{
|
|
1995
|
+
"type": "SYMBOL",
|
|
1996
|
+
"name": "_substitution_start"
|
|
1997
|
+
},
|
|
1808
1998
|
{
|
|
1809
1999
|
"type": "FIELD",
|
|
1810
2000
|
"name": "initializer",
|
|
@@ -1861,6 +2051,10 @@
|
|
|
1861
2051
|
]
|
|
1862
2052
|
}
|
|
1863
2053
|
},
|
|
2054
|
+
{
|
|
2055
|
+
"type": "SYMBOL",
|
|
2056
|
+
"name": "_substitution_end"
|
|
2057
|
+
},
|
|
1864
2058
|
{
|
|
1865
2059
|
"type": "STRING",
|
|
1866
2060
|
"value": "))"
|
|
@@ -1908,7 +2102,7 @@
|
|
|
1908
2102
|
"name": "value",
|
|
1909
2103
|
"content": {
|
|
1910
2104
|
"type": "SYMBOL",
|
|
1911
|
-
"name": "
|
|
2105
|
+
"name": "_argument"
|
|
1912
2106
|
}
|
|
1913
2107
|
},
|
|
1914
2108
|
{
|
|
@@ -2028,7 +2222,7 @@
|
|
|
2028
2222
|
"name": "pattern",
|
|
2029
2223
|
"content": {
|
|
2030
2224
|
"type": "SYMBOL",
|
|
2031
|
-
"name": "
|
|
2225
|
+
"name": "_argument"
|
|
2032
2226
|
}
|
|
2033
2227
|
},
|
|
2034
2228
|
{
|
|
@@ -2045,7 +2239,7 @@
|
|
|
2045
2239
|
"name": "pattern",
|
|
2046
2240
|
"content": {
|
|
2047
2241
|
"type": "SYMBOL",
|
|
2048
|
-
"name": "
|
|
2242
|
+
"name": "_argument"
|
|
2049
2243
|
}
|
|
2050
2244
|
}
|
|
2051
2245
|
]
|
|
@@ -2147,15 +2341,70 @@
|
|
|
2147
2341
|
}
|
|
2148
2342
|
]
|
|
2149
2343
|
},
|
|
2150
|
-
"
|
|
2344
|
+
"_argument": {
|
|
2345
|
+
"type": "CHOICE",
|
|
2346
|
+
"members": [
|
|
2347
|
+
{
|
|
2348
|
+
"type": "SYMBOL",
|
|
2349
|
+
"name": "_word"
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"type": "ALIAS",
|
|
2353
|
+
"content": {
|
|
2354
|
+
"type": "SYMBOL",
|
|
2355
|
+
"name": "_negated_extglob_word"
|
|
2356
|
+
},
|
|
2357
|
+
"named": true,
|
|
2358
|
+
"value": "word"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"type": "ALIAS",
|
|
2362
|
+
"content": {
|
|
2363
|
+
"type": "SYMBOL",
|
|
2364
|
+
"name": "_negated_extglob_pattern"
|
|
2365
|
+
},
|
|
2366
|
+
"named": true,
|
|
2367
|
+
"value": "extglob_pattern"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"type": "ALIAS",
|
|
2371
|
+
"content": {
|
|
2372
|
+
"type": "SYMBOL",
|
|
2373
|
+
"name": "_negated_extglob_concatenation"
|
|
2374
|
+
},
|
|
2375
|
+
"named": true,
|
|
2376
|
+
"value": "concatenation"
|
|
2377
|
+
}
|
|
2378
|
+
]
|
|
2379
|
+
},
|
|
2380
|
+
"_negated_extglob_concatenation": {
|
|
2151
2381
|
"type": "PREC_RIGHT",
|
|
2152
2382
|
"value": 0,
|
|
2153
2383
|
"content": {
|
|
2154
2384
|
"type": "SEQ",
|
|
2155
2385
|
"members": [
|
|
2156
2386
|
{
|
|
2157
|
-
"type": "
|
|
2158
|
-
"
|
|
2387
|
+
"type": "CHOICE",
|
|
2388
|
+
"members": [
|
|
2389
|
+
{
|
|
2390
|
+
"type": "ALIAS",
|
|
2391
|
+
"content": {
|
|
2392
|
+
"type": "SYMBOL",
|
|
2393
|
+
"name": "_negated_extglob_pattern"
|
|
2394
|
+
},
|
|
2395
|
+
"named": true,
|
|
2396
|
+
"value": "extglob_pattern"
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
"type": "ALIAS",
|
|
2400
|
+
"content": {
|
|
2401
|
+
"type": "SYMBOL",
|
|
2402
|
+
"name": "_negated_extglob_word"
|
|
2403
|
+
},
|
|
2404
|
+
"named": true,
|
|
2405
|
+
"value": "word"
|
|
2406
|
+
}
|
|
2407
|
+
]
|
|
2159
2408
|
},
|
|
2160
2409
|
{
|
|
2161
2410
|
"type": "REPEAT1",
|
|
@@ -2181,6 +2430,15 @@
|
|
|
2181
2430
|
},
|
|
2182
2431
|
"named": true,
|
|
2183
2432
|
"value": "word"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"type": "ALIAS",
|
|
2436
|
+
"content": {
|
|
2437
|
+
"type": "SYMBOL",
|
|
2438
|
+
"name": "_negated_extglob_pattern"
|
|
2439
|
+
},
|
|
2440
|
+
"named": true,
|
|
2441
|
+
"value": "extglob_pattern"
|
|
2184
2442
|
}
|
|
2185
2443
|
]
|
|
2186
2444
|
}
|
|
@@ -2190,12 +2448,117 @@
|
|
|
2190
2448
|
]
|
|
2191
2449
|
}
|
|
2192
2450
|
},
|
|
2193
|
-
"
|
|
2194
|
-
"type": "
|
|
2195
|
-
"
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2451
|
+
"_negated_extglob_word": {
|
|
2452
|
+
"type": "TOKEN",
|
|
2453
|
+
"content": {
|
|
2454
|
+
"type": "PREC",
|
|
2455
|
+
"value": 1,
|
|
2456
|
+
"content": {
|
|
2457
|
+
"type": "SEQ",
|
|
2458
|
+
"members": [
|
|
2459
|
+
{
|
|
2460
|
+
"type": "PATTERN",
|
|
2461
|
+
"value": "!\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
"type": "REPEAT",
|
|
2465
|
+
"content": {
|
|
2466
|
+
"type": "CHOICE",
|
|
2467
|
+
"members": [
|
|
2468
|
+
{
|
|
2469
|
+
"type": "PATTERN",
|
|
2470
|
+
"value": "[^\\s|&;()<>\"'`$\\\\]"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
"type": "PATTERN",
|
|
2474
|
+
"value": "\\\\[^\\r\\n]"
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"type": "PATTERN",
|
|
2478
|
+
"value": "[?*+@]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
"type": "PATTERN",
|
|
2482
|
+
"value": "!\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2483
|
+
}
|
|
2484
|
+
]
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
]
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
"concatenation": {
|
|
2492
|
+
"type": "PREC_RIGHT",
|
|
2493
|
+
"value": 0,
|
|
2494
|
+
"content": {
|
|
2495
|
+
"type": "SEQ",
|
|
2496
|
+
"members": [
|
|
2497
|
+
{
|
|
2498
|
+
"type": "SYMBOL",
|
|
2499
|
+
"name": "_word_part"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"type": "REPEAT1",
|
|
2503
|
+
"content": {
|
|
2504
|
+
"type": "SEQ",
|
|
2505
|
+
"members": [
|
|
2506
|
+
{
|
|
2507
|
+
"type": "SYMBOL",
|
|
2508
|
+
"name": "_concat"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
"type": "CHOICE",
|
|
2512
|
+
"members": [
|
|
2513
|
+
{
|
|
2514
|
+
"type": "SYMBOL",
|
|
2515
|
+
"name": "_word_part"
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
"type": "ALIAS",
|
|
2519
|
+
"content": {
|
|
2520
|
+
"type": "SYMBOL",
|
|
2521
|
+
"name": "_hash_word"
|
|
2522
|
+
},
|
|
2523
|
+
"named": true,
|
|
2524
|
+
"value": "word"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"type": "ALIAS",
|
|
2528
|
+
"content": {
|
|
2529
|
+
"type": "SYMBOL",
|
|
2530
|
+
"name": "_negated_extglob_pattern"
|
|
2531
|
+
},
|
|
2532
|
+
"named": true,
|
|
2533
|
+
"value": "extglob_pattern"
|
|
2534
|
+
}
|
|
2535
|
+
]
|
|
2536
|
+
}
|
|
2537
|
+
]
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
]
|
|
2541
|
+
}
|
|
2542
|
+
},
|
|
2543
|
+
"_word_part": {
|
|
2544
|
+
"type": "CHOICE",
|
|
2545
|
+
"members": [
|
|
2546
|
+
{
|
|
2547
|
+
"type": "SYMBOL",
|
|
2548
|
+
"name": "word"
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
"type": "ALIAS",
|
|
2552
|
+
"content": {
|
|
2553
|
+
"type": "SYMBOL",
|
|
2554
|
+
"name": "_extglob_prefix"
|
|
2555
|
+
},
|
|
2556
|
+
"named": true,
|
|
2557
|
+
"value": "word"
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"type": "SYMBOL",
|
|
2561
|
+
"name": "extglob_pattern"
|
|
2199
2562
|
},
|
|
2200
2563
|
{
|
|
2201
2564
|
"type": "SYMBOL",
|
|
@@ -2262,7 +2625,7 @@
|
|
|
2262
2625
|
},
|
|
2263
2626
|
{
|
|
2264
2627
|
"type": "PATTERN",
|
|
2265
|
-
"value": "[?*+@]\\((?:[^()\\
|
|
2628
|
+
"value": "[?*+@]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2266
2629
|
}
|
|
2267
2630
|
]
|
|
2268
2631
|
},
|
|
@@ -2281,11 +2644,11 @@
|
|
|
2281
2644
|
},
|
|
2282
2645
|
{
|
|
2283
2646
|
"type": "PATTERN",
|
|
2284
|
-
"value": "[?*+@]\\((?:[^()\\
|
|
2647
|
+
"value": "[?*+@]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2285
2648
|
},
|
|
2286
2649
|
{
|
|
2287
2650
|
"type": "PATTERN",
|
|
2288
|
-
"value": "!\\((?:[^()\\
|
|
2651
|
+
"value": "!\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2289
2652
|
}
|
|
2290
2653
|
]
|
|
2291
2654
|
}
|
|
@@ -2293,6 +2656,149 @@
|
|
|
2293
2656
|
]
|
|
2294
2657
|
}
|
|
2295
2658
|
},
|
|
2659
|
+
"extglob_pattern": {
|
|
2660
|
+
"type": "SEQ",
|
|
2661
|
+
"members": [
|
|
2662
|
+
{
|
|
2663
|
+
"type": "FIELD",
|
|
2664
|
+
"name": "operator",
|
|
2665
|
+
"content": {
|
|
2666
|
+
"type": "CHOICE",
|
|
2667
|
+
"members": [
|
|
2668
|
+
{
|
|
2669
|
+
"type": "STRING",
|
|
2670
|
+
"value": "?("
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
"type": "STRING",
|
|
2674
|
+
"value": "*("
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
"type": "STRING",
|
|
2678
|
+
"value": "+("
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"type": "STRING",
|
|
2682
|
+
"value": "@("
|
|
2683
|
+
}
|
|
2684
|
+
]
|
|
2685
|
+
}
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"type": "CHOICE",
|
|
2689
|
+
"members": [
|
|
2690
|
+
{
|
|
2691
|
+
"type": "SYMBOL",
|
|
2692
|
+
"name": "_extglob_alternative"
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
"type": "BLANK"
|
|
2696
|
+
}
|
|
2697
|
+
]
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
"type": "REPEAT",
|
|
2701
|
+
"content": {
|
|
2702
|
+
"type": "SEQ",
|
|
2703
|
+
"members": [
|
|
2704
|
+
{
|
|
2705
|
+
"type": "STRING",
|
|
2706
|
+
"value": "|"
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
"type": "CHOICE",
|
|
2710
|
+
"members": [
|
|
2711
|
+
{
|
|
2712
|
+
"type": "SYMBOL",
|
|
2713
|
+
"name": "_extglob_alternative"
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
"type": "BLANK"
|
|
2717
|
+
}
|
|
2718
|
+
]
|
|
2719
|
+
}
|
|
2720
|
+
]
|
|
2721
|
+
}
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
"type": "STRING",
|
|
2725
|
+
"value": ")"
|
|
2726
|
+
}
|
|
2727
|
+
]
|
|
2728
|
+
},
|
|
2729
|
+
"_negated_extglob_pattern": {
|
|
2730
|
+
"type": "SEQ",
|
|
2731
|
+
"members": [
|
|
2732
|
+
{
|
|
2733
|
+
"type": "FIELD",
|
|
2734
|
+
"name": "operator",
|
|
2735
|
+
"content": {
|
|
2736
|
+
"type": "STRING",
|
|
2737
|
+
"value": "!("
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"type": "CHOICE",
|
|
2742
|
+
"members": [
|
|
2743
|
+
{
|
|
2744
|
+
"type": "SYMBOL",
|
|
2745
|
+
"name": "_extglob_alternative"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"type": "BLANK"
|
|
2749
|
+
}
|
|
2750
|
+
]
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
"type": "REPEAT",
|
|
2754
|
+
"content": {
|
|
2755
|
+
"type": "SEQ",
|
|
2756
|
+
"members": [
|
|
2757
|
+
{
|
|
2758
|
+
"type": "STRING",
|
|
2759
|
+
"value": "|"
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
"type": "CHOICE",
|
|
2763
|
+
"members": [
|
|
2764
|
+
{
|
|
2765
|
+
"type": "SYMBOL",
|
|
2766
|
+
"name": "_extglob_alternative"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"type": "BLANK"
|
|
2770
|
+
}
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
]
|
|
2774
|
+
}
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
"type": "STRING",
|
|
2778
|
+
"value": ")"
|
|
2779
|
+
}
|
|
2780
|
+
]
|
|
2781
|
+
},
|
|
2782
|
+
"_extglob_alternative": {
|
|
2783
|
+
"type": "REPEAT1",
|
|
2784
|
+
"content": {
|
|
2785
|
+
"type": "FIELD",
|
|
2786
|
+
"name": "alternative",
|
|
2787
|
+
"content": {
|
|
2788
|
+
"type": "CHOICE",
|
|
2789
|
+
"members": [
|
|
2790
|
+
{
|
|
2791
|
+
"type": "SYMBOL",
|
|
2792
|
+
"name": "_argument"
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"type": "SYMBOL",
|
|
2796
|
+
"name": "_hash_value"
|
|
2797
|
+
}
|
|
2798
|
+
]
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2296
2802
|
"_hash_word": {
|
|
2297
2803
|
"type": "TOKEN",
|
|
2298
2804
|
"content": {
|
|
@@ -2317,6 +2823,14 @@
|
|
|
2317
2823
|
{
|
|
2318
2824
|
"type": "PATTERN",
|
|
2319
2825
|
"value": "\\\\[^\\r\\n]"
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
"type": "PATTERN",
|
|
2829
|
+
"value": "[?*+@]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
"type": "PATTERN",
|
|
2833
|
+
"value": "!\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.|[?*+@!]\\((?:[^()\\\\$`'\"]|\\\\.)*\\))*\\))*\\)"
|
|
2320
2834
|
}
|
|
2321
2835
|
]
|
|
2322
2836
|
}
|
|
@@ -2551,8 +3065,31 @@
|
|
|
2551
3065
|
"value": "special_variable_name"
|
|
2552
3066
|
},
|
|
2553
3067
|
{
|
|
2554
|
-
"type": "
|
|
2555
|
-
"
|
|
3068
|
+
"type": "ALIAS",
|
|
3069
|
+
"content": {
|
|
3070
|
+
"type": "SYMBOL",
|
|
3071
|
+
"name": "_expansion_subscript"
|
|
3072
|
+
},
|
|
3073
|
+
"named": true,
|
|
3074
|
+
"value": "subscript"
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
"type": "ALIAS",
|
|
3078
|
+
"content": {
|
|
3079
|
+
"type": "PATTERN",
|
|
3080
|
+
"value": "[A-Za-z_][A-Za-z0-9_]*"
|
|
3081
|
+
},
|
|
3082
|
+
"named": true,
|
|
3083
|
+
"value": "variable_name"
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
"type": "ALIAS",
|
|
3087
|
+
"content": {
|
|
3088
|
+
"type": "PATTERN",
|
|
3089
|
+
"value": "[0-9]+|[*@?$_-]"
|
|
3090
|
+
},
|
|
3091
|
+
"named": true,
|
|
3092
|
+
"value": "special_variable_name"
|
|
2556
3093
|
}
|
|
2557
3094
|
]
|
|
2558
3095
|
}
|
|
@@ -2595,6 +3132,56 @@
|
|
|
2595
3132
|
"named": true,
|
|
2596
3133
|
"value": "special_variable_name"
|
|
2597
3134
|
}
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
"type": "REPEAT",
|
|
3138
|
+
"content": {
|
|
3139
|
+
"type": "FIELD",
|
|
3140
|
+
"name": "argument",
|
|
3141
|
+
"content": {
|
|
3142
|
+
"type": "CHOICE",
|
|
3143
|
+
"members": [
|
|
3144
|
+
{
|
|
3145
|
+
"type": "ALIAS",
|
|
3146
|
+
"content": {
|
|
3147
|
+
"type": "SYMBOL",
|
|
3148
|
+
"name": "_expansion_text"
|
|
3149
|
+
},
|
|
3150
|
+
"named": true,
|
|
3151
|
+
"value": "word"
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
"type": "ALIAS",
|
|
3155
|
+
"content": {
|
|
3156
|
+
"type": "SYMBOL",
|
|
3157
|
+
"name": "_angle_text"
|
|
3158
|
+
},
|
|
3159
|
+
"named": true,
|
|
3160
|
+
"value": "word"
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
"type": "SYMBOL",
|
|
3164
|
+
"name": "string"
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
"type": "SYMBOL",
|
|
3168
|
+
"name": "raw_string"
|
|
3169
|
+
},
|
|
3170
|
+
{
|
|
3171
|
+
"type": "SYMBOL",
|
|
3172
|
+
"name": "ansi_c_string"
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
"type": "SYMBOL",
|
|
3176
|
+
"name": "translated_string"
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
"type": "SYMBOL",
|
|
3180
|
+
"name": "command_substitution"
|
|
3181
|
+
}
|
|
3182
|
+
]
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
2598
3185
|
}
|
|
2599
3186
|
]
|
|
2600
3187
|
},
|
|
@@ -2624,23 +3211,31 @@
|
|
|
2624
3211
|
}
|
|
2625
3212
|
},
|
|
2626
3213
|
{
|
|
2627
|
-
"type": "
|
|
3214
|
+
"type": "REPEAT1",
|
|
2628
3215
|
"content": {
|
|
2629
|
-
"type": "
|
|
2630
|
-
"
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
3216
|
+
"type": "SEQ",
|
|
3217
|
+
"members": [
|
|
3218
|
+
{
|
|
3219
|
+
"type": "IMMEDIATE_TOKEN",
|
|
3220
|
+
"content": {
|
|
3221
|
+
"type": "STRING",
|
|
3222
|
+
"value": "["
|
|
3223
|
+
}
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
"type": "FIELD",
|
|
3227
|
+
"name": "index",
|
|
3228
|
+
"content": {
|
|
3229
|
+
"type": "SYMBOL",
|
|
3230
|
+
"name": "_subscript_index"
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
"type": "STRING",
|
|
3235
|
+
"value": "]"
|
|
3236
|
+
}
|
|
3237
|
+
]
|
|
2639
3238
|
}
|
|
2640
|
-
},
|
|
2641
|
-
{
|
|
2642
|
-
"type": "STRING",
|
|
2643
|
-
"value": "]"
|
|
2644
3239
|
}
|
|
2645
3240
|
]
|
|
2646
3241
|
},
|
|
@@ -2780,9 +3375,27 @@
|
|
|
2780
3375
|
"named": true,
|
|
2781
3376
|
"value": "word"
|
|
2782
3377
|
},
|
|
3378
|
+
{
|
|
3379
|
+
"type": "ALIAS",
|
|
3380
|
+
"content": {
|
|
3381
|
+
"type": "SYMBOL",
|
|
3382
|
+
"name": "_angle_text"
|
|
3383
|
+
},
|
|
3384
|
+
"named": true,
|
|
3385
|
+
"value": "word"
|
|
3386
|
+
},
|
|
2783
3387
|
{
|
|
2784
3388
|
"type": "SYMBOL",
|
|
2785
3389
|
"name": "_quoted_or_expansion"
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
"type": "ALIAS",
|
|
3393
|
+
"content": {
|
|
3394
|
+
"type": "SYMBOL",
|
|
3395
|
+
"name": "_bare_dollar"
|
|
3396
|
+
},
|
|
3397
|
+
"named": true,
|
|
3398
|
+
"value": "word"
|
|
2786
3399
|
}
|
|
2787
3400
|
]
|
|
2788
3401
|
}
|
|
@@ -2814,6 +3427,40 @@
|
|
|
2814
3427
|
"named": true,
|
|
2815
3428
|
"value": "operator"
|
|
2816
3429
|
}
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"type": "REPEAT1",
|
|
3433
|
+
"content": {
|
|
3434
|
+
"type": "FIELD",
|
|
3435
|
+
"name": "argument",
|
|
3436
|
+
"content": {
|
|
3437
|
+
"type": "CHOICE",
|
|
3438
|
+
"members": [
|
|
3439
|
+
{
|
|
3440
|
+
"type": "ALIAS",
|
|
3441
|
+
"content": {
|
|
3442
|
+
"type": "SYMBOL",
|
|
3443
|
+
"name": "_expansion_text"
|
|
3444
|
+
},
|
|
3445
|
+
"named": true,
|
|
3446
|
+
"value": "word"
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
"type": "ALIAS",
|
|
3450
|
+
"content": {
|
|
3451
|
+
"type": "SYMBOL",
|
|
3452
|
+
"name": "_angle_text"
|
|
3453
|
+
},
|
|
3454
|
+
"named": true,
|
|
3455
|
+
"value": "word"
|
|
3456
|
+
},
|
|
3457
|
+
{
|
|
3458
|
+
"type": "SYMBOL",
|
|
3459
|
+
"name": "_quoted_or_expansion"
|
|
3460
|
+
}
|
|
3461
|
+
]
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
2817
3464
|
}
|
|
2818
3465
|
]
|
|
2819
3466
|
},
|
|
@@ -2824,7 +3471,18 @@
|
|
|
2824
3471
|
"value": -1,
|
|
2825
3472
|
"content": {
|
|
2826
3473
|
"type": "PATTERN",
|
|
2827
|
-
"value": "([^}$`\"'
|
|
3474
|
+
"value": "([^}$`\"'\\\\<>]|[<>]+[^(}$`\"'\\\\<>]|\\\\(.|\\r?\\n))+"
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
},
|
|
3478
|
+
"_angle_text": {
|
|
3479
|
+
"type": "TOKEN",
|
|
3480
|
+
"content": {
|
|
3481
|
+
"type": "PREC",
|
|
3482
|
+
"value": -1,
|
|
3483
|
+
"content": {
|
|
3484
|
+
"type": "PATTERN",
|
|
3485
|
+
"value": "[<>]"
|
|
2828
3486
|
}
|
|
2829
3487
|
}
|
|
2830
3488
|
},
|
|
@@ -2838,6 +3496,10 @@
|
|
|
2838
3496
|
"type": "STRING",
|
|
2839
3497
|
"value": "$("
|
|
2840
3498
|
},
|
|
3499
|
+
{
|
|
3500
|
+
"type": "SYMBOL",
|
|
3501
|
+
"name": "_substitution_start"
|
|
3502
|
+
},
|
|
2841
3503
|
{
|
|
2842
3504
|
"type": "CHOICE",
|
|
2843
3505
|
"members": [
|
|
@@ -2850,6 +3512,10 @@
|
|
|
2850
3512
|
}
|
|
2851
3513
|
]
|
|
2852
3514
|
},
|
|
3515
|
+
{
|
|
3516
|
+
"type": "SYMBOL",
|
|
3517
|
+
"name": "_substitution_end"
|
|
3518
|
+
},
|
|
2853
3519
|
{
|
|
2854
3520
|
"type": "STRING",
|
|
2855
3521
|
"value": ")"
|
|
@@ -2871,6 +3537,10 @@
|
|
|
2871
3537
|
"named": false,
|
|
2872
3538
|
"value": "${"
|
|
2873
3539
|
},
|
|
3540
|
+
{
|
|
3541
|
+
"type": "SYMBOL",
|
|
3542
|
+
"name": "_brace_substitution_start"
|
|
3543
|
+
},
|
|
2874
3544
|
{
|
|
2875
3545
|
"type": "CHOICE",
|
|
2876
3546
|
"members": [
|
|
@@ -2883,6 +3553,10 @@
|
|
|
2883
3553
|
}
|
|
2884
3554
|
]
|
|
2885
3555
|
},
|
|
3556
|
+
{
|
|
3557
|
+
"type": "SYMBOL",
|
|
3558
|
+
"name": "_brace_substitution_end"
|
|
3559
|
+
},
|
|
2886
3560
|
{
|
|
2887
3561
|
"type": "STRING",
|
|
2888
3562
|
"value": "}"
|
|
@@ -2942,6 +3616,10 @@
|
|
|
2942
3616
|
}
|
|
2943
3617
|
]
|
|
2944
3618
|
},
|
|
3619
|
+
{
|
|
3620
|
+
"type": "SYMBOL",
|
|
3621
|
+
"name": "_substitution_start"
|
|
3622
|
+
},
|
|
2945
3623
|
{
|
|
2946
3624
|
"type": "CHOICE",
|
|
2947
3625
|
"members": [
|
|
@@ -2954,6 +3632,10 @@
|
|
|
2954
3632
|
}
|
|
2955
3633
|
]
|
|
2956
3634
|
},
|
|
3635
|
+
{
|
|
3636
|
+
"type": "SYMBOL",
|
|
3637
|
+
"name": "_substitution_end"
|
|
3638
|
+
},
|
|
2957
3639
|
{
|
|
2958
3640
|
"type": "STRING",
|
|
2959
3641
|
"value": ")"
|
|
@@ -2970,6 +3652,10 @@
|
|
|
2970
3652
|
"type": "STRING",
|
|
2971
3653
|
"value": "$(("
|
|
2972
3654
|
},
|
|
3655
|
+
{
|
|
3656
|
+
"type": "SYMBOL",
|
|
3657
|
+
"name": "_substitution_start"
|
|
3658
|
+
},
|
|
2973
3659
|
{
|
|
2974
3660
|
"type": "CHOICE",
|
|
2975
3661
|
"members": [
|
|
@@ -2982,6 +3668,10 @@
|
|
|
2982
3668
|
}
|
|
2983
3669
|
]
|
|
2984
3670
|
},
|
|
3671
|
+
{
|
|
3672
|
+
"type": "SYMBOL",
|
|
3673
|
+
"name": "_substitution_end"
|
|
3674
|
+
},
|
|
2985
3675
|
{
|
|
2986
3676
|
"type": "STRING",
|
|
2987
3677
|
"value": "))"
|
|
@@ -2995,6 +3685,10 @@
|
|
|
2995
3685
|
"type": "STRING",
|
|
2996
3686
|
"value": "$["
|
|
2997
3687
|
},
|
|
3688
|
+
{
|
|
3689
|
+
"type": "SYMBOL",
|
|
3690
|
+
"name": "_bracket_substitution_start"
|
|
3691
|
+
},
|
|
2998
3692
|
{
|
|
2999
3693
|
"type": "CHOICE",
|
|
3000
3694
|
"members": [
|
|
@@ -3007,6 +3701,10 @@
|
|
|
3007
3701
|
}
|
|
3008
3702
|
]
|
|
3009
3703
|
},
|
|
3704
|
+
{
|
|
3705
|
+
"type": "SYMBOL",
|
|
3706
|
+
"name": "_bracket_substitution_end"
|
|
3707
|
+
},
|
|
3010
3708
|
{
|
|
3011
3709
|
"type": "STRING",
|
|
3012
3710
|
"value": "]"
|
|
@@ -3108,8 +3806,35 @@
|
|
|
3108
3806
|
]
|
|
3109
3807
|
},
|
|
3110
3808
|
"number": {
|
|
3111
|
-
"type": "
|
|
3112
|
-
"
|
|
3809
|
+
"type": "CHOICE",
|
|
3810
|
+
"members": [
|
|
3811
|
+
{
|
|
3812
|
+
"type": "PATTERN",
|
|
3813
|
+
"value": "(0[xX][0-9a-fA-F]+|[0-9]+#[0-9a-zA-Z@_]+|[0-9]+)"
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
"type": "SEQ",
|
|
3817
|
+
"members": [
|
|
3818
|
+
{
|
|
3819
|
+
"type": "PATTERN",
|
|
3820
|
+
"value": "[0-9]+#"
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
"type": "CHOICE",
|
|
3824
|
+
"members": [
|
|
3825
|
+
{
|
|
3826
|
+
"type": "SYMBOL",
|
|
3827
|
+
"name": "simple_expansion"
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"type": "SYMBOL",
|
|
3831
|
+
"name": "expansion"
|
|
3832
|
+
}
|
|
3833
|
+
]
|
|
3834
|
+
}
|
|
3835
|
+
]
|
|
3836
|
+
}
|
|
3837
|
+
]
|
|
3113
3838
|
},
|
|
3114
3839
|
"_arithmetic_variable": {
|
|
3115
3840
|
"type": "PATTERN",
|
|
@@ -3881,6 +4606,10 @@
|
|
|
3881
4606
|
{
|
|
3882
4607
|
"type": "PATTERN",
|
|
3883
4608
|
"value": "\\\\\\r?\\n"
|
|
4609
|
+
},
|
|
4610
|
+
{
|
|
4611
|
+
"type": "SYMBOL",
|
|
4612
|
+
"name": "_line_continuation"
|
|
3884
4613
|
}
|
|
3885
4614
|
],
|
|
3886
4615
|
"conflicts": [],
|
|
@@ -3950,6 +4679,38 @@
|
|
|
3950
4679
|
"type": "SYMBOL",
|
|
3951
4680
|
"name": "_newline"
|
|
3952
4681
|
},
|
|
4682
|
+
{
|
|
4683
|
+
"type": "SYMBOL",
|
|
4684
|
+
"name": "_substitution_start"
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
"type": "SYMBOL",
|
|
4688
|
+
"name": "_substitution_end"
|
|
4689
|
+
},
|
|
4690
|
+
{
|
|
4691
|
+
"type": "SYMBOL",
|
|
4692
|
+
"name": "_brace_substitution_end"
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
"type": "SYMBOL",
|
|
4696
|
+
"name": "_bracket_substitution_end"
|
|
4697
|
+
},
|
|
4698
|
+
{
|
|
4699
|
+
"type": "SYMBOL",
|
|
4700
|
+
"name": "_extglob_prefix"
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
"type": "SYMBOL",
|
|
4704
|
+
"name": "_line_continuation"
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
"type": "SYMBOL",
|
|
4708
|
+
"name": "_brace_substitution_start"
|
|
4709
|
+
},
|
|
4710
|
+
{
|
|
4711
|
+
"type": "SYMBOL",
|
|
4712
|
+
"name": "_bracket_substitution_start"
|
|
4713
|
+
},
|
|
3953
4714
|
{
|
|
3954
4715
|
"type": "SYMBOL",
|
|
3955
4716
|
"name": "__error_recovery"
|