lix-website/themes/lix/assets/bootstrap/node_modules/postcss-syntax/parser.js

19 lines
332 B
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
"use strict";
const getSyntax = require("./get-syntax");
const patch = require("./patch-postcss");
function parser (source, lang, opts) {
patch();
const syntax = getSyntax(lang, opts);
const root = syntax.parse(source, opts);
root.source.syntax = syntax;
root.source.lang = lang;
return root;
}
module.exports = parser;