Always check for a property name from next cursor position if current token is not one of them

This fixes issue #3448. Second commit fixes other cases -- after ``;`` and at the beginning of the line with no indendation.