Use line number in case the tag pattern doesn't match.