We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 218235d + d544623 commit 5b6cf78Copy full SHA for 5b6cf78
src/Transpiler.ts
@@ -364,7 +364,7 @@ export class LuaTranspiler {
364
// Add header
365
let result = "";
366
for (const variableDeclaration of (node.initializer as ts.VariableDeclarationList).declarations) {
367
- result += this.transpileVariableDeclaration(variableDeclaration);
+ result += this.indent + this.transpileVariableDeclaration(variableDeclaration);
368
}
369
result += this.indent + `while(${this.transpileExpression(node.condition)}) do\n`;
370
0 commit comments