Skip to content

Commit

Permalink
tools: fix json doc generation
Browse files Browse the repository at this point in the history
Current processList function in tools/doc/json.js does not recognise
{"type":"loose_item_start"}. Fix it.

PR-URL: nodejs#5943
Fixes: nodejs#5942
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
  • Loading branch information
firedfox authored and silverwind committed Mar 30, 2016
1 parent 761787b commit 05b3a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function processList(section) {
list.forEach(function(tok) {
var type = tok.type;
if (type === 'space') return;
if (type === 'list_item_start') {
if (type === 'list_item_start' || type === 'loose_item_start') {
var n = {};
if (!current) {
values.push(n);
Expand Down

0 comments on commit 05b3a0b

Please sign in to comment.