diff --git a/.jshintrc b/.jshintrc index 10a6bfc..fab2850 100644 --- a/.jshintrc +++ b/.jshintrc @@ -10,5 +10,6 @@ "noarg": true, "noempty": true, "nonew": true, - "trailing": true + "trailing": true, + "-W082": false } diff --git a/lib/compiler/passes/generate-javascript.js b/lib/compiler/passes/generate-javascript.js index 3e68abc..ad6de1d 100644 --- a/lib/compiler/passes/generate-javascript.js +++ b/lib/compiler/passes/generate-javascript.js @@ -951,7 +951,7 @@ module.exports = function(ast, options) { } if (ast.initializer) { - parts.push(indent4(ast.initializer.code)); + parts.push(indent4("{" + ast.initializer.code + "}")); parts.push(''); } diff --git a/lib/parser.js b/lib/parser.js index de84adf..72dfcfe 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -4836,7 +4836,7 @@ module.exports = (function() { return s0; } - + { var OPS_TO_PREFIXED_TYPES = { "$": "text", "&": "simple_and", @@ -4883,7 +4883,7 @@ module.exports = (function() { function buildList(first, rest, index) { return [first].concat(extractList(rest, index)); } - + } peg$result = peg$startRuleFunction();