Skip to content

Commit

Permalink
Fix: #4 array size declarator was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
lammas committed Aug 29, 2016
1 parent 54befcc commit 5d75c7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('=');
Expand Down

0 comments on commit 5d75c7e

Please sign in to comment.