Always generate parser.h, regardless of chosen ABI version
For some ABI changes, we may need to make changes to the parser.h in order to restore a previous binary format, but for the current range of supported ABI versions (13 + 14), the current parser.h is fine. Refs #1599
This commit is contained in:
parent
3ff5c19403
commit
994cb61f2c
1 changed files with 1 additions and 4 deletions
|
|
@ -86,10 +86,7 @@ pub fn generate_parser_in_directory(
|
|||
|
||||
write_file(&src_path.join("parser.c"), c_code)?;
|
||||
write_file(&src_path.join("node-types.json"), node_types_json)?;
|
||||
|
||||
if abi_version == tree_sitter::LANGUAGE_VERSION {
|
||||
write_file(&header_path.join("parser.h"), tree_sitter::PARSER_HEADER)?;
|
||||
}
|
||||
write_file(&header_path.join("parser.h"), tree_sitter::PARSER_HEADER)?;
|
||||
|
||||
if generate_bindings {
|
||||
binding_files::generate_binding_files(&repo_path, &language_name)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue