elixir-makeup / makeup_erlang

Erlang lexer for Makeup
3 stars 6 forks source link

Tabs are interpreted as errors #28

Closed joshprice closed 2 months ago

joshprice commented 2 months ago

The Erlang code in this OTP doc page has tabs in it that are being interpreted and rendered as errors.

https://www.erlang.org/doc/system/erl_interface.html

Screenshot 2024-07-17 at 11 58 43 AM

~Not sure if this repo is where this is actually happening, but making an issue to keep track of it. Assuming that since it's Erlang code and exdoc that the error is here.~

Looks like the problem occurs in the lexer, \s is used but not sure what that is in this context - confusion with regex? and \t is missing.

https://github.com/elixir-makeup/makeup_erlang/blob/master/lib/makeup/lexers/erlang_lexer.ex#L17

I'll make a PR.