diff --git a/.woodpecker/agent-smoke.sh b/.woodpecker/agent-smoke.sh index 2e8eb9c..80b6160 100644 --- a/.woodpecker/agent-smoke.sh +++ b/.woodpecker/agent-smoke.sh @@ -67,9 +67,10 @@ get_candidates() { if (match(p, /^[a-z][a-zA-Z0-9_]*_[a-zA-Z0-9_]+/)) { word = substr(p, RSTART, RLENGTH) rest = substr(p, RSTART + RLENGTH, 1) - # Skip: case labels (word) or word|), Python/jq patterns (word:), - # object method calls (word.method), assignments (word=) - if (rest == ")" || rest == "|" || rest == ":" || rest == "." || rest == "=") continue + # Skip: function definitions (word(), case labels (word) or word|), + # Python/jq patterns (word:), object method calls (word.method), + # assignments (word=) + if (rest == "(" || rest == ")" || rest == "|" || rest == ":" || rest == "." || rest == "=") continue print word } }