mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-01 14:47:00 +00:00
Nice formatting when printing ASTs
This commit is contained in:
@@ -449,7 +449,7 @@ end
|
|||||||
function print_ast(ast, level)
|
function print_ast(ast, level)
|
||||||
local t = ast.type
|
local t = ast.type
|
||||||
level = level or 0
|
level = level or 0
|
||||||
local prefix = string.rep(" ", level*2)
|
local prefix = string.rep(" ", level*4)
|
||||||
level = level + 1
|
level = level + 1
|
||||||
|
|
||||||
if t == "Rule" then
|
if t == "Rule" then
|
||||||
|
Reference in New Issue
Block a user