Fix issue where comments are incorrectly identified as identifiers

...when following dots.

Fixes #753
and I would add a unit test to make sure a string literal following a dot is not considered an identifier for instance