Skip to content

Commit c50dd07

Browse files
committed
fix(utilities): Fixup AST debugger to handle anonymous content
1 parent e4f6c71 commit c50dd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/utilities/ast.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function ast.debug (tree, level)
1515
local out = string.rep(" ", 1 + level)
1616
if level == 0 then
1717
SU.debug("ast", function ()
18-
return "[" .. SILE.currentlyProcessingFile
18+
return "[" .. (SILE.currentlyProcessingFile or "<nowhere>")
1919
end)
2020
end
2121
if type(tree) == "function" then

0 commit comments

Comments
 (0)