Added hh_format beautifier
This commit is contained in:
parent
70dbad5819
commit
afc0919252
|
@ -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)
|
||||
])
|
Loading…
Reference in New Issue