reconquest / shdoc

Documentation generator for shell scripts (bash, sh, zsh). Javadoc for shell scripts.
MIT License
291 stars 61 forks source link

Parse error of { on a separate line #56

Closed ale5000-git closed 1 year ago

ale5000-git commented 2 years ago

This isn't parsed:

#!/sbin/sh

# @description My super function.
#
# @arg $1 string A value to print
say-hello()
{
    if [[ ! "$1" ]]; then
        return 1;
    fi

    echo "Hello $1"
}

It is sufficient to put { in the same line of say-hello() to make it working but I don't like it. Can it be fixed please?