recognize identifiers in patterns