rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
846 stars 115 forks source link

Elixir Scanner #220

Open zhumo opened 6 years ago

zhumo commented 6 years ago

I'd love to get an elixir scanner going. I'm wondering, since I don't expect to be able to catch all the little gotchas of a language's syntax, what level of "completeness" for a new language is required? How would I even measure "completeness"?

zhumo commented 6 years ago

https://github.com/elixir-lang/elixir/tree/master/lib/elixir/lib

I've been using the code from here to do some testing (starting with macro/env.ex). If those are not enough one could also use any of the files found in the phoenix framework.

https://github.com/phoenixframework/phoenix/tree/master/lib/phoenix

For .expected files of the tests, I'm currently writing the expected files by hand... Is that the only way to do it or am I missing some simpler way?