Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/prometheus/pipeline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function Pipeline:setLuaVersion(luaVersion)
luaVersion = luaVersion;
});
self.unparser = Unparser:new({
luaVersion = luaVersion;
LuaVersion = luaVersion;
});
self.conventions = conventions;
end
Expand Down
2 changes: 1 addition & 1 deletion src/prometheus/step.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Step:new(settings)

if data.max then
if settingValue > data.max then
logger:error(string.format("Invalid value for the Setting \"%s\" of the Step \"%s\". The biggest allowed value is %d", key, self.Name, data.min));
logger:error(string.format("Invalid value for the Setting \"%s\" of the Step \"%s\". The biggest allowed value is %d", key, self.Name, data.max));
end
end

Expand Down
4 changes: 2 additions & 2 deletions src/prometheus/steps/SplitStrings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ end

local function generateCustomFunctionLiteral(parentScope, variant)
local parser = Parser:new({
LuaVersion = LuaVersion.Lua52;
LuaVersion = LuaVersion.Lua51;
});

-- Custom Function Type 1
Expand All @@ -190,7 +190,7 @@ end

local function generateGlobalCustomFunctionDeclaration(ast, data)
local parser = Parser:new({
LuaVersion = LuaVersion.Lua52;
LuaVersion = LuaVersion.Lua51;
});

-- Custom Function Type 1
Expand Down
2 changes: 1 addition & 1 deletion src/prometheus/visitast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function visitStatement(statement, previsit, postvisit, data)
for i, expression in ipairs(statement.expressions) do
statement.expressions[i] = visitExpression(expression, previsit, postvisit, data);
end
visitBlock(statement.body, previsit, postvisit, data, false);
statement.body = visitBlock(statement.body, previsit, postvisit, data, false);
elseif(statement.kind == AstKind.IfStatement) then
statement.condition = visitExpression(statement.condition, previsit, postvisit, data);
statement.body = visitBlock(statement.body, previsit, postvisit, data, false);
Expand Down
171 changes: 0 additions & 171 deletions tests.lua

This file was deleted.

Loading