Files
FixIt/packages/chroma-lexers/README.md
T
Cell f5b030b4eb chore(packages): replace helpers with standalone chroma-lexers and enrich shared
- Replace helpers dispatcher pattern with standalone chroma-lexers package
- Add runCommand, fromRoot, consola re-export to shared
- Update versioning and integration to use shared utilities
- Shorten dev version format: base36 timestamp, no hash
- Rename eslint.config.js to eslint.config.ts (add jiti)
- Add README.md to each package
2026-06-11 10:35:10 +08:00

558 B

@hugo-fixit/chroma-lexers

Generates the Chroma lexer SCSS map (assets/scss/core/maps/_chroma-lexers.scss) by fetching lexer definitions from the Chroma repository on GitHub.

Usage

pnpm gen:lexers

How it works

  1. Fetches lexer definitions (XML + Go) from the Chroma GitHub repo via the GitHub API
  2. Extracts language names and aliases from each lexer
  3. Generates a SCSS map ($chroma-lexers) mapping aliases to canonical names
  4. Appends custom code types defined in src/custom-types.ts