From 1b1a420156d6d2a86cd489811336d402e8c353e7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 3 Aug 2025 21:03:52 +0200 Subject: [PATCH] parse/always --- sh/core/code.awk | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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) } # ╭──────┬─────╮