We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f28725d commit f0f15a3Copy full SHA for f0f15a3
1 file changed
lua.lua
@@ -50,7 +50,7 @@ elseif cmd=="--save" or cmd=="-s" then --luacheck: skip
50
elseif cmd~=nil then --luacheck: skip
51
-- Support some of the prefixes allowed by dfhack.interpreter
52
local prefix
53
- if string.match(cmd, "^[~@!]") then
+ if string.match(cmd, "^[~@!^]") then
54
prefix = string.sub(cmd, 1, 1)
55
cmd = 'return '..string.sub(cmd, 2)
56
end
@@ -68,6 +68,8 @@ elseif cmd~=nil then --luacheck: skip
68
printall(rv[2])
69
elseif prefix == '@' then
70
printall_ipairs(rv[2])
71
+ elseif prefix == '^' then
72
+ printall_recurse(rv[2])
73
74
75
else
0 commit comments