Skip to content

Commit 8f1b447

Browse files
committed
indent opening "function" tag of function expression
1 parent 473495c commit 8f1b447

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "its-typescript-to-lua",
3-
"version": "1.33.2-9",
3+
"version": "1.33.2-10",
44
"description": "A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!",
55
"repository": "https://github.com/TypeScriptToLua/TypeScriptToLua",
66
"homepage": "https://typescripttolua.github.io/",

src/LuaPrinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ export class LuaPrinter {
665665
const chunks: SourceChunk[] = [];
666666

667667
chunks.push("\n");
668-
chunks.push("function(");
668+
chunks.push(this.indent("function("));
669669
chunks.push(...this.printFunctionParameters(expression));
670670
chunks.push(")");
671671

0 commit comments

Comments
 (0)