Merge pull request #139 from wok/master

Add support for HTML (Rails) and Ruby on Rails grammar
This commit is contained in:
Glavin Wiechert 2014-11-16 10:15:18 -04:00
commit ba7d9ce799
1 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ module.exports =
beautifyHTML ?= require("js-beautify").html
text = beautifyHTML(text, self.getOptions("html", allOptions))
beautifyCompleted text
when "HTML (Ruby - ERB)"
when "HTML (Ruby - ERB)", "HTML (Rails)"
beautifyHTMLERB ?= require("./langs/html-erb-beautify")
beautifyHTMLERB text, self.getOptions("html", allOptions), beautifyCompleted
when "CSS"
@ -198,7 +198,7 @@ module.exports =
when "Python"
beautifyPython ?= require("./langs/python-beautify")
beautifyPython text, self.getOptions("python", allOptions), beautifyCompleted
when "Ruby"
when "Ruby", "Ruby on Rails"
beautifyRuby ?= require("./langs/ruby-beautify")
beautifyRuby text, self.getOptions("ruby", allOptions), beautifyCompleted
when "GitHub Markdown"