You could try the DetectSyntax plugin. By default, it assigns Gemfile and Gemfile.lock the Ruby on Rails syntax, but you could change it in the settings to just Ruby if you wanted. Install it through Package Control. There are plenty of comments in the default settings file to get you started.
- Code: Select all
while self.living? do
mistake = Mistake.new
self.learn_from!(mistake) unless mistake.fatal?