complete unfinished pattern parsing