Improve auto-labeling of function/task in Xemacs

xemacs parsed a regular expression differently than emacs.  This commit
should restore proper auto-labeling to endfunction/endtask when the
port-list starts on a different line than the function/task
declaration.