diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-17 22:00:19 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-17 22:00:19 -0800 |
commit | b34e19cd2f32342fafd6ae76de4e537240784f71 (patch) | |
tree | 38c19f2dcd14948eda23f859633df8ca0ff750bf /js/lib/blocks.js | |
parent | 7b0feef72f8dd6e6d1ea61e70272fb826202e820 (diff) |
Renamed DocParser -> Parser.
Note: library users should update their code or it will break.
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; |