fix parsing of 'Class->method' style