codemirror mode item parsing much more flexible