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