Gim/internal/syntax/README.md
2026-04-07 11:01:07 -07:00

11 lines
448 B
Markdown

# How to add more languages now (quick workflow)
1. Add binding dependency in go.mod
2. Add query file under internal/syntax/queries/<lang>/highlights.scm
3. Embed it in internal/syntax/query_assets.go
4. Add one register(...) block in internal/syntax/registry.go
5. Update internal/syntax/query_assets_test.go with another test
## Where to get .scm files
[nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries)