webmcp

diff framework/bin/autodoc.lua @ 194:654ddbcc49d0

Bugfix in autodoc.lua; Added documentation for JSON library; json.import(...) returns json.null for "null" on top-level
author jbe
date Mon Aug 11 17:38:12 2014 +0200 (2014-08-11)
parents 290b6b10b160
children e81669ae2e4d
line diff
     1.1 --- a/framework/bin/autodoc.lua	Mon Aug 11 13:18:49 2014 +0200
     1.2 +++ b/framework/bin/autodoc.lua	Mon Aug 11 17:38:12 2014 +0200
     1.3 @@ -75,9 +75,9 @@
     1.4          end
     1.5          func_call = string.gsub(
     1.6            func_call,
     1.7 -          "^([^({]*)[({].*[,;].*[,;].*[,;].*[)}]$",
     1.8 -          function(base)
     1.9 -            return base .. "{ ... }"
    1.10 +          "^([^({]*)([({]).*[,;].*[,;].*[,;].*([)}])$",
    1.11 +          function(base, open, close)
    1.12 +            return base .. open .. " ... " .. close
    1.13            end
    1.14          )
    1.15          if entries[func_call] then

Impressum / About Us