Browse Source

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>
process-exit-stdio-flushing
firedfox 9 years ago
committed by silverwind
parent
commit
05b3a0b22c
  1. 2
      tools/doc/json.js

2
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);

Loading…
Cancel
Save