diff --git a/ldoc/lexer.lua b/ldoc/lexer.lua index 4a1f6a3..1b5e2f9 100644 --- a/ldoc/lexer.lua +++ b/ldoc/lexer.lua @@ -207,6 +207,7 @@ function lexer.scan (s,matches,filter,options) end function mt.__call () + if not s then return end while true do for _,m in ipairs(matches) do pat,fun = m[1],m[2]