From 994cb61f2c189d33b16280dcbebea5312a449c02 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 23 Jan 2022 10:29:52 -0800 Subject: [PATCH] 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 --- cli/src/generate/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cli/src/generate/mod.rs b/cli/src/generate/mod.rs index ca2209cb..309032d3 100644 --- a/cli/src/generate/mod.rs +++ b/cli/src/generate/mod.rs @@ -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)?;