2022-02-21 13:39:23 +01:00
|
|
|
use helix_loader::grammar::{build_grammars, fetch_grammars};
|
2022-03-29 07:34:19 +02:00
|
|
|
|
2021-11-14 16:09:02 +01:00
|
|
|
fn main() {
|
2022-02-21 13:39:23 +01:00
|
|
|
if std::env::var("HELIX_DISABLE_AUTO_GRAMMAR_BUILD").is_err() {
|
|
|
|
fetch_grammars().expect("Failed to fetch tree-sitter grammars");
|
2022-07-20 16:56:26 +02:00
|
|
|
build_grammars(Some(std::env::var("TARGET").unwrap()))
|
|
|
|
.expect("Failed to compile tree-sitter grammars");
|
2022-02-21 13:39:23 +01:00
|
|
|
}
|
2021-11-14 16:09:02 +01:00
|
|
|
}
|