An Erlang lexer and syntax highlighter in Gleam
1# Changelog
2
3## v2.2.0 - 2025-11-04
4
5- Updated the JavaScript FFI code to use the new API.
6
7- `pearl` now requires Gleam v1.13 or higher.
8
9## v2.1.0 - 2025-09-01
10
11- Improved the performance of lexing comments and escape sequences.
12
13## v2.0.0 - 2025-08-22
14
15- Merged the `pearl/token` and `pearl/highlight` modules into one `pearl` module.
16
17- Renamed several variants and functions to prevent name clashes.
18 - `pearl/token.to_source` -> `pearl.token_to_source`
19 - `pearl.UnterminatedAtom` -> `pearl.UnterminatedQuotedAtom`
20 - `pearl.UnterminatedString` -> `pearl.UnterminatedStringLiteral`
21 - `pearl/highlight.tokens` -> `pearl.highlight_tokens`
22 - `pearl/highlight.ansi` -> `pearl.highlight_ansi`
23 - `pearl/highlight.html` -> `pearl.highlight_html`
24 - `pearl/highlight.{type Token}` -> `pearl.HighlightToken`
25
26- Added the `stringify_error` function.
27
28## v1.0.0 - 2025-08-21
29
30- Initial release.