diff options
author | alon@honor <none@none> | 2010-09-25 20:57:52 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-25 20:57:52 -0700 |
commit | 736dac5109a9899a5a72f12f68d9544cb2b8781b (patch) | |
tree | 03bd06b6d7d7b91bf1b1db7a023d5a342380b54b /src/jsifier.js | |
parent | b94c061e122f155cc5c1262a1bb470cb49ee04b4 (diff) |
fix for arrays of arrays +test
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 381b4cf7..8553676c 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -126,7 +126,8 @@ function JSify(data) { var type = segment[0].text; return '[' + alignStruct(handleSegments(segment[1].tokens), type).join(', ') + ']'; } else if (segment[1].type == '[') { - return '[' + handleSegments(segment[1].item[0].tokens).join(', ') + ']'; // XXX alignStruct? + var type = segment[0].text; + return '[' + alignStruct(handleSegments(segment[1].item[0].tokens), type).join(', ') + ']'; } else if (segment.length == 2) { return parseNumerical(toNiceIdent(segment[1].text)); } else { |