@konomanoasa/tree-sitter-yaml 0.3.0 → 0.5.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 +2 -2
- package/README.md +4 -5
- package/grammar.js +478 -267
- package/package.json +5 -5
- package/src/grammar.json +3230 -1995
- package/src/node-types.json +96 -2
- package/src/parser.c +62335 -164747
- package/src/scanner.c +1230 -1202
- package/test/bindings.test.rs +376 -13
- package/tree-sitter.json +1 -1
package/src/node-types.json
CHANGED
|
@@ -74,7 +74,18 @@
|
|
|
74
74
|
{
|
|
75
75
|
"type": "block_mapping",
|
|
76
76
|
"named": true,
|
|
77
|
-
"fields": {
|
|
77
|
+
"fields": {
|
|
78
|
+
"issue": {
|
|
79
|
+
"multiple": true,
|
|
80
|
+
"required": false,
|
|
81
|
+
"types": [
|
|
82
|
+
{
|
|
83
|
+
"type": "syntax_issue",
|
|
84
|
+
"named": true
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
78
89
|
"children": {
|
|
79
90
|
"multiple": true,
|
|
80
91
|
"required": true,
|
|
@@ -82,6 +93,14 @@
|
|
|
82
93
|
{
|
|
83
94
|
"type": "block_mapping_pair",
|
|
84
95
|
"named": true
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "comment",
|
|
99
|
+
"named": true
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "line_prefix",
|
|
103
|
+
"named": true
|
|
85
104
|
}
|
|
86
105
|
]
|
|
87
106
|
}
|
|
@@ -405,7 +424,18 @@
|
|
|
405
424
|
{
|
|
406
425
|
"type": "block_sequence",
|
|
407
426
|
"named": true,
|
|
408
|
-
"fields": {
|
|
427
|
+
"fields": {
|
|
428
|
+
"issue": {
|
|
429
|
+
"multiple": true,
|
|
430
|
+
"required": false,
|
|
431
|
+
"types": [
|
|
432
|
+
{
|
|
433
|
+
"type": "syntax_issue",
|
|
434
|
+
"named": true
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
},
|
|
409
439
|
"children": {
|
|
410
440
|
"multiple": true,
|
|
411
441
|
"required": true,
|
|
@@ -1094,6 +1124,10 @@
|
|
|
1094
1124
|
"type": "tab_in_indentation",
|
|
1095
1125
|
"named": true
|
|
1096
1126
|
},
|
|
1127
|
+
{
|
|
1128
|
+
"type": "unexpected_collection_content",
|
|
1129
|
+
"named": true
|
|
1130
|
+
},
|
|
1097
1131
|
{
|
|
1098
1132
|
"type": "unexpected_document_content",
|
|
1099
1133
|
"named": true
|
|
@@ -1422,6 +1456,10 @@
|
|
|
1422
1456
|
"type": "unexpected_chomping_indicator",
|
|
1423
1457
|
"named": true
|
|
1424
1458
|
},
|
|
1459
|
+
{
|
|
1460
|
+
"type": "unexpected_collection_content",
|
|
1461
|
+
"named": true
|
|
1462
|
+
},
|
|
1425
1463
|
{
|
|
1426
1464
|
"type": "unexpected_directive_parameter",
|
|
1427
1465
|
"named": true
|
|
@@ -2114,6 +2152,62 @@
|
|
|
2114
2152
|
]
|
|
2115
2153
|
}
|
|
2116
2154
|
},
|
|
2155
|
+
{
|
|
2156
|
+
"type": "unexpected_collection_content",
|
|
2157
|
+
"named": true,
|
|
2158
|
+
"fields": {
|
|
2159
|
+
"content": {
|
|
2160
|
+
"multiple": false,
|
|
2161
|
+
"required": true,
|
|
2162
|
+
"types": [
|
|
2163
|
+
{
|
|
2164
|
+
"type": "alias",
|
|
2165
|
+
"named": true
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"type": "block_mapping",
|
|
2169
|
+
"named": true
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"type": "block_sequence",
|
|
2173
|
+
"named": true
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
"type": "double_quoted_scalar",
|
|
2177
|
+
"named": true
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"type": "flow_mapping",
|
|
2181
|
+
"named": true
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
"type": "flow_sequence",
|
|
2185
|
+
"named": true
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"type": "folded_scalar",
|
|
2189
|
+
"named": true
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"type": "literal_scalar",
|
|
2193
|
+
"named": true
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"type": "node_with_properties",
|
|
2197
|
+
"named": true
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"type": "plain_scalar",
|
|
2201
|
+
"named": true
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"type": "single_quoted_scalar",
|
|
2205
|
+
"named": true
|
|
2206
|
+
}
|
|
2207
|
+
]
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
},
|
|
2117
2211
|
{
|
|
2118
2212
|
"type": "unexpected_directive_parameter",
|
|
2119
2213
|
"named": true,
|