Implemented diagnostic for unexpected identifiers