1 local pretty = require "scansion.pretty".new({}); |
1 local pretty = require "scansion.pretty".new({}); |
2 |
2 |
3 local function lines(l) |
3 local function lines(l, indent) |
4 return table.concat(l, "\n"); |
4 return table.concat(l, "\n"..string.rep(" ", indent or 0)); |
5 end |
5 end |
6 |
6 |
7 local handlers = { |
7 local handlers = { |
8 ["script"] = function (data) |
8 ["script"] = function (data) |
9 return "TEST: "..(data.title or data.filename or "untitled"); |
9 return "TEST: "..(data.title or data.filename or "untitled"); |