rvirding / leex

Lexical analyzer generator for Erlang
BSD 2-Clause "Simplified" License
115 stars 17 forks source link

Column number support #3

Open joshprice opened 8 years ago

joshprice commented 8 years ago

This is currently needed for precise error messages in both https://github.com/graphql-elixir/graphql and https://github.com/absinthe-graphql/absinthe.

joagre commented 4 years ago

I also miss column number support.

rvirding commented 4 years ago

Hmm, is the first character in a line in column 0 or 1? And do you treat tabs as one character or "pad" them out to the next 8th position? Just thinking out loud really.

MarkoMin commented 2 years ago

Don't know if it is still relevant, but I've implemented column number support as this year's Spawnfest project. Started counting columns at 1 and I've set the default tab size to 8, but left the possibility to configure it to your needs. The project can be found here. Any feedback is very welcome :D