summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/remark-parse/index.js
blob: 1579e35518c582104be0432de0ec32e24c824a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

var unherit = require('unherit');
var xtend = require('xtend');
var Parser = require('./lib/parser.js');

module.exports = parse;
parse.Parser = Parser;

function parse(options) {
  var Local = unherit(Parser);
  Local.prototype.options = xtend(Local.prototype.options, this.data('settings'), options);
  this.Parser = Local;
}