Pearl – An Erlang lexer and syntax highlighter in Gleam
11 days ago
- #Gleam
- #Syntax Highlighting
- #Erlang
- Pearl is an Erlang lexer and syntax highlighter written in Gleam.
- It converts Erlang source code into tokens and supports highlighting via ANSI colors, HTML, or custom formats.
- Inspired by contour, it can lex all valid Erlang programs, though it's based on documentation and other parsers due to the lack of a technical specification.
- Users can add Pearl to their Gleam projects with `gleam add pearl@2` and use its API for various highlighting needs.
- Documentation is available at https://hexdocs.pm/pearl, and issues can be reported for missing features.