Files
test-repo/tests_integration/plugins/extensions/plugin.js
T

24 lines
409 B
JavaScript
Raw Normal View History

"use strict";
const concat = require("../../../src/doc").builders.concat;
module.exports = {
languages: [
{
name: "foo",
parsers: ["foo-parser"],
extensions: [".foo"]
}
],
parsers: {
"foo-parser": {
parse: text => ({ text }),
astFormat: "foo-ast"
}
},
printers: {
"foo-ast": {
print: path => concat(["!", path.getValue().text])
}
}
};