Skip to content

Commit 33af417

Browse files
committed
fix some filesystem related issues and make possible to run nattlua build from a different working directory
1 parent 497ecb4 commit 33af417

File tree

11 files changed

+76
-519
lines changed

11 files changed

+76
-519
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
out.lua
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
os.execute("cd examples/projects/luajit && nattlua build")
1+
os.execute("cd examples/projects/luajit && luajit ../../../nattlua.lua build")

examples/projects/luajit/nlconfig.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@ config.commands["build"] = {
2020
local code, err = builder:Emit(
2121
{
2222
pretty_print = true,
23-
string_quote = "\"",
24-
no_semicolon = true,
23+
no_newlines = false,
2524
omit_invalid_code = true,
2625
comment_type_annotations = true,
2726
type_annotations = false,
2827
force_parenthesis = true,
29-
extra_indent = {
30-
Start = {to = "Stop"},
31-
Toggle = "toggle",
32-
},
3328
}
3429
)
3530
local file = assert(io.open("out.lua", "w"))

0 commit comments

Comments
 (0)