Files
test-repo/tests/integration/plugins/extensions/plugin.cjs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
372 B
JavaScript
Raw Normal View History

"use strict";
module.exports = {
languages: [
{
name: "foo",
parsers: ["foo-parser"],
2022-07-20 23:18:24 +08:00
extensions: [".foo"],
},
],
parsers: {
"foo-parser": {
2022-07-20 23:18:24 +08:00
parse: (text) => ({ text }),
astFormat: "foo-ast",
},
},
printers: {
"foo-ast": {
2022-07-20 23:18:24 +08:00
print(path) {
return ["!", path.getValue().text];
},
},
},
};