fix(): allow spaces around dots for identifiers

Fixes #4613
maybe call it expectName or something instead? just a thought