diff --git a/preprocess.lua b/preprocess.lua index 97781ef..15adb0e 100644 --- a/preprocess.lua +++ b/preprocess.lua @@ -2578,7 +2578,7 @@ local function _processFileOrString(params, isFile) local main_chunk, err = loadLuaString(luaMeta, "@"..metaPathForErrorMessages, metaEnv) if not main_chunk then - local ln, _err = err:match'^.-:(%d+): (.*)' + local ln, _err = err:match"^.-:(%d+): (.*)" errorOnLine(metaPathForErrorMessages, (tonumber(ln) or 0), nil, "%s", (_err or err)) end @@ -2631,7 +2631,7 @@ local function _processFileOrString(params, isFile) local chunk, err = loadLuaString(luaToCheck, "@"..pathOut) if not chunk then - local ln, _err = err:match'^.-:(%d+): (.*)' + local ln, _err = err:match"^.-:(%d+): (.*)" errorOnLine(pathOut, (tonumber(ln) or 0), nil, "%s", (_err or err)) end end diff --git a/tests/runTests.cmd b/tests/runTestSuite.cmd similarity index 66% rename from tests/runTests.cmd rename to tests/runTestSuite.cmd index 2f2bce5..153f64e 100644 --- a/tests/runTests.cmd +++ b/tests/runTestSuite.cmd @@ -3,4 +3,4 @@ CD /D "%~dp0.." IF NOT EXIST local MD local -lua tests/runTests.lua +lua tests/suite.lua diff --git a/tests/runTests.lua b/tests/suite.lua similarity index 99% rename from tests/runTests.lua rename to tests/suite.lua index 93da8a8..4423a16 100644 --- a/tests/runTests.lua +++ b/tests/suite.lua @@ -1,5 +1,5 @@ --============================================================== ---= Tests for LuaPreprocess. +--= Test suite for LuaPreprocess --============================================================== io.stdout:setvbuf("no")