Added support for enabling automatic completion after -> and ::.