codemirror mode item parsing much more flexible
fix problem with arrow selecting autocompletion hints