Skip to content

Commit 0b364ce

Browse files
committed
Diminish the notion of prelude #84
1 parent 29fb0da commit 0b364ce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

makesure.awk

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ function getMyDir(makesurefilePath) {
541541
}
542542

543543
function handleCodeLine(line) {
544-
if (isPrelude() && line !~ /^#/ && trim(line) != "" && !ShellInPreludeErrorShown++)
544+
if (isPrelude() && line !~ /^\s*#/ && trim(line) != "" && !ShellInPreludeErrorShown++)
545545
addError("Shell code is not allowed in prelude area")
546546
else
547547
addCodeLine(line)

tests/9_prelude.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# no code allowed in prelude,
33
# only comments, @define, @shell, @options
44

5+
# comment with whitespaces before it
6+
57
@shell bash
68
@define A=B
79

0 commit comments

Comments
 (0)