added auto completion for square brackets while typing