Debian Codegraph @

tests/indent/lua.lua

raw symbols SCIP
1 local M = {}
2
3 local function add(a, b)
4 return a + b
5 end
6
7 function M.process(items)
8 local total = 0
9 for i, v in ipairs(items) do
10 if v > 0 then
11 total = total + v
12 else
13 total = total - v
14 end
15 end
16 local config = {
17 name = "test",
18 values = {
19 1,
20 2,
21 },
22 }
23 return total, config
24 end
25
26 return M