Skip to content

Commit 274d0cd

Browse files
committed
fix: binding.cc overwrite should replace PARSER_NAME
1 parent 3639781 commit 274d0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/generate/grammar_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub fn generate_grammar_files(
201201
fs::read_to_string(path).with_context(|| "Failed to read binding.cc")?;
202202
if binding_cc.contains("NAN_METHOD(New) {}") {
203203
eprintln!("Replacing binding.cc with new binding API");
204-
write_file(path, JS_BINDING_CC_TEMPLATE)?;
204+
generate_file(path, JS_BINDING_CC_TEMPLATE, language_name)?;
205205
}
206206
Ok(())
207207
},

0 commit comments

Comments
 (0)