diff --git a/sh/core/code.awk b/sh/core/code.awk index fd4f59e..a58c08c 100644 --- a/sh/core/code.awk +++ b/sh/core/code.awk @@ -106,6 +106,17 @@ function strip_value(string) { BEGIN { +# ╭──────┬───────┬───────────╮ +# │ code │ begin │ constants │ +# ╰──────┴───────┴───────────╯ + +RECORD_SEPARATOR = "\036" +UNIT_SEPARATOR = "\037" + +# ╭──────┬───────┬───────────┬───────╮ +# │ code │ begin │ constants │ regex │ +# ╰──────┴───────┴───────────┴───────╯ + RE_ANY = "(.*)" RE_BEGIN = "^" RE_CONST = "([_A-Z][_0-9A-Z]*)" @@ -132,6 +143,10 @@ RE_SHEBANG = RE_BEGIN "#!" RE_SPACES RE_ANY RE_END RE_TASK = RE_BEGIN RE_SPACES "#" RE_SPACES RE_TSK RE_ANY RE_END re["variable"] = RE_BEGIN RE_VAR RE_SET RE_END +# ╭──────┬───────┬───────────╮ +# │ code │ begin │ variables │ +# ╰──────┴───────┴───────────╯ + current_function = "" current_match = "" doc = ""