fix matchBrackets in CodeMirror