On 11/9/2015 2:53 AM, Aditya Mahajan wrote:
On Sun, 8 Nov 2015, Wolfgang Schuster wrote:

Hi,

there is a misspelled "data" variable.

local function registerbuttons(tag,register,language)
    local data = sorters.definitions[language]
-   local orders = daya and data.orders or
sorters.definitions.default.orders
+   local orders = data and data.orders or
sorters.definitions.default.orders
    local tag = tag == "" and { "" } or { tag }
    for i=1,#orders do
        local order = orders[i]
        context.menubutton(tag,f_two_colon(register,order),order)
    end
end

I am not too familiar with the lua toolchain, but would it be possible
to run a lua static analyzer (such as luacheck
https://github.com/mpeterv/luacheck) on the context sources?

I don't know (nor have time to look into it) but we have Wolfgang as dynamic analyzer which is hard to beat.

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to