fix function parameter parsing

seems like the parsing engine doesn't properly backtrack as it's
written; this form is also correct and does work