From 524241cc5e7ffa1ebed63874f4f9349bb80db351 Mon Sep 17 00:00:00 2001 From: xonix Date: Sun, 10 Oct 2021 13:30:07 +0300 Subject: [PATCH] Improve parsing algorithm to handle spaces and comments #63 fix for `@define` --- makesure.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makesure.awk b/makesure.awk index 2897d28..054c16c 100755 --- a/makesure.awk +++ b/makesure.awk @@ -36,7 +36,7 @@ BEGIN { { Lines[NR]=$0 - if ($1 ~ /^@/) reparseCli() + if ($1 ~ /^@/ && "@define" != $1) reparseCli() if ("@options" == $1) handleOptions() else if ("@define" == $1) handleDefine() else if ("@shell" == $1) handleShell()