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
|
Swig: true
|
||||||
Visualforce: true
|
Visualforce: true
|
||||||
"Riot.js": true
|
"Riot.js": true
|
||||||
|
XTemplate: true
|
||||||
}
|
}
|
||||||
|
|
||||||
beautify: (text, language, options) ->
|
beautify: (text, language, options) ->
|
||||||
|
@ -74,7 +75,7 @@ module.exports = class PrettyDiff extends Beautifier
|
||||||
lang = "ejs"
|
lang = "ejs"
|
||||||
when "ERB"
|
when "ERB"
|
||||||
lang = "html_ruby"
|
lang = "html_ruby"
|
||||||
when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js"
|
when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate"
|
||||||
lang = "handlebars"
|
lang = "handlebars"
|
||||||
when "SGML"
|
when "SGML"
|
||||||
lang = "markup"
|
lang = "markup"
|
||||||
|
|
Loading…
Reference in New Issue