Support for smarter tab completion