Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
added missing new line in generated typescript code and var before
an undeclared variable
  • Loading branch information
bandaloo committed Nov 28, 2020
1 parent b6909ff commit 03f4d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}

options = options || {};
tabulated = lines.map(function addIndent(line, i) {
var tabulated = lines.map(function addIndent(line, i) {
var shouldIndent = true;

if(i == 0 && !options.indentFirst) {
Expand Down Expand Up @@ -193,7 +193,7 @@
output += parser.customTokens.map(function (token) { return "declare var " + token + ": any;\n" }).join("")
output += parser.body.join('\n');
output += "\n";
output += "interface NearleyToken {";
output += "interface NearleyToken {\n";
output += " value: any;\n";
output += " [key: string]: any;\n";
output += "};\n";
Expand Down

0 comments on commit 03f4d00

Please sign in to comment.