mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
349 B
Rust
10 lines
349 B
Rust
use helix_loader::grammar::{build_grammars, fetch_grammars};
|
|
|
|
fn main() {
|
|
if std::env::var("HELIX_DISABLE_AUTO_GRAMMAR_BUILD").is_err() {
|
|
fetch_grammars().expect("Failed to fetch tree-sitter grammars");
|
|
build_grammars(Some(std::env::var("TARGET").unwrap()))
|
|
.expect("Failed to compile tree-sitter grammars");
|
|
}
|
|
}
|