Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lualint
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ local function scanfile(filename)

-- Run once to see if it parses correctly

if not os.execute("luac -o lualint.tmp "..filename) then
if not os.execute("luac -o lualint.tmp \"" .. filename .. "\"") then
return nil, "file "..filename.." did not successfully parse"
end

Expand All @@ -167,7 +167,7 @@ local function scanfile(filename)

assert(os.remove("lualint.tmp"))

local bc = assert(io.popen("luac -l -p "..filename))
local bc = assert(io.popen("luac -l -p \""..filename .. "\""))

for line in bc:lines() do
-- main <examples/xhtml2wiki.lua:0> (64 instructions, 256 bytes at 0x805c1a0)
Expand Down