Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / code / src / main / rust / queries / README.md
| 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 |
| 5 | queries travel with the pinned grammar crates in `../Cargo.toml` (and are frozen by `Cargo.lock`). |
| 6 | |
| 7 | If 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 |
| 9 | editor's colour kinds by `kind_for` in `src/lib.rs`. |