extended function matching to include comma separated list over multiple lines