.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / postcss-html / lib / auto-parser.js
1 "use strict";
2
3 const getSyntax = require("./get-syntax");
4
5 function autoParser (source, opts) {
6         const syntax = getSyntax(opts);
7         const document = syntax.parse(source, opts);
8         // document.source.syntax = syntax;
9         Object.defineProperty(document.source, "syntax", {
10                 get: () => syntax,
11         });
12         return document;
13 }
14
15 module.exports = autoParser;