actually upgrade to codemirror 3.0 and fix regex bug