diff options
Diffstat (limited to 'js/lib/blocks.js')
-rw-r--r-- | js/lib/blocks.js | 8 |
1 files changed, 4 insertions, 4 deletions
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; |