elixir-makeup / makeup_erlang

Erlang lexer for Makeup
3 stars 6 forks source link

Improve atoms, operators and punctuations #6

Closed mracos closed 5 years ago

mracos commented 5 years ago

Improve some of the combinators as to give better tokens thus better highlight results.

I tried to explain the whys on the commit messages but if they are not that clear ping me so I can come up with a better description for this PR. 😄

Before Screenshot 2019-09-06 16 16 50 Screenshot 2019-09-06 16 17 09
After Screenshot 2019-09-06 16 17 00 Screenshot 2019-09-06 16 17 18

Things that I already mapped and we will have to do (but I was thinking about doing it in other PRs, wdyt?):

But that can be discussed waaaay later. 😄

I've been based all my changes on the "semi-official" erlang/spec, mostly the Grammar Appendix.

josevalim commented 5 years ago

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart: