From f5ba5bb3e9fa3b2d080ed84a10030b84368eeed1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 3 Aug 2025 23:08:51 +0200 Subject: [PATCH] tasks/function,eval --- sh/core/code.awk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sh/core/code.awk b/sh/core/code.awk index 2286f33..6136fb0 100644 --- a/sh/core/code.awk +++ b/sh/core/code.awk @@ -348,6 +348,8 @@ if (action == "doc") { # function } else if (action == "function") { + # TODO parse($0) + if (match($0, re["command"])) { doc_append(extract($0, "command")) } else if (match($0, re["function"])) { @@ -365,6 +367,8 @@ if (action == "doc") { # eval } else if (action == "eval") { + # TODO parse($0) + if (match($0, re[target])) { doc_append(extract($0, target)) } else if (match($0, re["function"])) {