Problem with converted package


#1

I converted the TextMate bundle for the Elixir language (https://github.com/elixir-lang/elixir-tmbundle) into an Atom package (https://atom.io/packages/language-elixir) but it seems that something is wrong with the elixir.cson grammar definition. Atom does not apply any syntax highlight to the .ex or .exs files, and throw some JS errors instead (screenshot @ http://cl.ly/image/2L3d3W1x1l1n).

The original bundle works with both TextMate and Sublime Text 2.


#2

I just tried this out and was able to reproduce the error. I opened an issue on the Atom repo and we will look into this.


#3

I’ve submitted a fix for this in @lucasmazza’s repo. The error was caused by what appears to be a bad match conversion.

(\|\|\||&&&|^^^|<<<|>>>|~~~)

was converted to

(\\|\\|\\||&&&|^^^|<<<|>>>|~~~)

failing to properly escape the ^.
Changing the match to

(\\|\\|\\||&&&|\\^\\^\\^|<<<|>>>|~~~)

fixed the issue