From b34e19cd2f32342fafd6ae76de4e537240784f71 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 17 Jan 2015 22:00:19 -0800 Subject: Renamed DocParser -> Parser. Note: library users should update their code or it will break. --- js/lib/blocks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/lib/blocks.js') diff --git a/js/lib/blocks.js b/js/lib/blocks.js index ce81fd9..476eb28 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -83,7 +83,7 @@ var stripFinalBlankLines = function(lns) { // DOC PARSER -// These are methods of a DocParser object, defined below. +// These are methods of a Parser object, defined below. // Returns true if parent block can contain child block. var canContain = function(parent_type, child_type) { @@ -679,8 +679,8 @@ var parse = function(input) { }; -// The DocParser object. -function DocParser(options){ +// The Parser object. +function Parser(options){ return { doc: new Document(), tip: this.doc, @@ -702,4 +702,4 @@ function DocParser(options){ }; } -module.exports = DocParser; +module.exports = Parser; -- cgit v1.2.3