aboutsummaryrefslogtreecommitdiff
path: root/test/lua/metatable-catch-all.lua
AgeCommit message (Collapse)AuthorFilesLines
2017-08-22Text.Pandoc.Lua: respect metatable when getting filtersAlbert Krewinkel1-0/+20
This change makes it possible to define a catch-all function using lua's metatable lookup functionality. function catch_all(el) … end return { setmetatable({}, {__index = function(_) return catch_all end}) } A further effect of this change is that the map with filter functions now only contains functions corresponding to AST element constructors.