tree-sitter-sed 0.6.0 → 0.7.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/README.md +4 -4
- package/common/grammar.js +3 -3
- package/package.json +1 -1
- package/sed_ere/src/grammar.json +1 -1
- package/sed_ere/src/node-types.json +17 -17
- package/sed_ere/src/parser.c +2 -2
- package/src/grammar.json +3 -3
- package/src/node-types.json +25 -25
- package/src/parser.c +4 -4
- package/tree-sitter.json +2 -2
package/README.md
CHANGED
|
@@ -16,10 +16,10 @@ npm install tree-sitter-sed
|
|
|
16
16
|
|
|
17
17
|
This repository contains the following two grammars.
|
|
18
18
|
|
|
19
|
-
| Grammar | Regexp | C function |
|
|
20
|
-
| --------- | ------ | ----------------------- |
|
|
21
|
-
| `sed` | BRE | `tree_sitter_sed()` |
|
|
22
|
-
| `sed_ere` | ERE | `tree_sitter_sed_ere()` |
|
|
19
|
+
| Grammar | Regexp | C function |
|
|
20
|
+
| --------- | ------ | ----------------------- |
|
|
21
|
+
| `sed` | BRE | `tree_sitter_sed()` |
|
|
22
|
+
| `sed_ere` | ERE | `tree_sitter_sed_ere()` |
|
|
23
23
|
|
|
24
24
|
## Development
|
|
25
25
|
|
package/common/grammar.js
CHANGED
|
@@ -1276,19 +1276,19 @@ function issueDefinitions(mode) {
|
|
|
1276
1276
|
},
|
|
1277
1277
|
{
|
|
1278
1278
|
reason: "bre_subexpression_left_anchor",
|
|
1279
|
-
outcome: "
|
|
1279
|
+
outcome: "invalid_syntax",
|
|
1280
1280
|
rule: ($) => $._regex_bre_subexpression_caret,
|
|
1281
1281
|
},
|
|
1282
1282
|
{
|
|
1283
1283
|
reason: "bre_subexpression_right_anchor",
|
|
1284
|
-
outcome: "
|
|
1284
|
+
outcome: "invalid_syntax",
|
|
1285
1285
|
rule: ($) => $._regex_bre_subexpression_dollar,
|
|
1286
1286
|
},
|
|
1287
1287
|
]
|
|
1288
1288
|
: []),
|
|
1289
1289
|
{
|
|
1290
1290
|
reason: "omitted_file_separator",
|
|
1291
|
-
outcome: "
|
|
1291
|
+
outcome: "invalid_syntax",
|
|
1292
1292
|
rule: missing("omitted_file_separator"),
|
|
1293
1293
|
},
|
|
1294
1294
|
{
|
package/package.json
CHANGED
package/sed_ere/src/grammar.json
CHANGED
|
@@ -1602,21 +1602,6 @@
|
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
1604
|
},
|
|
1605
|
-
{
|
|
1606
|
-
"type": "implementation_option_syntax",
|
|
1607
|
-
"named": true,
|
|
1608
|
-
"fields": {},
|
|
1609
|
-
"children": {
|
|
1610
|
-
"multiple": false,
|
|
1611
|
-
"required": true,
|
|
1612
|
-
"types": [
|
|
1613
|
-
{
|
|
1614
|
-
"type": "omitted_file_separator",
|
|
1615
|
-
"named": true
|
|
1616
|
-
}
|
|
1617
|
-
]
|
|
1618
|
-
}
|
|
1619
|
-
},
|
|
1620
1605
|
{
|
|
1621
1606
|
"type": "incomplete_alternative",
|
|
1622
1607
|
"named": true,
|
|
@@ -1821,6 +1806,21 @@
|
|
|
1821
1806
|
"named": true,
|
|
1822
1807
|
"fields": {}
|
|
1823
1808
|
},
|
|
1809
|
+
{
|
|
1810
|
+
"type": "invalid_syntax",
|
|
1811
|
+
"named": true,
|
|
1812
|
+
"fields": {},
|
|
1813
|
+
"children": {
|
|
1814
|
+
"multiple": false,
|
|
1815
|
+
"required": true,
|
|
1816
|
+
"types": [
|
|
1817
|
+
{
|
|
1818
|
+
"type": "omitted_file_separator",
|
|
1819
|
+
"named": true
|
|
1820
|
+
}
|
|
1821
|
+
]
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
1824
|
{
|
|
1825
1825
|
"type": "label",
|
|
1826
1826
|
"named": true,
|
|
@@ -2891,11 +2891,11 @@
|
|
|
2891
2891
|
"required": true,
|
|
2892
2892
|
"types": [
|
|
2893
2893
|
{
|
|
2894
|
-
"type": "
|
|
2894
|
+
"type": "incomplete_syntax",
|
|
2895
2895
|
"named": true
|
|
2896
2896
|
},
|
|
2897
2897
|
{
|
|
2898
|
-
"type": "
|
|
2898
|
+
"type": "invalid_syntax",
|
|
2899
2899
|
"named": true
|
|
2900
2900
|
},
|
|
2901
2901
|
{
|
package/sed_ere/src/parser.c
CHANGED
|
@@ -1064,7 +1064,7 @@ static const char * const ts_symbol_names[] = {
|
|
|
1064
1064
|
[sym__unspecified_text_escape_outcome] = "unspecified_syntax",
|
|
1065
1065
|
[sym__unspecified_text_escape_issue] = "syntax_issue",
|
|
1066
1066
|
[sym__omitted_file_separator_reason] = "omitted_file_separator",
|
|
1067
|
-
[sym__omitted_file_separator_outcome] = "
|
|
1067
|
+
[sym__omitted_file_separator_outcome] = "invalid_syntax",
|
|
1068
1068
|
[sym__omitted_file_separator_issue] = "syntax_issue",
|
|
1069
1069
|
[sym__excess_address_reason] = "excess_address",
|
|
1070
1070
|
[sym__excess_address_outcome] = "nonconforming_syntax",
|
|
@@ -55973,7 +55973,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_sed_ere(void) {
|
|
|
55973
55973
|
.max_reserved_word_set_size = 0,
|
|
55974
55974
|
.metadata = {
|
|
55975
55975
|
.major_version = 0,
|
|
55976
|
-
.minor_version =
|
|
55976
|
+
.minor_version = 7,
|
|
55977
55977
|
.patch_version = 0,
|
|
55978
55978
|
},
|
|
55979
55979
|
};
|
package/src/grammar.json
CHANGED
|
@@ -8483,7 +8483,7 @@
|
|
|
8483
8483
|
"name": "_bre_subexpression_left_anchor_outcome"
|
|
8484
8484
|
},
|
|
8485
8485
|
"named": true,
|
|
8486
|
-
"value": "
|
|
8486
|
+
"value": "invalid_syntax"
|
|
8487
8487
|
},
|
|
8488
8488
|
"_bre_subexpression_right_anchor_reason": {
|
|
8489
8489
|
"type": "SYMBOL",
|
|
@@ -8505,7 +8505,7 @@
|
|
|
8505
8505
|
"name": "_bre_subexpression_right_anchor_outcome"
|
|
8506
8506
|
},
|
|
8507
8507
|
"named": true,
|
|
8508
|
-
"value": "
|
|
8508
|
+
"value": "invalid_syntax"
|
|
8509
8509
|
},
|
|
8510
8510
|
"_omitted_file_separator_reason": {
|
|
8511
8511
|
"type": "SYMBOL",
|
|
@@ -8527,7 +8527,7 @@
|
|
|
8527
8527
|
"name": "_omitted_file_separator_outcome"
|
|
8528
8528
|
},
|
|
8529
8529
|
"named": true,
|
|
8530
|
-
"value": "
|
|
8530
|
+
"value": "invalid_syntax"
|
|
8531
8531
|
},
|
|
8532
8532
|
"_excess_address_reason": {
|
|
8533
8533
|
"type": "FIELD",
|
package/src/node-types.json
CHANGED
|
@@ -1604,29 +1604,6 @@
|
|
|
1604
1604
|
]
|
|
1605
1605
|
}
|
|
1606
1606
|
},
|
|
1607
|
-
{
|
|
1608
|
-
"type": "implementation_option_syntax",
|
|
1609
|
-
"named": true,
|
|
1610
|
-
"fields": {},
|
|
1611
|
-
"children": {
|
|
1612
|
-
"multiple": false,
|
|
1613
|
-
"required": true,
|
|
1614
|
-
"types": [
|
|
1615
|
-
{
|
|
1616
|
-
"type": "bre_subexpression_left_anchor",
|
|
1617
|
-
"named": true
|
|
1618
|
-
},
|
|
1619
|
-
{
|
|
1620
|
-
"type": "bre_subexpression_right_anchor",
|
|
1621
|
-
"named": true
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
"type": "omitted_file_separator",
|
|
1625
|
-
"named": true
|
|
1626
|
-
}
|
|
1627
|
-
]
|
|
1628
|
-
}
|
|
1629
|
-
},
|
|
1630
1607
|
{
|
|
1631
1608
|
"type": "incomplete_bracket_term",
|
|
1632
1609
|
"named": true,
|
|
@@ -1822,6 +1799,29 @@
|
|
|
1822
1799
|
"named": true,
|
|
1823
1800
|
"fields": {}
|
|
1824
1801
|
},
|
|
1802
|
+
{
|
|
1803
|
+
"type": "invalid_syntax",
|
|
1804
|
+
"named": true,
|
|
1805
|
+
"fields": {},
|
|
1806
|
+
"children": {
|
|
1807
|
+
"multiple": false,
|
|
1808
|
+
"required": true,
|
|
1809
|
+
"types": [
|
|
1810
|
+
{
|
|
1811
|
+
"type": "bre_subexpression_left_anchor",
|
|
1812
|
+
"named": true
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"type": "bre_subexpression_right_anchor",
|
|
1816
|
+
"named": true
|
|
1817
|
+
},
|
|
1818
|
+
{
|
|
1819
|
+
"type": "omitted_file_separator",
|
|
1820
|
+
"named": true
|
|
1821
|
+
}
|
|
1822
|
+
]
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
1825
|
{
|
|
1826
1826
|
"type": "label",
|
|
1827
1827
|
"named": true,
|
|
@@ -2987,11 +2987,11 @@
|
|
|
2987
2987
|
"named": true
|
|
2988
2988
|
},
|
|
2989
2989
|
{
|
|
2990
|
-
"type": "
|
|
2990
|
+
"type": "incomplete_syntax",
|
|
2991
2991
|
"named": true
|
|
2992
2992
|
},
|
|
2993
2993
|
{
|
|
2994
|
-
"type": "
|
|
2994
|
+
"type": "invalid_syntax",
|
|
2995
2995
|
"named": true
|
|
2996
2996
|
},
|
|
2997
2997
|
{
|
package/src/parser.c
CHANGED
|
@@ -1105,13 +1105,13 @@ static const char * const ts_symbol_names[] = {
|
|
|
1105
1105
|
[sym__bre_plus_escape_outcome] = "implementation_defined_syntax",
|
|
1106
1106
|
[sym__bre_plus_escape_issue] = "syntax_issue",
|
|
1107
1107
|
[sym__bre_subexpression_left_anchor_reason] = "bre_subexpression_left_anchor",
|
|
1108
|
-
[sym__bre_subexpression_left_anchor_outcome] = "
|
|
1108
|
+
[sym__bre_subexpression_left_anchor_outcome] = "invalid_syntax",
|
|
1109
1109
|
[sym__bre_subexpression_left_anchor_issue] = "syntax_issue",
|
|
1110
1110
|
[sym__bre_subexpression_right_anchor_reason] = "bre_subexpression_right_anchor",
|
|
1111
|
-
[sym__bre_subexpression_right_anchor_outcome] = "
|
|
1111
|
+
[sym__bre_subexpression_right_anchor_outcome] = "invalid_syntax",
|
|
1112
1112
|
[sym__bre_subexpression_right_anchor_issue] = "syntax_issue",
|
|
1113
1113
|
[sym__omitted_file_separator_reason] = "omitted_file_separator",
|
|
1114
|
-
[sym__omitted_file_separator_outcome] = "
|
|
1114
|
+
[sym__omitted_file_separator_outcome] = "invalid_syntax",
|
|
1115
1115
|
[sym__omitted_file_separator_issue] = "syntax_issue",
|
|
1116
1116
|
[sym__excess_address_reason] = "excess_address",
|
|
1117
1117
|
[sym__excess_address_outcome] = "nonconforming_syntax",
|
|
@@ -57941,7 +57941,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_sed(void) {
|
|
|
57941
57941
|
.max_reserved_word_set_size = 0,
|
|
57942
57942
|
.metadata = {
|
|
57943
57943
|
.major_version = 0,
|
|
57944
|
-
.minor_version =
|
|
57944
|
+
.minor_version = 7,
|
|
57945
57945
|
.patch_version = 0,
|
|
57946
57946
|
},
|
|
57947
57947
|
};
|
package/tree-sitter.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"metadata": {
|
|
24
|
-
"version": "0.
|
|
24
|
+
"version": "0.7.0",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"description": "Tree-sitter grammars for POSIX sed.",
|
|
27
27
|
"authors": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"go": false,
|
|
39
39
|
"node": false,
|
|
40
40
|
"python": false,
|
|
41
|
-
"rust":
|
|
41
|
+
"rust": false,
|
|
42
42
|
"swift": false
|
|
43
43
|
}
|
|
44
44
|
}
|