Skip to content

Commit

Permalink
Implement stricter parsing #141
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Oct 8, 2023
1 parent be3f6f2 commit eb8969d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -899,9 +899,7 @@ function reparseCli( res,i,err) {
}
# validation according to https://github.com/xonixx/makesure/issues/141
for (i = 2; i <= NF; i++) {
if ("@define" == $1 && 3 == i || "@depends_on" == $1 && "@args" == $3 && i > 3)
continue
if ("\"" == Quotes[i]) {
if ("\"" == Quotes[i] && !("@define" == $1 && 3 == i || "@depends_on" == $1 && "@args" == $3 && i > 3)) {
addError("Wrong quoting: " $i)
return -1
}
Expand Down

0 comments on commit eb8969d

Please sign in to comment.