Skip to content

Commit

Permalink
call-graph: Loosen function syntax requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
slewsys committed Jul 2, 2024
1 parent 78c9726 commit e7d8dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/call-graph/call-graph.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ parse-shell-scripts ()
for script; do
is-file-type "$script" "shell script" || return $?
function_list_string+=$(
$ED_CMD -E -e 'g;^(\S+)\s+\(\).*;s;;\1;p' "$script"
$ED_CMD -E -e 'g;^(\S+)\s*\(\)\s*\{?;s;;\1;p' "$script"
) || return $?
done

Expand Down

0 comments on commit e7d8dca

Please sign in to comment.