Emit little bit less whitespace in actions

This commit is contained in:
David Majda 2010-06-07 10:45:26 +02:00
parent ee8c121676
commit 7d4911ec53
2 changed files with 66 additions and 66 deletions

View file

@ -746,7 +746,7 @@ PEG.Compiler = {
return PEG.Compiler.formatCode(
"${expressionCode}",
"var ${resultVar} = ${expressionResultVar} !== null",
" ? (function(${formalParams}) { ${action} })(${actualParams})",
" ? (function(${formalParams}) {${action}})(${actualParams})",
" : null;",
{
expressionCode: PEG.Compiler.compileNode(node.expression, expressionResultVar),