fix bugs of completing pointer chain
fix parsing of ->key(...)
fix parsing of '->key(...)'