diff --git a/sh/core/code.awk b/sh/core/code.awk index a58c08c..11aa865 100644 --- a/sh/core/code.awk +++ b/sh/core/code.awk @@ -154,6 +154,7 @@ line = 0 lint = "" module = "" +# begin } # ╭──────┬───────╮ @@ -283,9 +284,18 @@ function parse_next(string) { { +# ╭──────┬──────┬───────╮ +# │ code │ main │ parse │ +# ╰──────┴──────┴───────╯ + +parse($0) + +# ╭──────┬──────┬──────╮ +# │ code │ main │ exit │ +# ╰──────┴──────┴──────╯ + # doc if (action == "doc") { - parse($0) # constant if (current_match == "constant") { @@ -413,8 +423,13 @@ if (action == "doc") { # action } +# ╭──────┬──────┬──────╮ +# │ code │ main │ next │ +# ╰──────┴──────┴──────╯ + +parse_next($0) + # main - parse_next($0) } # ╭──────┬─────╮