Fix issue where comments are incorrectly identified as identifiers

...when following dots.

Fixes #753