Fixed syntax match

Fixed regex for matching stop parsing and user defined function
declarations