codemirror and parsing stuff