Ragel language support in Atom
This package adds syntax highlighting and snippets to Ragel files in the Atom text editor.
Install
Install the package language-ragel
in Atom (Preferences -> Packages) or using Atom's package manager:
$ apm install language-ragel
Use
The package has no way of knowing what your host language is, so you must help it in one of the following ways:
either
a) Manually choose the correct grammar. Press Ctrl-Shift-L
and select Ragel in <your host language>
.
or
b) Use the file extension of your host language as infix. E.g. name your file my_machine.rb.rl
instead of my_machine.rl
for Ruby.
Snip
Contribute
If you want to change the grammar, edit the template file grammar.cson
and run generate.rb
. Don't edit the files for individual host languages directly.
Credits
The package is partially based on this Ragel grammar for TextMate.