Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / code / src / main / rust / queries / README.md

README.md559 BRenderedCodeRaw
1# Highlight queries
2
3`libcode_ts` reuses each grammar crate's **bundled** `highlights` query (exposed as a
4`HIGHLIGHTS_QUERY` / `HIGHLIGHT_QUERY` constant), so there are no checked-in `.scm` files here — the
5queries travel with the pinned grammar crates in `../Cargo.toml` (and are frozen by `Cargo.lock`).
6
7If a grammar you add does not ship a highlights query, drop a `<lang>.scm` in this directory and
8`include_str!` it from `src/lib.rs` instead of the crate constant. Capture names are mapped to the
9editor's colour kinds by `kind_for` in `src/lib.rs`.