diff --git a/src/string.js b/src/string.js index 2a871ea..54977b2 100644 --- a/src/string.js +++ b/src/string.js @@ -189,6 +189,11 @@ function gen_declarator(node) { function gen_declarator_item(node) { generate(node.name); + if ('arraySize' in node) { + token('['); + generate(node.arraySize); + token(']'); + } if ('initializer' in node) { whitespace.space(); token('=');