Refactor "class" emitter function a bit

redux
David Majda 13 years ago
parent 0748fee1d3
commit 2120c908c7

@ -954,12 +954,12 @@ PEG.compiler.emitter = function(ast) {
'} else {',
' #{resultVar} = null;',
' if (reportFailures === 0) {',
' matchFailed(#{string(rawText)});',
' matchFailed(#{string(node.rawText)});',
' }',
'}',
{
node: node,
regexp: regexp,
rawText: node.rawText,
resultVar: resultVar(context.resultIndex)
}
);

Loading…
Cancel
Save