Fixes #758. Add XTemplate support to Pretty Diff beautifier
This commit is contained in:
parent
0c3f02d3da
commit
99073d1e02
|
@ -55,6 +55,7 @@ module.exports = class PrettyDiff extends Beautifier
|
|||
Swig: true
|
||||
Visualforce: true
|
||||
"Riot.js": true
|
||||
XTemplate: true
|
||||
}
|
||||
|
||||
beautify: (text, language, options) ->
|
||||
|
@ -74,7 +75,7 @@ module.exports = class PrettyDiff extends Beautifier
|
|||
lang = "ejs"
|
||||
when "ERB"
|
||||
lang = "html_ruby"
|
||||
when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js"
|
||||
when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate"
|
||||
lang = "handlebars"
|
||||
when "SGML"
|
||||
lang = "markup"
|
||||
|
|
Loading…
Reference in New Issue