Skip to content

Commit

Permalink
Revamp @define #140 : changing @define
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 17, 2023
1 parent f7719ee commit c563c65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ BEGIN {
function makesure( i) {
while (getline > 0) {
Lines[NR] = $0
if ($1 ~ /^@/ && "@define" != $1 && "@reached_if" != $1) reparseCli()
if ($1 ~ /^@/ && "@reached_if" != $1) reparseCli()
if ("@options" == $1) handleOptions()
else if ("@define" == $1) handleDefine()
else if ("@shell" == $1) handleShell()
Expand Down
2 changes: 1 addition & 1 deletion tests/12_errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo 'more code in prelude'
@goal g2
@use_lib unknown
@shell sh
@define A=1
@define A 1
@lib lib2

@goal g3
Expand Down
2 changes: 1 addition & 1 deletion tests/15_lib.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

@define HELLO="Hello"
@define HELLO "Hello"

@lib
f1 () {
Expand Down

0 comments on commit c563c65

Please sign in to comment.