An Erlang lexer and syntax highlighter in Gleam

Replace JavaScript example with Erlang

+6 -1
+6 -1
README.md
··· 21 21 import pearl/highlight 22 22 23 23 pub fn main() { 24 - let code = "console.log('Hello, world!');" 24 + let code = " 25 + -module(hello). 26 + -export([hello_world/0]). 27 + 28 + hello_world() -> io:fwrite(\"Hello, world!\\n\"). 29 + " 25 30 26 31 let lexer = pearl.new(code) 27 32 // Lex syntax tokens for parsing or other uses