added match brackets and updated code mirror