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:
Max Brunsfeld 2022-01-23 10:29:52 -08:00
parent 3ff5c19403
commit 994cb61f2c

View file

@ -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)?;