## Assets imported from [bat](https://github.com/sharkdp/bat)

`syntaxes.bin` and `ansi.tmTheme` were imported from bat `7be9485c3690799ee204ec5195172f9e90f49924`. They're licensed with
[the MIT license](./bat-LICENSE-MIT).

## How to update `syntaxes.bin`

Copy from [bat's assets directory](https://github.com/sharkdp/bat/tree/master/assets).

## How to update `themes.bin`

The file is generated by [`assets/builder`](./builder). Run the following command in this directory.

```sh
cd ./builder && cargo run
```

## How to add a new color theme

1. Add the color theme repository to [`./submodules`](./submodules) as Git submodule.
2. Edit [`./builder/src/main.rs`](./builder/src/main.rs). Add the path to `.tmTheme` file to `THEME_PATHS` constant.
3. Run `cargo run` to re-generate `themes.bin`.

**Note:** [The CI workflow](../.github/workflows/assets.yaml) checks if the `themes.bin` file is up-to-date.
