Skip to content

Commit

Permalink
Allow glob to be interpolated string to facilitate reuse #165
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Feb 24, 2024
1 parent e11a285 commit b1bd29c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions makesure_candidate
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function handleGoalGlob(goalName,globAllGoal,globSingle,priv,i,pattern,nfMax,gi,
}else
pattern=$(nfMax=4)
if(NF>nfMax&&"@params"!=$(nfMax+1))
addError("nothing or @params allowed after glob pattern")
addError("nothing or @params allowed after glob pattern")
else if(pattern=="")
addError("absent glob pattern")
else {
Expand Down Expand Up @@ -639,7 +639,9 @@ function reparseCli(res,i,err){
for(i=NF=0;i in res;i++)
$(++NF)=res[i]
for(i=2;i<=NF;i++)
if("\""==res[i-1,"quote"]&&!("@define"==$1&&3==i||"@depends_on"==$1&&"@args"==$3&&i>3)){
if("\""==res[i-1,"quote"]&&!("@define"==$1&&3==i||
"@depends_on"==$1&&"@args"==$3&&i>3||
"@goal"==$1&&"@glob"==$(i-1))){
addError("Wrong quoting: "$i)
return 0}
return 1}
Expand Down
2 changes: 1 addition & 1 deletion minify.awk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function minifyLine( l,subs) {
gsub(/ \/ /, "/")
gsub(/ \* /, "*")
gsub(/ \+ /, "+")
gsub(/ \|\| /, "||")
gsub(/ \|\| */, "||")
gsub(/ \| /, "|")
if (/ \? /) gsub(/ : /, ":")
gsub(/ \? /, "?")
Expand Down

0 comments on commit b1bd29c

Please sign in to comment.