feat(generate): don't embed tree-sitter CLI version in parser
Problem: embedding the CLI version used to generate a parser triggers CI failures on all grammars for every (patch) release of tree-sitter, even if there are no actual parser changes. Solution: do not embed the version; instead rely on whether the update introduces actual (presumably desirable) changes in the parser to indicate regeneration is necessary.
This commit is contained in:
parent
31ff62445b
commit
339bad2de4
1 changed files with 1 additions and 5 deletions
|
|
@ -24,7 +24,6 @@ const SMALL_STATE_THRESHOLD: usize = 64;
|
|||
pub const ABI_VERSION_MIN: usize = 14;
|
||||
pub const ABI_VERSION_MAX: usize = LANGUAGE_VERSION;
|
||||
const ABI_VERSION_WITH_RESERVED_WORDS: usize = 15;
|
||||
const BUILD_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
#[clippy::format_args]
|
||||
macro_rules! add {
|
||||
|
|
@ -324,10 +323,7 @@ impl Generator {
|
|||
}
|
||||
|
||||
fn add_header(&mut self) {
|
||||
add_line!(
|
||||
self,
|
||||
"/* Automatically @generated by tree-sitter v{BUILD_VERSION} */",
|
||||
);
|
||||
add_line!(self, "/* Automatically @generated by tree-sitter */",);
|
||||
add_line!(self, "");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue