summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiredfox <wangyang0123@gmail.com>2016-03-29 18:42:17 +0800
committerMyles Borins <mborins@us.ibm.com>2016-04-11 12:06:40 -0400
commitc33a23fd1efd7e9e160f0886adfa328d4d6e5f1d (patch)
tree3edb30e8044f59ec8a273dd57c77f2819cdfb3f5
parentcc1aab9f6a3474cf1f76234f15b179374f22d655 (diff)
downloadnodejs-c33a23fd1efd7e9e160f0886adfa328d4d6e5f1d.tar.gz
nodejs-c33a23fd1efd7e9e160f0886adfa328d4d6e5f1d.tar.bz2
nodejs-c33a23fd1efd7e9e160f0886adfa328d4d6e5f1d.zip
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>
-rw-r--r--tools/doc/json.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js
index 299c8ed9f..a80c7efb1 100644
--- a/tools/doc/json.js
+++ b/tools/doc/json.js
@@ -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);