From c97e517c6739da0d32ff49f8bed6c63d70e0e13f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 4 Aug 2025 11:16:59 +0200 Subject: [PATCH] current/command --- sh/core/code.awk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sh/core/code.awk b/sh/core/code.awk index 6136fb0..3bd8b75 100644 --- a/sh/core/code.awk +++ b/sh/core/code.awk @@ -214,10 +214,10 @@ function parse(string) { # command } else if (match(string, re["command"])) { current_match = "command" - command = strip_first(string, "#/") - ids_put(current_match, command) - commands[command] = "" - doc_append("/ " command) + current_command = strip_first(string, "#/") + ids_put(current_match, current_command) + commands[current_command] = "" + doc_append("/ " current_command) # function } else if (match(string, re["function"])) { @@ -430,7 +430,7 @@ if (action == "doc") { # command } else if (current_match == "command") { - command = "" + current_command = "" # task } else if (current_match == "task") {