Custom syntax highlighting for Ruby and Ruby On Rails for Sublime Text 2. Should also work with TextMate and Sublime Text 3, but hasn't been tested. Sublime Docs on Syntax Definitions
NOTE: This doesn't work on Sublime 3.1 :( I'll have to find time to try to fix it.
%i
and%I
arrays - symbol- Classes without method calls - class
require_relative
- keywordfail
- keyword- YARD documentation tags -
entity.yardoc.tag.ruby
- YARD variable names -
entity.yardoc.name.ruby
- YARD option names -
entity.yardoc.option.ruby
- YARD data types -
entity.yardoc.type.ruby
- TODO-style comment tags -
entity.comment.todo
- add
validates
toActiveRecord
keywords - add Rails 4
ActionController
keywords
- color block arguments pink / italicize
- color class and module declarations green
- color Instance-vars and Class-vars purple
- color YARD tags light gray / italicize
- color YARD variable names brown
- color YARD option names purple
- color YARD data types teal
- invert colors on TODO-style comments
- handle
|
as a paired character (thanks to hivehand) - Add
alt+d
as goto_definition
- Don't auto-complete
:key => value
when a colon is typed
Clone the repository, then from the home directory run:
bash sublime_2_setup.sh
or
bash sublime_3_setup.sh
Textmate Setup coming soon!