# Development

1. Update `grammar.js` and run `bun run build` to generate the parser.
2. Run `bun run test` to run the tests.
3. If you have update the grammar, you can write new tests in `test/` and run `bun run test` to see if they pass.


## Preview highlighter

1. Run `bun run dev` to start a web server that will highlight the code in `examples/*.pest`.

## Release new version

1. Update `Cargo.toml` and `package.json` with the new version number.
2. Git commit with "Release vX.Y.Z" and push, don't create tag, the CI will do it.
3. GitHub Actions will automatically publish the new version to crates.io.
