Transform a JSON grammar into a CodeMirror syntax-highlight parser