Get some recent fixes from CodeMirror upstream

Include fixes for cursor position issue #4564 and "less" parser issue #2847.