deal with /pattern/ in the parser