Merge pull request #343 from arlolra/split2

More split outs from #339
redux
David Majda 9 years ago
commit 9815e49477

@ -1,16 +1,18 @@
{ {
"curly": true, "curly": true,
"eqeqeq": true, "eqeqeq": true,
"evil": true, "evil": true,
"forin": true, "forin": true,
"freeze": true, "freeze": true,
"immed": true, "immed": true,
"latedef": "nofunc", "latedef": "nofunc",
"laxbreak": true, "laxbreak": true,
"loopfunc": true, "loopfunc": true,
"noarg": true, "newcap": false,
"noempty": true, "noarg": true,
"nonew": true, "noempty": true,
"trailing": true, "nonew": true,
"-W082": false "trailing": true,
"validthis": true,
"-W082": false
} }

@ -761,6 +761,8 @@ function generateJavascript(ast, options) {
parts.push([ parts.push([
'(function() {', '(function() {',
' "use strict";',
'',
' /*', ' /*',
' * Generated by PEG.js 0.8.0.', ' * Generated by PEG.js 0.8.0.',
' *', ' *',
@ -1147,7 +1149,7 @@ function generateJavascript(ast, options) {
} }
if (ast.initializer) { if (ast.initializer) {
parts.push(indent4("{" + ast.initializer.code + "}")); parts.push(indent4(ast.initializer.code));
parts.push(''); parts.push('');
} }

@ -1,4 +1,6 @@
module.exports = (function() { module.exports = (function() {
"use strict";
/* /*
* Generated by PEG.js 0.8.0. * Generated by PEG.js 0.8.0.
* *
@ -4893,7 +4895,7 @@ module.exports = (function() {
return s0; return s0;
} }
{
var OPS_TO_PREFIXED_TYPES = { var OPS_TO_PREFIXED_TYPES = {
"$": "text", "$": "text",
"&": "simple_and", "&": "simple_and",
@ -4940,7 +4942,7 @@ module.exports = (function() {
function buildList(first, rest, index) { function buildList(first, rest, index) {
return [first].concat(extractList(rest, index)); return [first].concat(extractList(rest, index));
} }
}
peg$result = peg$startRuleFunction(); peg$result = peg$startRuleFunction();

Loading…
Cancel
Save