
helix-syntax mostly existed for the sake of the build task which checks and compiles the submodules. Since we won't be relying on that process anymore, it doesn't end up making much sense to have a very thin crate just for some functions that we could port to helix-core. The remaining build-related code is moved to helix-term which will be able to provide grammar builds through the --build-grammars CLI flag.
24 lines
425 B
Rust
24 lines
425 B
Rust
#[macro_use]
|
|
extern crate helix_view;
|
|
|
|
pub mod application;
|
|
pub mod args;
|
|
pub mod commands;
|
|
pub mod compositor;
|
|
pub mod config;
|
|
pub mod health;
|
|
pub mod grammars;
|
|
pub mod job;
|
|
pub mod keymap;
|
|
pub mod ui;
|
|
|
|
#[cfg(not(windows))]
|
|
fn true_color() -> bool {
|
|
std::env::var("COLORTERM")
|
|
.map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
|
|
.unwrap_or(false)
|
|
}
|
|
#[cfg(windows)]
|
|
fn true_color() -> bool {
|
|
true
|
|
}
|