tools: fix json doc generation

Current processList function in tools/doc/json.js does not recognise
{"type":"loose_item_start"}. Fix it.

PR-URL: https://github.com/nodejs/node/pull/5943
Fixes: https://github.com/nodejs/node/issues/5942
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
This commit is contained in:
firedfox 2016-03-29 18:42:17 +08:00 committed by silverwind
parent 761787be91
commit 05b3a0b22c

View File

@ -183,7 +183,7 @@ function processList(section) {
list.forEach(function(tok) { list.forEach(function(tok) {
var type = tok.type; var type = tok.type;
if (type === 'space') return; if (type === 'space') return;
if (type === 'list_item_start') { if (type === 'list_item_start' || type === 'loose_item_start') {
var n = {}; var n = {};
if (!current) { if (!current) {
values.push(n); values.push(n);