Added hh_format beautifier

This commit is contained in:
Michael Alexander 2016-09-22 12:57:42 +10:00
parent 70dbad5819
commit afc0919252
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
###
Requires http://hhvm.com/
###
"use strict"
Beautifier = require('./beautifier')
module.exports = class HhFormat extends Beautifier
name: "hh_format"
link: "http://hhvm.com/"
options: {
PHP: true
}
beautify: (text, language, options) ->
@run("hh_format", [
"-i",
@tempFile("input", text)
])