Fix parsing for function patterns.