rustfmt.toml sets group_imports, imports_granularity and imports_layout, which are nightly-only; agents formatted with stable rustfmt, which ignored them. This is a formatting-only pass with `cargo +nightly fmt`. Test Plan: - cargo clippy --workspace --all-targets -- -D warnings - cargo test --workspace
13 lines
303 B
Rust
13 lines
303 B
Rust
//! Sublime syntax (also used by `bat`) (port of `extra/sublime.zig`).
|
|
|
|
use crate::{
|
|
chunks_sublime::{C0, C1},
|
|
config_fields,
|
|
};
|
|
|
|
#[must_use]
|
|
pub fn syntax() -> String {
|
|
let keywords: Vec<_> = config_fields().iter().map(|f| f.name).collect();
|
|
format!("{C0}{}{C1}", keywords.join("|"))
|
|
}
|