From 83e3b9edc4e3ac5af2c7d24b0527bc5f7d745e20 Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sun, 1 Apr 2018 02:51:53 +0100 Subject: [PATCH] Add missing whitespace to generated parsers --- lib/compiler/passes/generate-js.js | 2 +- lib/parser.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler/passes/generate-js.js b/lib/compiler/passes/generate-js.js index 089970c..1a4a278 100644 --- a/lib/compiler/passes/generate-js.js +++ b/lib/compiler/passes/generate-js.js @@ -1450,7 +1450,7 @@ function generateJS( ast, session, options ) { " }", " }", "", - use( "filename" ) ? " var peg$VALIDFILENAME = typeof options.filename === \"string\" && options.filename.length > 0;" : "", + use( "filename" ) ? " var peg$VALIDFILENAME = typeof options.filename === \"string\" && options.filename.length > 0;" : "", " function peg$computeLocation(startPos, endPos) {", " var loc = {};", "", diff --git a/lib/parser.js b/lib/parser.js index 7677c3f..0ebc7fb 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -448,7 +448,7 @@ function peg$parse(input, options) { } } - var peg$VALIDFILENAME = typeof options.filename === "string" && options.filename.length > 0; + var peg$VALIDFILENAME = typeof options.filename === "string" && options.filename.length > 0; function peg$computeLocation(startPos, endPos) { var loc = {};