Nice formatting when printing ASTs

This commit is contained in:
Henri DF
2016-03-16 13:00:03 -07:00
parent 6a504c924c
commit 9043c89a9b

View File

@@ -449,7 +449,7 @@ end
function print_ast(ast, level)
local t = ast.type
level = level or 0
local prefix = string.rep(" ", level*2)
local prefix = string.rep(" ", level*4)
level = level + 1
if t == "Rule" then