Skip to content

Commit 994cb61

Browse files
committed
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 tree-sitter#1599
1 parent 3ff5c19 commit 994cb61

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cli/src/generate/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ pub fn generate_parser_in_directory(
8686

8787
write_file(&src_path.join("parser.c"), c_code)?;
8888
write_file(&src_path.join("node-types.json"), node_types_json)?;
89-
90-
if abi_version == tree_sitter::LANGUAGE_VERSION {
91-
write_file(&header_path.join("parser.h"), tree_sitter::PARSER_HEADER)?;
92-
}
89+
write_file(&header_path.join("parser.h"), tree_sitter::PARSER_HEADER)?;
9390

9491
if generate_bindings {
9592
binding_files::generate_binding_files(&repo_path, &language_name)?;

0 commit comments

Comments
 (0)