mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
fix indentation
This commit is contained in:
parent
829dc1ae1c
commit
6825537878
19
bin/moonc
19
bin/moonc
@ -285,7 +285,6 @@ function get_sleep_func()
|
|||||||
return sleep
|
return sleep
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function plural(count, word)
|
function plural(count, word)
|
||||||
if count ~= 1 then
|
if count ~= 1 then
|
||||||
word = word .. "s"
|
word = word .. "s"
|
||||||
@ -375,10 +374,10 @@ if opts.w then
|
|||||||
for fname in protected do
|
for fname in protected do
|
||||||
local target
|
local target
|
||||||
if opts.o then
|
if opts.o then
|
||||||
target = opts.o
|
target = opts.o
|
||||||
else
|
else
|
||||||
target = target_dir..convert_path(fname)
|
target = target_dir..convert_path(fname)
|
||||||
end
|
end
|
||||||
local success, err = compile_and_write(fname, target)
|
local success, err = compile_and_write(fname, target)
|
||||||
if not success then
|
if not success then
|
||||||
io.stderr:write(table.concat({
|
io.stderr:write(table.concat({
|
||||||
@ -405,12 +404,12 @@ elseif opts.l then
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
for _, fname in ipairs(files) do
|
for _, fname in ipairs(files) do
|
||||||
local target
|
local target
|
||||||
if opts.o then
|
if opts.o then
|
||||||
target = opts.o
|
target = opts.o
|
||||||
else
|
else
|
||||||
target = target_dir..convert_path(fname)
|
target = target_dir..convert_path(fname)
|
||||||
end
|
end
|
||||||
local success, err = compile_and_write(fname, target)
|
local success, err = compile_and_write(fname, target)
|
||||||
if not success then
|
if not success then
|
||||||
io.stderr:write(fname .. "\t" .. err .. "\n")
|
io.stderr:write(fname .. "\t" .. err .. "\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user