"use strict";

const prettier = require("prettier/local");
const concat = prettier.doc.builders.concat;

module.exports = {
  languages: [
    {
      name: "foo",
      parsers: ["foo"],
      extensions: [".foo"]
    }
  ],
  parsers: {
    foo: {
      parse: text => ({ text }),
      astFormat: "foo"
    }
  },
  printers: {
    foo: {
      print: path => concat(["foo+", path.getValue().text])
    }
  }
};
