generate: Ensure that field_map_slices array is long enough
This commit is contained in:
parent
09fb24c03d
commit
a5a9000e29
1 changed files with 2 additions and 1 deletions
|
|
@ -525,7 +525,8 @@ impl Generator {
|
|||
|
||||
add_line!(
|
||||
self,
|
||||
"static const TSFieldMapSlice ts_field_map_slices[] = {{",
|
||||
"static const TSFieldMapSlice ts_field_map_slices[{}] = {{",
|
||||
self.parse_table.production_infos.len(),
|
||||
);
|
||||
indent!(self);
|
||||
for (production_id, (row_id, length)) in field_map_ids.into_iter().enumerate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue