I searched for this a while ago for Vim or Emacs and couldn't find anything, so I started writing my own mode for Emacs. This did not lead to anything, since I pretty much stopped using TT, but if my memory is not necessary, you only need to parse something:
grammar Name includes # something like "include Something" rule rule_name tokens_or_rules { inner_method { } } <MyModule> end end
Which may not be too hard after reading this .
PS: Keep in mind that this grammar is really similar to the one used by RSpec, which is a natural Ruby, so maybe you can get some help by reading this.
Federico builes
source share